We can use the function following:
deal()
Useage:
X = imread('parrot.jpg');
[R, G ,B] = deal(X);
Source:
Got my answer from here: https://stackoverflow.com/questions/5158032/define-multiple-variables-at-the-same-time-in-matlab
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!