Problem with Create Matrix
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dani D
am 27 Okt. 2015
Bearbeitet: Thorsten
am 27 Okt. 2015
Hello, Why this command doesn't work? FD = [1:10 ; 50:60]
0 Kommentare
Akzeptierte Antwort
Thorsten
am 27 Okt. 2015
Bearbeitet: Thorsten
am 27 Okt. 2015
Because
Error using vertcat
CAT arguments dimensions are not consistent.
You have 10 numbers in the first row, and try to conCAT vertically 11 numbers in the second row. That's not possible in a matrix, all rows must have the same number of columns.
You can use a cell array
FD{1} = 1:10; FD{2} = 50:60;
or you have to change the numbers, like
FD = [1:10; 51:60];
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!