Quantcast
Channel: MATLAB Central Newsreader - tag:"table"
Viewing all articles
Browse latest Browse all 48

Re: How to extract variable from table keeping the floating point?

$
0
0
Please see Table documentation, at http://www.mathworks.com/help/matlab/ref/table.html, and try out the first example with LastNames, Age,Height,Weight,BloodPressure information.

Without much information or looking at your data set, my best guess remains that your data is input as integer values into the Table, and you are just retrieving it. It seems to me the bug is not in accessing the Table data but in creating the table data.

But I could be wrong in a variety of circumstances; if you share more code/data we maybe able to answer your question better.

"Rita Angélico" wrote in message <mn10ir$h4m$1@newscl01ah.mathworks.com>...
> Hello,
>
> I am quite new to the table data type and I have a table of values of feautures extracted from an image, I need to convert it to a matrix before performing classification on it. I extract the data from the table like this:
> observations=msr{1:height(msr),{'DNA_Area','DNA_Eccentricity','DNA_Perimeter','DNA_MeanIntensity','DNA_MaxIntensity','DNA_StandardDeviation','DNA_Mass','DNA_P2A'}} ;
>
> The problem is that I rounds the values to the closest integer, and most of the variables are a value between [0,1] which means I need it to be in floating point format and not a rounded value. How can I overcome this problem?
>
> Thanks in advance,

Viewing all articles
Browse latest Browse all 48

Trending Articles