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

1 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

回答(1 个)

Babak
Babak 2013-5-6
编辑:Babak 2013-5-6
mat2cell()
cell2mat()

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by