Can someone please help me to understand what i do wrong with my code and Simulink model?
2 views (last 30 days)
Show older comments
I don't uderstand what i do wrong with my model and code and why i can't get proper graphic of temperature, and why 'tout.T' isn't working.
clear
ro1=1050;
ro2=1500;
ro3=1275;
teta2=55;
teta1=75;
teta_z=60;
G2=3e-1;
G1=2e-1;
lambda1=4.19;
lambda2=2.43;
v=42;
sim('model_teploobmennika');
grid on
plot(tout.T)
xlabel('Время, c');
ylabel('Температура, C');


2 Comments
Sam Chak
on 23 Apr 2025
Edited: Sam Chak
on 23 Apr 2025
Hi @Artyom
The tout variable is the time vector that is automatically saved to the Workspace. What exactly does out.T, specifically the 'dot-T' part, represent when sent to the Workspace?
Can you go to the block settings and send the data array instead of the data structure to the Workspace?
Answers (0)
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!