필터 지우기
필터 지우기

Use of m-scripts in SIMULINK

조회 수: 7 (최근 30일)
Nitin Skandan
Nitin Skandan 2024년 2월 20일
답변: Mark McBroom 2024년 3월 4일
Ideally it is possible to develop an entire simlink model with embedded m-scripts functions which could be used in place of SIMULINK blocks or STATEFLOW. As per design guidelines which are (recommended i.e. not mandatory) we know that the preferred approach is to use stateflow for modeling flow diagrams/state machines and Simulink blocks for contiuous time parts of the algorithms like PID controllers etc.
My question is: Are there any inherent flaws in developing a model enitirely with embedded m-scripts ?
The MAAB guidelines does not necessarily say something like : Do not use m-script for developing functionality which is more than 60 lines . It only says that one function need to be restricted to 60 lines but there could be any number of sub functions.

채택된 답변

Mark McBroom
Mark McBroom 2024년 3월 4일
There is nothing wrong with using Simulink to architect a system comprised entirely of MATLAB Function blocks. NASA has developed some guidelines for when to use Simuilnk vs. Stateflow vs. MATLAB. See section Appendix 5.1: https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/solutions/aerospace-defense/standards/FltDyn-CEV-08-148_MATLAB_Standards_v9_20111202.pdf

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MAB Modeling Guidelines에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by