Search Engine www.edaboard.com

# Matlab S Function

1000 Threads found on edaboard.com: Matlab S Function

hiya I'am using discrete Linear quadratic regulator equation to calculate the performance function of my system. the system is given by xk = Ax(k-1) + Bu(k)

## help in exp function in matlab

Hey Can you help me plz to plot the output of this equation using matlab the vertical axes is ...... Magnitude of the output in dB the Horizontal axes is the angle in degrees could I have the code of this I really need it help me

## Matlab controlling ANSYS Designer

Hello, I am trying to control ANSYS' Designer with matlab The following is a working command which draws a polygon: invoke(oEditor,'CreatePolygon', {'NAME:Contents', 'polyGeometry:=', {'Name:=','Dipole_Top_Arm','LayerName:=','Dipole_Trace','lw:=','0mm','n:=',5,'U:=','mm', 'x:=',0.5,'y:=',1,'x:=',2,'y:=',1,'x:=',5,'y:=',10,'x:=',-5,'y:=',10

## Inverse engineering : from a transfer function to an electronic circuit systems !

Design control systems in matlab and other software today its very easy, get for example the transfer function of a circuit , then optimize it,... its kinda easy these days,... what I'm looking for,... its a easy way , once I have my electronic system, mathematically speaking - get the design of the real circuit with its devices like loads, cap

## How transform S-parameter to A-parameter

Use matlab or ADS...

## How to add AWGN to signal using Octave coding...

Max, Thanx for your replies...you mean the matlab communication tool box? it is similar to octave syntax? I mean Octave communications package. Before You use it, You should load this package by typing: "pkg load communications" (providing that You installed it earlier).

## MATLAB number of operations

Maybe you must evaliate it, not deterministically, but empirically . Take a look on that function, wich coud help in this task : Elapsed CPU time - matlab +++

## Using linprog function in MATLAB

How to find the minimum/maximum bounds for h(m) using linprog function in matlab ? I have shown the hand calculations. Kindly guide me how to proceed : delta_p <= Summation(h(m).T(w)) ? Hd(w) <= delta_p In passband, Hd(w)=1 ; delta_p=0.05 1 - 0.05 <= Summation(h(m).T(w))

## matlab bode plotting of fft result

Hy, my problem is: using matlab, how can i plot in a bode diagram the result of a fft? I have defined a function take after many elaborations bring out two vectors and than make the cross-correlation. Than i make the fft of the cross-correlation obtaining complex conjuncted numbers, i need to have the bode plotting of the fft results. Thank

## Maximum likelihood decoding of space time codes

if your looking towards using matlab, then if you have the communication toolbox there is a function called vitdec, which will decode it. Which QAM are you talking about 8,16... The ML decoder uses a sliding window and gives the most reliable output. If you look at the communication toolbox most of what you have mentioned already exists. Includin

## Gaussian noise in matlab

what is meant by gaussian noise& how to write a pgm in matlab?

## ss2tf and tf2ss is not consistent

There is nothing wrong. matlab tf2ss algorithm use a canonical realization to compute num.den (see State space (controls) - Wikipedia, the free encyclopedia ) For a given transfer function den.num, there exist infinity possible state space representations. So, ABCD and a1b1c1d1 have th

## manage a vector in simulink

Hello, my question should be simple. I wrote a matlab function which i´m using in a User-Defined simulink block. In this block i want to record the output in a vector, so i declare this vector has an emptys one (like a = ;) and than at every iteration i want to put the output in this vector. I alsoknow the final dimension of the vector, but ese

## a general simulink doubt not related to electrical engineering

simulink ports matlab code so I don;t see a problem with using symbolics. Unless the function is not in your workspace or you have not defined the symbol "x". without syms x: another way you could write it is : AOA(i,1)=solve((0.5.*ro(i).*v(i).*v(i).*s.*.1.*(x-alpha0))-(m.*9.81.*cos(x.*pi./180)),x);

## Binary random generatior

