Use a Simulink block as a regular MATLAB function

3 ビュー (過去 30 日間)
Sam
Sam 2019 年 10 月 1 日
コメント済み: Sam 2019 年 10 月 9 日
Hi everyone,
I am new to the MATLAB aerospace toolbox, and intend to use it quite intensively in the coming time. The aerospace toolbox has a very elaborate set of functions, such as the aerodynamic forces and moments block or the simple variable mass 6DoF equations of motion (Euler angles). These blocks are of course very useful in a Simulink environment, where the blocks are connected in a certain way and a time simulation can be run.
However, I was wondering whether it is also possible to call the underlying functions of these blocks as regular MATLAB functions. For example, taking the ISA Atmosphere Model as an example, I could use it as a block within a Simulink environment. For this specific example, I know that I can also call the function as a regular MATLAB function by calling:
[T a p rho] = atmosisa(h)
However, this function call is not indicated anywhere on this page. How do I know how to call the underlying functions of any of the blocks available within the MATLAB aerospace toolbox? That is, why is there no link from the "block function" page to this page and how can I see the function page corresponding to a general Simulink block?
Thanks in advance.

採用された回答

Shashwat Bajpai
Shashwat Bajpai 2019 年 10 月 4 日
Hi Sam,
I would suggest looking at the description of the blocks in the blockset page and the description of functions in the function page to know the under lying functions being used in the blocks.
Hope this helps!
  5 件のコメント
Shashwat Bajpai
Shashwat Bajpai 2019 年 10 月 8 日
Hi Sam,
The functionalities of blockset are developed using Simulink and it's capabilities. They have some common functions but not all the blocks have an underlying function as they were developed using Simulink. For the blocks which do have the same functions you can refer the description and use them accordingly.
Sam
Sam 2019 年 10 月 9 日
Hi Shashwat,
That explains it. Thanks for your support.
Kind regards.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxes Transformations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by