SIMULINK Foundamentals Course, MATLAB version

조회 수: 1 (최근 30일)
Chiara Brescia
Chiara Brescia 2023년 10월 13일
답변: Pavan Sahith 2023년 11월 2일
Goodmorning
I was taking my Simulink Foundamentals Course but I couldnt complete tasks 4 and 5 of the section Discrete systems due to the 2023b version of MATLAB. I uninstalled that versione and replaced it with the 2022b one, which enables me to complete the tasks succesfully.
The point is that now, as soon as I open MATLAB I find my course at 0% level instead of 98% I've already done. It happens the same if I open Simulink online.
How can I fix the problem without absolutely taking the whole 8 hours course again?

답변 (1개)

Pavan Sahith
Pavan Sahith 2023년 11월 2일
Hello,
I understand that you encountered an issue while taking the Simulink Fundamentals Course in MATLAB R2023b.
Based on your description of tasks 4 and 5 in the Discrete Systems section, I assume that they refer to "Modeling discrete transfer functions and state-space representations" and "Modeling multirate discrete systems."
As per my investigation, you might be experiencing a challenge in finding the option to adjust the sample time.
“Discrete Transfer Fcn” and “Discrete Filter” blocks are some of ‘Blocks for Which [Setting] Sample Time Is Not Recommended’. Instead, Simulink prefers this block to inherit its sample time from the input signal.
It appears that the visibility of the Block Parameters Sample Time has undergone recent changes. In the R2022b version, I can see the Sample Time parameter.
As you need to modify the sample time to complete the task. You can use “set_param” in the MATLAB command window.
set_param(gcb, "SampleTime", "Ts")
Please refer to the following MathWorks documentation links to know more about
“Blocks for Which [Setting] Sample Time Is Not Recommended”-https://in.mathworks.com/help/simulink/ug/sampletimehiding.html

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by