how can i build a binary random generator in matlab and the output 0 and 1 with the same probability? could you please write the code for me? cuz im a very newbie :P thank you ---------- Post added at 21:39 ---------- Previous post was at 20:35 ---------- i come up with a way to build it i=1:100; b=rand(

## Encoding Recursive Systematic code

Hello, In terms of encoding RSC .. Can we use coven function to encode it? I have matlab book that implemented RSC function to encode it ..and that confused me :?: any:idea:?

## some questions about "scattering-matrix method" ..

the origin reference paper is: Phys. Rev. B 60, 2610?2618 (1999) Scattering-matrix treatment of patterned multilayer photonic structures i try to reproduce its results using matlab. the first problem is : no matter which matlab function 'eig' i use, eig(M) or eig(M,w^2-k,'qz')(because M is an asymmetric matrix), to sove the equa

## HELP PLZ: group delay of analog chebyshev filter in matlab

i design 10th order analog low pass chebyshev filter & i want to plot its group delay versus frequency. i've already plotted using bode command , the phase & mag. response & i know that the group delay is the negative of the derivative of the phase of transfer function but how can i plot the group delay on matlab ?? thanks in advance !

## problem with running a cst macro with matlab

Hi all I have written a matlab function to start a global macro 'single_ports' on a cst disign project. Basically it looks like this: oCSTApp = actxserver('CSTStudio.Application'); oMWSProject = invoke(oCSTApp,'OpenFile',projectname); invoke(oMWSProject,'RunMacro','single_ports'); matlab throws that there's a internal error in CST (...)

## Help in neural network (newff) function

Hi, While I'm not familiar with the newff() or the Neutral Network Toolbox, I am quite versed in advanced matlab programming and would be more than happy to take a look at your project. Looking at the small code snippet and error messages provided, it would appear to be a formating issue, but without seeing the code in its entirety and data

## Matlab: How to get the PSD of a signal?

See The Designer's Guide Community Forum - how to estimate the PSD of a complex signal in matlab

## The Callback Functions

hi i am really new to matlab gui. i have been trying to learn some basics from the internet but i am still unable to understand matlab gui very well. I do not know how to pass "Values" from one function to another. i have a burning question: i have made a popupmenu which has a list of videos and a push button. I would only like to (...)

## PSK Eb/No Vs BER calculation

1): I am not sure about it, are you asking how to use the calculator's error function ? 2): how about using matlab to solve erfc (Error function) or to approximate the Error function by Taylor series, or iteration method and etc. within the allowable error range? For the definition of error function, you (...)

## passing m file parameters to simulink model

You can use `assignin` function in matlab to assign value to variable in specified workspace and then you can use your workspace for simulink model

## Sampling time in Rayleighchan

Hi all, I am using matlab's Rayleighchan function to simulate a fading channel. My OFDM system chip rate/Sampling rate = 5.55 MHz, but giving this rate to the function will cause an 'Out of Memory' error, so I enter a sampling rate of 4096 Hz and normalize path delays to this by multiplying path delays by 5.55 MHz / 4096 Hz. My (...)

## The Log scale in MATLAB, What is it?

Hi, What is the log scale in matlab exactly: is it 10 log to the base 10, or just log to the base 10? Thanks

## error in conv function

I've tried your program with matlab R2008a. For g=conv(im,b) it works fine. For g=conv2(im,b) I get the same error. But if I do this g=conv2(double(im),b) then it gives me no error, and the result is g = Columns 1 through 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

## [Matlab] How to draw a Triangle using M-file function

Hi, Iam new here. i need to draw a triangle (could say random triangle) using M-file function. I need to determine 3 lengths and make sure it creates a triangle. * Sum of 3 angles = 180 degree or * Sum of 2 lengths is greater than the third's Can anyone help pls?

## MATLAB: Symbolic function problems

Q: Write a function "xr = sreal(x)" which returns a symbolic expression representing the real (of "ireal(x)" for imaginary) part of x(t). (e.g. x(t) = exp(i*t) + exp(2*i*t)), any clues?? The real and imag functions don't return anything useful. Having crazy problems with this :S Any/All help well appreciated.

## dsexample4 function in delt asigma toolbox matlab

