Plotting a matrix of data in a graph

4 ビュー (過去 30 日間)
Amy
Amy 2014 年 3 月 26 日
コメント済み: Amy 2014 年 3 月 26 日
Hi
I have outputted a 5x7 workspace variable of data using the following values of x and n:
x=[0.9 0.99 0.999 0.9999 0.99999 0.999999 0.9999999];
n=[10 100 1000 10000 100000];
Is it possible to plot this data all in the one graph? I'm aware of the following syntax for plotting a graph
plot(X1, Y1, LineSpec, PropertyName, PropertyValue)
But unsure if all the data can be put onto the one graph?
Thankyou for any help in advanced!
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 3 月 26 日
Explain what you want to plot
Amy
Amy 2014 年 3 月 26 日
I've used the x and n vectors in a script that's produced data (the 5x7 workspace variable) I would like to how the data in the form of a graph with different lines, e.g showing the ouput for the x vector at n = 10, then another line showing the data at n = 100. Is this possible?

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

回答 (1 件)

SRI
SRI 2014 年 3 月 26 日
You have the range for x is 1x7 and for n is 1x5, you will be encountng a error better you change the size of n matrix and try to plot you can able to view the output (use axis function to view the seperate points in graph)
  1 件のコメント
Amy
Amy 2014 年 3 月 26 日
Is it not possible to have the x axis as the values of x, the y-axis as the values of n and then plot the data?

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by