How to generate and store in different sizes vectors or cells in a loop?
1 view (last 30 days)
Show older comments
Good morning,
I have an initial vector:
A=[0.01, 0.12, 0.017, ....] %100 elemets
Vneg=[v1;v2;v3...v6];
Vpos=[v1;v2;v3...v6];
I want to genereate new vectors (according to number of Vneg) between two limites Vneg and Vpos.
In this example I expect to get 06 vectors with values of A between each Vneg and Vpos
I tried this code:
for con=1:length(Vneg);
interval(con)=A(A(:,1)>=Fneg(con2) & A(:,1)<=Fpos(con2));
end
And keep getting an error message.
I tried with cell arrays. can't figure it out.
any help please?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!