How can I convert (x,y) points(double) into cell
2 次查看(过去 30 天)
显示 更早的评论
Hi I have set of points which I want to store as cells .
0 8
0 59
4 20
4 47
5 23
5 44
9 20
Any idea how to do this. Part of my code is attached where output of C is shown above.
.
.
.
C=zeros(256,2);
B=zeros(186,2);
C=[points; B];
C(:,2)={C}or
{C(:,2)}=C
0 个评论
采纳的回答
更多回答(1 个)
Ogechukwu ILOANUSI
2020-11-7
编辑:Ogechukwu ILOANUSI
2020-11-7
adaka = rand(5,2)
adakastring = string(adaka)
or
adakacell = cellstr(string(adaka))
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!