Borrar filtros
Borrar filtros

viewing four signals in scope

1 visualización (últimos 30 días)
kash
kash el 8 de Oct. de 2012
I have attached a mdl in which the scope should show 3 triangular wave and a sine wave ,but i get one triangular and sine wave.
and code for triangular wave generation is
ts=0.1;tim=2
t=-tim:ts:tim
y=repmat(max(t)-abs(t),1,10)
t=-tim:ts:-tim+length(y)*ts-ts
ty=[t' y']
please help

Respuestas (1)

Ryan G
Ryan G el 8 de Oct. de 2012
The three triangle waves, ty, are all the same and are being plotted on top of eachother. If you want to see all 3 on that plot, you can change the linestyle of the 3rd and 4th triangle wave. Do this by going to the scope parameters->style tab.
  5 comentarios
Ryan G
Ryan G el 9 de Oct. de 2012
In the scope parameter change the number of axes to 4. This will create 4 inputs to the scope. Remove the mux block and use these inputs instead.
kash
kash el 10 de Oct. de 2012

Iniciar sesión para comentar.

Categorías

Más información sobre View and Analyze Simulation Results en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by