Hi,I have ,w=[2 4 4 1 1].for i=1:length(w)x=find(w==w(i))endthis code gives this result:x=[1]',x=[2 3]',x=[4 5]',x=[4 5]',in each iteration.I want the result to be x=1 0 0 0 2 3 0 0 4 5 0 0 4 5 0 0
MATLAB: Put the result in one matrix
vectors
Related Question
- I have a non-closed figure but i need to link the limits
- How to give gap between curves? Please see the attached graph
- How to compare between two cell array
- Transpose Translation Vector for addresses
- How to create triangle and animate it
- Adding zeros to an array
- How to solve a system of equations when multiple parameters changes
Best Answer