Why am I getting the error message "??? Assignment has more non-singleton rhs dimensions than non-singleton subscripts"?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 1 Mai 2017
Beantwortet: MathWorks Support Team
am 1 Mai 2017
I do not understand the following error message:
Error Messages: ??? Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Akzeptierte Antwort
MathWorks Support Team
am 1 Mai 2017
This error is a result of incorrect indexing of multidimensional arrays.
For example, you can reproduce the same error message to execute the following command.
>> a = zeros(3,3,3); % difine 3x3x3 size variable
>> a(3,3,2) = randn(1,2); % assign 1x2 size values
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
To workaround, please check the size of variable you would like to assign.
0 Kommentare
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!