An MATLAB help about indexing is in:
obtain element from a non defined array matlab
5 ビュー (過去 30 日間)
古いコメントを表示
I am looking to obtain the element of an array without the necessity of creating a new variable.
Currently I am using like:
img_ex = imread('peppers.png');
size_img_temp = size(img_ex)
size_img = size_img_temp(1)
But i would like to call the array element without the necessity of create a new variable.
Something like:
img_ex = imread('peppers.png');
size_img = anything_to(size(img_ex))
Aboiding the
Error: Invalid array indexing.
Thank you very much
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!