the best way to import signal from workspace
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
hello. i need to import a sinewave from matlab workspace. this must be compared with a sawtooth with the use of simscape component comparator. should i use the block 'from workspace' or 'signal from workspace'. what is the default data type of the saved sinewave in matlab workspace? how can i check or find in matlab what kind of data structure and type is a saved signal?
thank you.
0 comentarios
Respuestas (1)
Azzi Abdelmalek
el 12 de Oct. de 2012
Editada: Azzi Abdelmalek
el 12 de Oct. de 2012
in matlab command
t=0:0.1:100
y=sin(t)
ty=[t' y']
in from workspace block set variable name to ty
or you can use from file then
t=0:0.1:100
y=sin(t)
ty=[t; y]
save filename ty
in from file block set file name block to filename
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!