hello every body. want to use dsexample4 function in delt asigma toolbox matlab. when i run it i must use compile flattenStruct.c and in compile the error get me `mexErrMsgTxt' undeclared (first use this function) how can i solve these error?

## Simulation of (7,4) Hamming Code

Hello I need to compare the(7,4) hamming coded bit error probability with the uncoded bit error probabity and a Q function. The matlab code which i have compare the theoretial uncoded ber with hamming (7,4) code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ clear N = 10^6 ;% number of bits Eb_N0_dB = ; % multiple Eb/N0 val

## Matlab error in file handling

for i=1:2048 temp=dec2hex(i,3); size(temp) if(strcmp(temp,addr)) mem(i)=data; else mem(i)='000'; end end a String data is read in to addr and data and both of length 3...... but it's not working ??? In an assignment A(I) = B, the number of elements in B and I must be

## impulse sensitivity function for ring oscillators

hi does anybody know how to calculate impulse sensitivity function (ISF) for ring,current starved ring and differential ring oscillator in matlab. the formula is given in the ieee research paper "A general theory of phase noise in electrical oscillators". formula no. 38. but i dont know how to calculate the output function f(x). (...)

## How to realize a non-integer delay in simulink?

I want to delay a signal by 1/2 sample period in matlab, but the delay function block in simulink is all for integer delay. Does anybody know how to realize the 1/2 delay? Thanks!

## impulse resonpose to transfer function in matlab

I encounter a tough problem. There is a system which already shown in impulse response. But I need approach it to a transitional IIT (like ARX structure) . How do I do it in matlab? any direct command to do it. thanks a lot.

I am reading a text book and I wanted to use matlab to get the same answer as they deerived it in the text. The answer that the matlab displayed is not the same as the text, please this is the question, my code with result and the expected result from the text. The problem is getting the same Transfer function as it is. Note: Also (...)

## undefined function or method 'xlgetpath' for input arguments of type 'char'

hi everyone , i am using matlab 2009b xilinx 12.1 with system generator i found one error for using it undefined function or method 'xlgetpath' for input arguments of type 'char' please help me to set this , thankink you

## Mathematical function to VHDL

matlab/simulink can export directly to xilinx ise System Generator for DSP

## how to get the transfer function in the design of Sigma Delta Modulator?

I am designing a 3-order single loop CT Sigma Delta Modultor with RZ DAC.But how can I get the NTF? I can get the NTF of the SDM with NRZ DAC. Mainly, the transfer function of z-domain to s-domain can not be transered using matlab command d2c or d2cm.Who can tell me the method? Thanks anyway.

## MATLAB help for powerflow/ unit commitment

I need to solve a unit commitment and load flow problem using Newton Raphson method which includes a function which minimizes the CO2 emmissions. The size of the problem is limited to 30 busses. I have a set of predefined functions one of which solves for the lowest cost. I need to modify it such that it solves for the lowest cumulative CO2 emm

## help in subs command in matlab

hello i use subs command in my matlab programm: i want to get F in numerical mode,F obtained from integral of f1/f2 in x variable F=int(f1/f2,x); I defined all the parameters like f1 and f2 in matlab program but when i use subs command for getting F in numerical mode : F=subs(F) it gives me: 80000000/53*x-2189396249847878109458682588450

## Materials and good notes for bilinear transformation in Matlab

Dear all, I am writing a program and I have finished the analogue part and now it is time to convert it to discreet time using appropriate transformation which is bilinear transformation. supposed I want to convert this transfer function below to discreet time using bilinear transformation, how can I write it. H= 1/s^2 + 1.414s+1 p

## help in getting the matlab output using the fdatool

hi.. im designin fir lowpass filter using fdatool... now i got the response n i generated the m file to see my specification which is shown below... function Hd = fir1 %FIR1 Returns a discrete-time filter object. % % M-File generated by matlab(R) 7.3 and the Signal Processing Toolbox 6.6. % % Generated on: 09-Mar-2011 21:56:57 % % Equ

## A low pass filter - matlab

Hey guys , help me to check this code.. i cant figure out how to make it run .. T.T Its just to filter out some high frequency in the song file i cut .. function filter_a() = wavread('cut2'); N = length(song); %length of song is 99093 k=; f1=k*fs/N; cf = 2000 ; n = ; t = n/cf; N = length(t); f = n*cf/N; hf = [o

## Please Matlab Help on Arranging in Descending order

Dear all, I am trying to arrange this transfer funcion in descending order in order to synchronize with the rest of my code. but it gives me error. look at the results with error. How can I arrange it so that the first order become last TF in the transfer function PLEASE SEE BELOW. ANY LOGIC THANKS. I put the code above as well Code: den2

## ring oscillator isf problem

hi any body knows how to plot impulse senstivity function(isf) of 5 stage ring oscillator in matlab. for eg. f=vout=sin(t) for colpitts oscillator so isf=(first derivative of f)/(first derivative square+square of double derivative of f). using his i can plot for colpitt similarly, f= sin(t)+sin(3t)/3+sin(5t)/5+sin(7t)/7+sin(9t)/9 for

## Ambiguity function (diagram) using FFT in matlab

Hello, Can anybody tell me how to find an ambiguity function of an LFM radar pulse using fft? I am trying to form the ambiguity diagram with doppler shift and time delay in the axises. But I need to do it using FFT blocks. Any help is appreciated!

## graphical user interface in matlab

you can use matlab's filter design tool. it is very useful.

## the most suitable technique of color detection

In matlab you need to convert the image from RGB to HSV (there is ready function) and then it's very simple - you just look at the Hue values are they in some range. 3 weeks ago was in the forum a discussion about detectiong face color - this is very similar to what you do

## from Matlab vector to text file

Hi everybody, I have to save a matlab vectror 1x256 in a text file. I'm trying with save function, is this the right way? thanks