Graphing values from excel in Matlab plot

1 回表示 (過去 30 日間)
Ibro Tutic
Ibro Tutic 2016 年 2 月 28 日
コメント済み: Walter Roberson 2016 年 2 月 29 日
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 件のコメント
Ibro Tutic
Ibro Tutic 2016 年 2 月 29 日
[raw,txt] = xlsread('C:\Users\it58528\Downloads\Chaos .xlsx');
for i=1:length(raw)
plot(raw(i,1),[raw(i,3), raw(i,4), raw(i,5), raw(i,6), raw(i,8), raw(i,9), raw(i,10), raw(i,11), raw(i,12), raw(i,13), raw(i,14)],'*')
hold on;
end
I got this to work. Kind of crude, but it does the job. Thanks for the help!
Walter Roberson
Walter Roberson 2016 年 2 月 29 日
plot(raw(i,1), raw(i,3:14), '*')
would be shorter.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by