help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting cell with numerical and categorical values to matrix


From: PhilipNienhuis
Subject: Re: Converting cell with numerical and categorical values to matrix
Date: Thu, 8 Mar 2018 11:41:19 -0700 (MST)

Spenduelar wrote
> Hi
> 
> I am reading a csv file which contains categorical and numerical values
> using csv2cell function. This obviously come out as a cell array. I would
> like to convert this cell array to matrix but I am struggling. I have
> tried
> cell2mat but it is not working.
> 
> Please assist. Thank you

You mean the cell array you have contains a mix of numerical and string
values?
In that case you can try to split it into a cellstr array and a numerical
array by parsecell.m in the io package.

Philip



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]