How can I split datasets

3 vues (au cours des 30 derniers jours)
Lana Aydin
Lana Aydin le 28 Oct 2020
Commenté : Lana Aydin le 8 Nov 2020
Hello
How can I split dataset for non-numeric values
I am working on (diabetes) dataset which shown the effects of this disease according to age, gender, and class if 1st or 2nd type
I am getting error using this function ((gscatter))
  2 commentaires
Rik
Rik le 29 Oct 2020
Have a read here and here. It will greatly improve your chances of getting an answer.
Lana Aydin
Lana Aydin le 8 Nov 2020
Ok thanks Rik

Connectez-vous pour commenter.

Réponse acceptée

Sourabh Kondapaka
Sourabh Kondapaka le 6 Nov 2020
Modifié(e) : Sourabh Kondapaka le 6 Nov 2020
As you intend to use "gscatter()" function which takes categorical columns as one of the input argument, you can convert some of the columns into categorical columns and then use "gscatter()" function.
To convert a column into categorical columns please check this
A similar question on how to batch convert columns to categorical columns is linked here
For more information on "gscatter()" function please refer this
To learn more about MATLAB, you can refer this free course MATLAB ON RAMP
To get your questions answered quickly, refer here and here
  1 commentaire
Lana Aydin
Lana Aydin le 8 Nov 2020
Thanks for the explanation it was very useful

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by