フィルターのクリア

How to plot a range with stackedplot()

1 回表示 (過去 30 日間)
Ricardo López
Ricardo López 2020 年 12 月 2 日
編集済み: Adam Danz 2020 年 12 月 4 日
Good morning,
I would like to plot a range of data (19:42) on a stackedplot(), but i keep having an error. I tried to create a stackedlinechart and change the properties but keep having the following error:
Error using matlab.graphics.chart.StackedLineChart/set.XData
Unable to specify 'XData' and 'YData' values when the 'SourceTable' value is nonempty
Any clue?
Thanks!
  1 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 2 日
Which MATLAB version are you using? Also please provide
whos data?

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

回答 (1 件)

Adam Danz
Adam Danz 2020 年 12 月 2 日
編集済み: Adam Danz 2020 年 12 月 4 日
As the error message indicates, you cannot specify both the Source Table and the XData/YData.
You can either use indexing the specify the inputs within your desired range or you can plot all of the data and then set the XLimits value to your specified range.
For additional help, share your input values and the code used to generate the stackedplot.

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by