I'm trying to change marker size in a graph
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm trying to change marker size in a graph but i keep getting this error and dot know how to fix it ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1183358/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1183358/image.png)
0 commentaires
Réponses (1)
VBBV
le 6 Nov 2022
markerSize_types = 12;
4 commentaires
Walter Roberson
le 7 Nov 2022
markerSize_types = 1:5;
Note that Marker Size default is 6 so Marker Size 1 is pretty small.
VBBV
le 7 Nov 2022
Modifié(e) : VBBV
le 7 Nov 2022
markerSize_types = randi([1 12],10) % define range of markersize
[r c] = size(markerSize_types);
random_index = randi([1 r*c],1) % randomly inditialize value
random_markerSize = markerSize_types(random_index) % pick the value using index from type vector
Voir également
Catégories
En savoir plus sur MATLAB Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!