Info

This question is closed. Reopen it to edit or answer.

Plotting pragh with iteration

1 view (last 30 days)
Kareem AlBokhari
Kareem AlBokhari on 28 Sep 2015
Closed: Walter Roberson on 28 Sep 2015
I have a code with iterations and I want to make a graph for each iteration of 2 for loops and all appear in on graph figure ex
cvals = 1200:100:1600;
bvals = 5:1:20;
PR=[];
for cidx = 1 : length(cvals)
c = cvals(cidx);
for bidx = 1 : length(bvals)
b = bvals(bidx);
....... eqns
result{cidx}(bidx) = wnet/qina ;
I wrote this code
plot(PR, result {1,1},'-o', PR, result {1,2},'-o', ...
PR, result {1,3},'-o', PR, result {1,4},'-o', ...
PR , result {1,5},'-o')
but if the range of the of the cvals increased , the rest of the graphs wont be shown , ex 1200:100:2000 from 1700 till 2000 the graphs wont be shown until I add them in the plot command
any help

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!