フィルターのクリア

Plot of rows from different cells of a cell array

2 ビュー (過去 30 日間)
toka55
toka55 2018 年 6 月 27 日
回答済み: Jan 2018 年 6 月 27 日
Hi,
I have a 1x7 cell array. Each cell contains a 48x57 matrix. I want a scatter plot of row 10, column 2 from cell 1-7 like: scatter(SNR{1, 1:7}(10,2),SNR{1, 1:7}(10,3)) This approach doesn't work. Any idea how I can manage this?
  1 件のコメント
Jan
Jan 2018 年 6 月 27 日
"Doesn't work" is a weak description of the problem. Prefer to post the error message instead of hoping, that the readers can guess it.

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

採用された回答

Jan
Jan 2018 年 6 月 27 日
Working with cell arrays is not useful here. Simply convert the data to a numerical 3D array at first:
SNRd = cat(3, SNR{:});
scatter(SNRd(10, 2, 1:7), SNRd(10, 3, 1:7))
Maybe additional reshape commands are required to create vectors.

その他の回答 (0 件)

カテゴリ

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