フィルターのクリア

How to merge two cells and extract the superlayed values?

1 回表示 (過去 30 日間)
Native
Native 2018 年 12 月 4 日
コメント済み: madhan ravi 2018 年 12 月 4 日
I have two cells of dimensions 1X132 each, one cell has the names and the other has numerical values that correspond to each of those names. I want to be able to merge these two cells such that I can later extract the names corresponding to those values, and preferably display it in a plot

採用された回答

madhan ravi
madhan ravi 2018 年 12 月 4 日
編集済み: madhan ravi 2018 年 12 月 4 日
a=[[cell1{:}] [cell2{:}]]; % cell1 containng names and the other values
plot([cell2{:}])
xticks(1:numel([cell1{:}]))
xticklabel([cell1{:}]) % requires 2016b and later
  7 件のコメント
Native
Native 2018 年 12 月 4 日
I use 2015a version of matlab, xticks doesnt work for it

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by