I would like to find and plot the means and standard deviations for lots of columns of data.
0 comentarios
Respuestas (1)
2 comentarios
Hi Cg Gc,
Basically the error message indicates that conversion from a table is not supported, suggesting that the issue lies in trying to directly convert a table variable to a categorical array. So, you have to extract data from the table into an array before converting it to a categorical array.Try extracting the data from the 'Season' column using dot or brace subscripting. For example, you can do this by using:
seasonData = A.Season;
Then, convert the extracted data into an array before converting it to a categorical array. This can be done as follows
seasonArray = table2array(seasonData);
seasonCategorical = categorical(seasonArray);
I just experimented with my code and was able to print out means and standard deviations. Please see attached results.
If you encounter any further issues or need additional assistance, don't hesitate to reach out for further guidance.
Ver también
Categorías
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!