clc clear x1=5; x2=3; x3=2; p=cell(3,1); for i=1:4 if i==1 x1=6; elseif i==2 x1=7; elseif i==3 x1=8; end p{i}=[x1-x2; x1-x3] end
MATLAB: When two individual number remain in one cell such as a cell contain [300;350]. then how can i extact a single value from the cell
cell arrays
Related Question
- Extacting brain from MR image
- I face the error of “In an assignment A(I) = B, the number of elements in B and I must be the same” when i want to create a loop a matrix. the simple short code given below, plz help me
- Matlab error: readonly workspacefunc 350
- How to perform row wise operation for a matrix of 350×350
- Unfold cell
Best Answer