Should Behavior of sub2ind() be Different for Symbolic and Numeric Inputs?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
maxrows = 1; r = 1; a = 1; c = 1; ii = false;
D = zeros(3,3,maxrows) % D is a double
D(sub2ind([3,3,maxrows],a(ii),a(ii),r(ii))) = c(ii)
D = zeros(3,3,maxrows,'sym') % now D is a sym
D(sub2ind([3,3,maxrows],a(ii),a(ii),r(ii))) = c(ii)
Why does sub2ind() change the dimension of D in the latter case?
Akzeptierte Antwort
Divija Aleti
am 6 Jul. 2021
Hi Paul,
The development team is working on resolving this issue. A task has been created for our development team about the bug report.
Thank you for your understanding and you will definitely be notified once the this issue is resolved.
Regards,
Divija
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assumptions 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!