Graphing values from excel in Matlab plot
Show older comments
Hi, I am working on a bifurcation diagram for one of my classes. We had a lab where we test different c values and see what happens to the orbits (not really important to this question). Anyway, I have set up an excel spread sheet with value for C in one column, and values for the points starting in the d column. Almost none of the values have a single one to one correspondence with the c value (one c value has multiple values that it needs to be plotted with). What I need to do is plot the c values on the x-axis and the rest of the orbit on the y-axis, any thoughts? I attached my spreadsheet with the relevant data (ignore the behavior column).
4 Comments
Walter Roberson
on 29 Feb 2016
To take one example, one of your 4 cycles. Converting to csv notation for the purposes of discussion so we do not need to deal with tabs, one of your lines is (equivalent to)
-1.257894737,"4 cycle",-1.24015,0.280069,-1.17946,0.133222
What output would you want for that? Would you want, for example,
plot(-1.257894737, [-1.24015,0.280069,-1.17946,0.133222], '*')
which would produce 4 "*" of different colors at x = -1.257894737 ? With the colors not having any inherent meaning but would give you a hint of the ordering of the values (as I notice the values are not sorted, which might be an important point) ?
Ibro Tutic
on 29 Feb 2016
Ibro Tutic
on 29 Feb 2016
Walter Roberson
on 29 Feb 2016
plot(raw(i,1), raw(i,3:14), '*')
would be shorter.
Answers (0)
Categories
Find more on Spreadsheets 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!