plot/scatter with marker size and color

조회 수: 2 (최근 30일)
mohamed elgohary
mohamed elgohary 2018년 3월 27일
댓글: mohamed elgohary 2018년 3월 27일
hello i need some help as example i have x=1:10 y=1:10 value=1:10
scatter(x,y,value)
so I need to add marker color as it varies depending on the ( value) i tried some codes but it doesn't work

채택된 답변

Birdman
Birdman 2018년 3월 27일
For different color, type
x=1:10;y=1:10;
value=linspace(1,10,length(x));
scatter(x,y,[],value)
To add diamond marker, type
scatter(x,y,[],value,'d')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by