How to find dimension problems?

2 ビュー (過去 30 日間)
Leo Müller
Leo Müller 2016 年 3 月 24 日
コメント済み: Leo Müller 2016 年 3 月 25 日
Hello,
my sFunction block has to run on a dSPACE simulator. Therefore I have to make sure that all dimensions are set correctly.
Is there a way to check that in Matlab and Simulink?
Thank you very much!
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 3 月 24 日
this is not clear
Leo Müller
Leo Müller 2016 年 3 月 25 日
Matlab and Simulink are comparatively tolerant when it comes to dimensional mismatches. dSPACE is not as tolerant. I wonder if there is a tool that would check all dimensions for errors.

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

回答 (1 件)

Krish Desai
Krish Desai 2016 年 3 月 25 日
You could try to use the size function. For example:
A= 1: 5
A= 1 2 3 4 5
size(A)
ans= 1 5

カテゴリ

Help Center および File ExchangeBlock and Blockset Authoring についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by