필터 지우기
필터 지우기

How to plot Cell Array full of doubles.

조회 수: 4 (최근 30일)
xander fong
xander fong 2015년 7월 31일
답변: Akira Agata 2017년 2월 20일
Hello, I have a 257x1 cell array in which every cell contains a 1x1 double with a number 1-5 I would like to plot this against a 247x1 double. How do I do this?

답변 (1개)

Akira Agata
Akira Agata 2017년 2월 20일
How about using cell2mat function?
Here is a simple example.
C = num2cell(randn(257,1)); % 257-by-1 cell array
D = cell2mat(C); % Converted 257-by-1 array

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by