Magnitude FFT block Simulink
I am using a Magnitude FFT block in Simulink to check the output from a filter. Now, I need to plot that magnitude vs frequency. Could you please tell how to get the frequency values on the x-axis corresponding to magnitude fft? ... 20 Mar 2010 17:43
Frequency Banded Input and FFT
I have two questions - A) I want to create a frequency banded input of specified band range in Simulink. Which is the most feasible option? a) Create a Band limited white noise and then filter it using bandpass filter..b) use many Sin blocks and then add them together c) use chirp block and then filter it for the s... 20 Mar 2010 16:36
Keep a vectors dimensions when elements are equal.
My question is why does matlab do this? I = 1 1 1 1 v1=I(1,1):I(1,3) v1 = 1 How would I get v1=1 1 1 in this case? Im new to matlab and learning all the ins and outs, ive made a script which accepts a vector input such as a, b, c, d and has to make an NxN matrix a-b... 20 Mar 2010 17:43
Printing the Command Windows
I would like to print command windows but I encounter the problem that the space among element of the matrices I would like to print is too large. I only work with binary matrices but when I print, the paper only show 6 elements each line + funny arrow. Is there anyway to reduced space between elements in matrix w... 20 Mar 2010 16:35
Plotting - Getting Error
Hi, I have created an array P=zeros(T,N,D), where T = 10, N = 100000 and D = 3. Now I am generating following values of P P= randn(T,N,D); If I need to plot with X-axis T, Y axis N and Z-axis D. How can I do it? I am getting the following error "Data may not have more than 2 dimensions" Somebody help. ... 20 Mar 2010 18:50
remove multiple rows of matrix based the value and index of row of another matrix
Hello Vinh, How about this one: matrixA(matrixB==2,:) = []; Best. ... 20 Mar 2010 15:28
need of simulink model of statcom
Hi everyone,, I am doing my final yr project(BE).I need the simulation model of Statcom. In mathworks.com,its available,,but its complicated,i cant understand.so tat i need many papers regarding tat.It will be more benefitable,if the simulation is of diode clamped inverter based StatCom,, with regard... 20 Mar 2010 15:28
gaussian pulse
I am trying to generate a gaussian pulse of width 1 and amplitude 1, below is the code I have written, however I get an error saying exp not enough arguments. p = (1/(1 *sqrt(2*pi)))*exp^-{(1-1)^2/(2*1^2)}; t = -1:1/fs:1; figure (1);plot (p,t) Am I doing this correctly, or am I way of base. ... 20 Mar 2010 17:44
remove multiple rows of matrix based the value and index of row of another matrix
I have 2 matrices with the same row, matrixA (n by k) and matrixB (n by 1) matrixA = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ... 20 Mar 2010 14:20
Getting data from simulink model to display on GUI
I have edit text boxes in my GUI, when i open it the edit text text box displays the string name where the values for the model go but how do i display the data in the model instead of the string names? thanks ... 20 Mar 2010 14:20