フィルターのクリア

I'm trying to change marker size in a graph

3 ビュー (過去 30 日間)
Amanda
Amanda 2022 年 11 月 6 日
編集済み: VBBV 2022 年 11 月 7 日
I'm trying to change marker size in a graph but i keep getting this error and dot know how to fix it

回答 (1 件)

VBBV
VBBV 2022 年 11 月 6 日
markerSize_types = 12;
  4 件のコメント
Walter Roberson
Walter Roberson 2022 年 11 月 7 日
markerSize_types = 1:5;
Note that Marker Size default is 6 so Marker Size 1 is pretty small.
VBBV
VBBV 2022 年 11 月 7 日
編集済み: VBBV 2022 年 11 月 7 日
markerSize_types = randi([1 12],10) % define range of markersize
markerSize_types = 10×10
9 6 5 6 3 11 1 8 11 2 1 1 4 12 4 3 5 4 3 7 11 5 6 4 11 8 10 8 4 12 9 7 8 9 5 12 5 12 11 7 7 8 10 10 9 9 7 3 12 6 1 7 2 3 5 11 7 9 3 2 10 7 12 10 4 8 12 4 5 4 9 3 1 3 6 3 10 9 4 9 4 5 1 6 3 8 12 10 4 3 11 6 4 9 10 1 5 10 9 8
[r c] = size(markerSize_types);
random_index = randi([1 r*c],1) % randomly inditialize value
random_index = 89
random_markerSize = markerSize_types(random_index) % pick the value using index from type vector
random_markerSize = 4

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by