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

46 views (last 30 days)
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=[points; B];

Accepted Answer

Star Strider
Star Strider on 20 Aug 2019
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.

More Answers (1)

Ogechukwu ILOANUSI
Ogechukwu ILOANUSI on 7 Nov 2020
Edited: Ogechukwu ILOANUSI on 7 Nov 2020
adaka = rand(5,2)
adakastring = string(adaka)
adakacell = cellstr(string(adaka))


Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by