I am stuck while writing this code. Could you give any advise? The matrix N might consist of 16 different values at maximum(0-16), depending on the previous codes.
M(h,:)=[X(i,j,k), Y(i,j,k), Z(i,j,k)];
N=[12 12 12 12 12 12 12 8 4 4 4 12 12 ];
NN = unique(N); NN_length=length(NN);
S=[35 50 100 200];
figure; hold on;
For the first value of i=1, it is fine. But later I receive error. Because while writing the second row of NNN, first row and second row dimension doesn't match. What can I do? Thanks in advance.