error when fixing matrik size

how can i solved this problem when i'm trying to combine to fixed matrik size
Attempted to access A(46,101); index out of bounds because size(A)=[100,100]
sorry for bad english :p

1 Kommentar

Mark
Mark am 5 Jun. 2013
Bearbeitet: Mark am 5 Jun. 2013
It's not clear what you are trying to do. But, you tried to access to a matrix element that does not exist. What is the code that gave you this error?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 5 Jun. 2013

0 Stimmen

A=[1 2 3 ; 4 5 6]
the size of A is 2x3, you will get an error if you write
A(4,1)

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by