Alternative naming for variable
Ältere Kommentare anzeigen
Hello, I have a 3-dimensional matrix m = cat(3,rand(5), rand(5),rand(5)) - for example. How can I specify a new name m3 for m(:,:,3) to call smth like m3(:) (cause it's impossible to call m(:,:,3)(:)) - without creating new variable?
4 Kommentare
While it is possible to do that, magically defining new variable names like that would make your code slow, buggy, hard to read, hard to debug, very inefficient,...:
Mariya Zapletina
am 20 Jul. 2017
Mariya Zapletina
am 20 Jul. 2017
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical 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!