create a loop function for temperature and the heater
이전 댓글 표시
for example i have this code:
%setpoint (degC)
t1_sp = 35;
for i = 1:399
tic;
if i==5
disp('Turn on heater 1')
ht1 = 100;
ht2 = ht1;
h1(ht1);
h2(ht2);
end
the heater will start to turn on after 5 seconds until it reach the setpoint temperature. i want the heater to slowly increase from 0 until it reach the setpoint.
댓글 수: 3
darova
2021년 8월 11일
Someting is missing. THe question is unclear. Can you explain more?
Unkown
2021년 8월 12일
Image Analyst
2021년 8월 12일
pause(5); % Wait 5 seconds before continuing.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!