how will be define multidimensional variable in matlab in the form of matrix so that it stores two information ?, not multidimensional array...

 Accepted Answer

c=cell(4,4)
c{1,2} = [1 1 1 1 0 0 0 0 1];
...

3 Comments

My suspicion is that the actual need would be either
c{1,2} = [1 1 1 1 0 0 0 0 1];
or
c{1,2} = '111100001';
actual need is above one sir [11111000]
but i did it first made struct then struct to cell and then cell to mat ..its done sir ..thankyou sir
To confirm, you really wanted the output to be a decimal value that is in the range of eleven million? Which would be something that you would not be able to easily separate out the digits of ?

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!