필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by