Effacer les filtres
Effacer les filtres

SIMULINK Foundamentals Course, MATLAB version

1 vue (au cours des 30 derniers jours)
Chiara Brescia
Chiara Brescia le 13 Oct 2023
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?

Réponses (1)

Pavan Sahith
Pavan Sahith le 2 Nov 2023
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

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by