フィルターのクリア

How can I convert (x,y) points(double) into cell

2 ビュー (過去 30 日間)
sadiqa ilyas
sadiqa ilyas 2019 年 8 月 20 日
編集済み: Ogechukwu ILOANUSI 2020 年 11 月 7 日
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

採用された回答

Star Strider
Star Strider 2019 年 8 月 20 日
If yu want to store them individually as cells, the num2cell function will work.
Otherwise see if the mat2cell function will do what you want.

その他の回答 (1 件)

Ogechukwu ILOANUSI
Ogechukwu ILOANUSI 2020 年 11 月 7 日
編集済み: Ogechukwu ILOANUSI 2020 年 11 月 7 日
adaka = rand(5,2)
adakastring = string(adaka)
or
adakacell = cellstr(string(adaka))

カテゴリ

Help Center および File ExchangeNumeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by