- Select the "Discrete Transfer Fcn" block in Simulink window.
- Go to the MATLAB window and run the following command in the Command Window, to set the parameter.
Simulink fundamentals, Modeling Multirate Discrete Systems esta práctica no puedo terminarla en MatLab de escritorio version R2023b
14 次查看(过去 30 天)
显示 更早的评论
César Gonzalo Herrera Rodríguez
2024-2-28
评论: Antony Gutierrez Cardona
2024-9-7
Simulink fundamentals, Modeling Multirate Discrete Systems
Terminada la lectura solicita completar las práctica utilizando el bloque DISCRETE FILTER, al utiliarlo se completa con satisfacción el task 1, pero al momento de intentar el task 2, no aparece la opción Sample time en el bloque mencionado.
____________________________________________________________________________________________________________
0 个评论
采纳的回答
Gyan Vaibhav
2024-3-5
编辑:Gyan Vaibhav
2024-3-5
Hi César,
"In Simulink, there are some blocks, do not enable you to set the Sample time parameter by default. However, you can see and set the Sample time parameter for these blocks in an existing model if the sample time is set to a value other than the default of -1 (inherited sample time). The Sample time parameter is not available on certain blocks because specifying a sample time that is not -1 on blocks such as the Gain, Sum, n-D Lookup Table, Discrete Filter, Discrete FIR Filter, and Discrete Transfer Fcn causes sample rate transition to be implicitly mixed with block algorithms. This mixing can often lead to ambiguity and confusion in Simulink models."
However in the learning course, since it's inheriting the block parameter value is set to -1, hence it must be not be accepting your solution. As a workaround, for you to make this option visible you have to set this value to something other than -1.
You can do this from the Matlab Command window as follows:
set_param(gcb,'SampleTime','2');
Now you can double click the "Discrete Transfer Fcn" block, and you would see the field to change the SampleTime for the block.
You can find more information about this on the following documentation page.
Thanks
Gyan
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Schedule Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!