How can I split datasets

조회 수: 3 (최근 30일)
Lana Aydin
Lana Aydin 2020년 10월 28일
댓글: Lana Aydin 2020년 11월 8일
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
Rik
Rik 2020년 10월 29일
Have a read here and here. It will greatly improve your chances of getting an answer.
Lana Aydin
Lana Aydin 2020년 11월 8일
Ok thanks Rik

댓글을 달려면 로그인하십시오.

채택된 답변

Sourabh Kondapaka
Sourabh Kondapaka 2020년 11월 6일
편집: Sourabh Kondapaka 2020년 11월 6일
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
Lana Aydin
Lana Aydin 2020년 11월 8일
Thanks for the explanation it was very useful

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by