How to find dimension problems?

1 vue (au cours des 30 derniers jours)
Leo Müller
Leo Müller le 24 Mar 2016
Commenté : Leo Müller le 25 Mar 2016
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 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 24 Mar 2016
this is not clear
Leo Müller
Leo Müller le 25 Mar 2016
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.

Connectez-vous pour commenter.

Réponses (1)

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

Catégories

En savoir plus sur Block and Blockset Authoring dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by