who knows how to convert double to cell so i can get a 2D plot ?

2 variables in my workspace: data (petrolium prices; <7428x1 double>) and tm (time vector; from 1830to 2013; <7425x1 cell>)
question: how can I plot in x axe 'tm' and in y 'data' ,I am gettinh the msg
" Error using ==> plot
Conversion to double from cell is not possible" ,
i guess i need to know how to convert a double to cell array!

3 件のコメント

Walter Roberson
Walter Roberson 2013 年 5 月 6 日
You need to convert the cell to a double, not the other way around.
What are some sample contents of your time vector ? Please show
disp(tm{1})
marie
marie 2013 年 5 月 6 日
first date 17/05/1983 to 22/02/2013 , daily!
Walter Roberson
Walter Roberson 2013 年 5 月 6 日
編集済み: Walter Roberson 2013 年 5 月 6 日
In string form or in numeric form? What is
class(tm{1})
size(tm{1})

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

回答 (1 件)

Babak
Babak 2013 年 5 月 6 日
編集済み: Babak 2013 年 5 月 6 日

0 投票

mat2cell()
cell2mat()

カテゴリ

ヘルプ センター および File ExchangeData Type Conversion についてさらに検索

質問済み:

2013 年 5 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by