Question


Parfor loop for simulink
HI, I'm trying to run a simulink model from parfor loop. However the output generated from the loop seems to be identical when ...

10 years ago | 0 answers | 0

0

answers

Question


Plotting data of a 3x1xn array
Hi, I saved data of a simulation in to a 3x1xn cell array. How can I plot each 3x1 instance Vs time. At the moment I manually...

11 years ago | 1 answer | 0

1

answer

Question


calculate output(y) from a state space model
I have defined a first order system in state space. How can I calculate Y matrix, if X matrix known X'=Ax+Bu; Y=Cx; I at...

11 years ago | 1 answer | 0

1

answer

Question


using a variable in simulink function
I have a user defined function in simulink. I need to use a global variable from simulink work space. How can access the simu...

11 years ago | 1 answer | 0

1

answer

Answered
Create a Step Sine wave
This Code produce a symmetric quasi square wave. Any ideas to change the number of steps to 6, instead of 3. To=0.02;...

11 years ago | 1

Answered
Create a Step Sine wave
The stairs() doesn't produce a symmetric wave. I need a 3 level symmetric wave like <http://imgur.com/FPtDiTb> That's why ...

11 years ago | 0

Question


Create a Step Sine wave
Hi, I intend to create a square shaped step sine wave. At the moment I approach this problem by defining a sample time. Howev...

11 years ago | 3 answers | 0

3

answers

Question


Export Power Gui FFT analysis results
I have performed FFT analysis to a simulink model using the simpower gui. Following is the output I obtain. http://imgur.com...

11 years ago | 0 answers | 0

0

answers

Question


plotting fundamental wave from a square wave
Hi,I have a simulink file and have exported the scopedata into workspace. Now the output of the scope is a square. The object...

11 years ago | 1 answer | 0

1

answer

Answered
simple loop option to reduce code
figured it out T=0.25; t1=-3*T/12:.001:T/12; Time(1,:)=t1; for r=2:6 Time(r,:)=Time((r-1),end):.001: Time((...

11 years ago | 0

Question


simple loop option to reduce code
Hi, Can anyone suggest a neat way to simply the following code. T=0.25; t1=-3*T/12:.001:T/12; t2=t1(end):.001: t1...

11 years ago | 3 answers | 0

3

answers

Question


repmat() introduces an unnecessary phase shift
Hi, I used repmat command to create a periodic waveform. However I noticed repmat() introduces a phase shift of one element i...

11 years ago | 1 answer | 0

1

answer

Question


Triangular wave form plot
Hi, I'm trying to generate a 140Hz triangular wave. Following code produce the correct plot up to 100HZ. Once I enter the val...

11 years ago | 1 answer | 0

1

answer

Question


periodic function with n cycles
Hi, I need to create a periodic function and plot it. F(x)=sqrt(3) + *Sin(t -2*pi/3) --> 0<t<pi/3 F(x)=Sin(t) --> ...

11 years ago | 3 answers | 0

3

answers

Answered
Simulink - Triangular wave form simulation
I got it working. As suggested updated to fixed step (1/(1000*20)) and selected the solver to discrete. thanks

11 years ago | 0

| accepted

Question


Simulink - Triangular wave form simulation
Hi, I'm trying to generate simple triangular wave and connect the output to a scope. I used the repeating sequence block and ...

11 years ago | 2 answers | 0

2

answers

Answered
Symbolic equation with numeric variable
Subs method worked. Alternatively you can define the eqn without quotation (') marks. Therefore following code is also co...

11 years ago | 0

Question


Symbolic equation with numeric variable
Is it possible to use a numeric variable(in this case "alfa") in a symbolic equation. I'm trying to solve the symbolic q. I n...

11 years ago | 2 answers | 0

2

answers

Question


Obtaining fundamental frequency wave from a PWM signal
Hi, Is there a way to get harmonic waves extracted from a signal. Say if I have a square wave I want to extract and plot 3 sin...

11 years ago | 1 answer | 0

1

answer