How to find dimension problems?

조회 수: 1 (최근 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 CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by