scatter plotting of string data
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad
am 1 Jun. 2021
Kommentiert: Muhammad
am 1 Jun. 2021
i have two cell in work sapce
name 57*1 cell
fatality_rate 57*1 cell
here names include string data
i want scatter plotting
and also the data shown with different colours
scatter(name,fatality_rate)
but it gives error
Error using scatter (line 56)
Input arguments must be numeric,
datetime, duration or categorical.
Error in untitled (line 17)
scatter(name,fatlity_rate)
2 Kommentare
KALYAN ACHARJYA
am 1 Jun. 2021
Ex
name={'A','B','C','D'};
rate=[30,40,50,90];
name=categorical(name);
scatter(name,rate);
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!