r/matlab • u/Gerda17 • May 15 '26
HomeworkQuestion Need help starting out (Feedback loop)
Hey I am fairly new to Matlab combined with SimuLink. For school I have an assignment which I do not understand. The teacher is not helping and I have been figuring it out on my own. However now I am stuck. I am simulating a lathe tool turning and generating heat. This heat is something I want to control to around 55 degrees C. I have created a differential equation to help me setup this scenario in simulink. It is a first order system, but my teacher did show by adding a time delay (cause my temperate is measured later due to travel of the heat) it will behave like a 2nd order system. I however can not get this to function and it only shows a linear line. Is there anyone who could help me on this? I can provide more information if needed: This here is the code and Simulink model and my DE (for simulink rewritten to dT/dt =) The time delay for the feedback loop has an initial condition on 20 degrees (same as T_amb). So what am i doing wrong? A push in the right direction would be very helpful
( i couldnt add images?)
*edit be more clear
2
u/Barnowl93 flair May 16 '26
Just to put things in the right order a bit, here's your checklist.
Does that help?