Convert double

16 次查看(过去 30 天)
Xavier
Xavier 2011-9-14
Hi,
I have a matrix like A: A=[1;1;1;1;1;1] A is 6*1 double I need to transform this double type matrix to a cell type matrix like B: B=[1;1;1;1;1;1] B is 6*1 cell
I cannot find any function to do the following transformation but it must be easy.
Thansk for you help
Xavier

采纳的回答

Andrei Bobrov
Andrei Bobrov 2011-9-14
B = num2cell(A)
  1 个评论
Xavier
Xavier 2011-9-14
thanks it works. I do not know how I could not find this one. Thanks a lot.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Operators and Elementary Operations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by