Alternative naming for variable
이전 댓글 표시
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
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
2017년 7월 20일
Mariya Zapletina
2017년 7월 20일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!