MATLAB: How can convert vector aa size 1×262144 to matrix 256×256 reshape hi every one i'm new her i need help size of aa 1×262144 i want convert to matrix 256×256 Best Answer % you will not convert (262144 is 4 times 256*256 and not equal to it)% but complete 4 matrices out of your "aa" vector % and you will get a "M" array:L=256*256;M=nan(256,256,4); % pre-allocatefor i=1:4 v=aa(L*(i-1)+1:L*i); M(:,:,i)=reshape(v,256,256);end Related SolutionsMATLAB: How to write Continue Long Statements on Multiple Lines Use repmat to avoid manually typing all 160 of those ‘%q’ repeats! Try this: formatSpec = ['%f',repmat('%q',1,160), '%[^\n\r]']; MATLAB: How I can insert a simple message on a picture ? Attached is my watermarking demo. It's sort of hidden watermarking - a primitive form of steganography. Do you require your message to be hidden or encrypted? Related QuestionDear friends, the long matlab command that I have written is error. I want to be spelled the same way but without error.The headerlines are not always properly detected by readtableHow to write Continue Long Statements on Multiple LinesI am getting error for performing AIC test for model orders varying in 0:3 range
Best Answer