I'm trying to change marker size in a graph
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I'm trying to change marker size in a graph but i keep getting this error and dot know how to fix it
0 Kommentare
Antworten (1)
VBBV
am 6 Nov. 2022
markerSize_types = 12;
4 Kommentare
Walter Roberson
am 7 Nov. 2022
markerSize_types = 1:5;
Note that Marker Size default is 6 so Marker Size 1 is pretty small.
VBBV
am 7 Nov. 2022
Bearbeitet: VBBV
am 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
Siehe auch
Kategorien
Mehr zu MATLAB Compiler 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!