SIMULINK: Import Variables from Workspace
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
var.time = [(1:1:166)'];
var.signals.temp = [(-40:1:125)'];
var.signals.vbe = [(100:1:265)'];
plot (var.signals.temp, var.signals.vbe)
Can I plot this struct in SIMULINK without having a time serie? The idea of the plot is to have a temp-voltage plot like in the following plot generated from MATLAB.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/553362/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/553367/image.png)
The SIMULINK setup was made with From Workspace block. Is it possible to change the axis of the XY-Graph in SIMULINK?
0 comentarios
Respuestas (1)
Fangjun Jiang
el 17 de Mzo. de 2021
The "From Workspace" data in Simulink needs to have a time. If you set the two "From Workspace" block data like this, you will be able to get the figure in "XY Graph" in Simulink.
[var.time, var.signals.temp]
[var.time, var.signals.vbe]
0 comentarios
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!