how to plot fewer marker ?

조회 수: 42 (최근 30일)
Umang Dongre
Umang Dongre 2019년 3월 14일
댓글: li weilin 2020년 2월 8일
Capture.PNG
plot(VarName10, VarName9,'Marker','*','MarkerIndices',1:100:length(VarName9));
I tried this but it shows error
Error using plot
Invalid property found.
Object Name: line
Property Name: 'MarkerIndices'.
How to do that?
Thanks in advance!

채택된 답변

Raghunandan V
Raghunandan V 2019년 3월 14일
Hi,
Can't you just delete a few data from VarName10?
You can write a simple code like this
VarNamePlot = VarName10;
m = length(VarNamePlot);
index = [1:m]
OddIndices = index(rem(index,2) == 1)
VarNamePlot10 = VarName10(OddIndices);
VarnamePlot9 = VarName9(OddIndices);
And then use VarNamePlot to plot . This will reduce the number of points to plot.
Or just use
plot(VarName10, VarName9, '*')
  댓글 수: 2
Umang Dongre
Umang Dongre 2019년 3월 15일
yes I did,
plot(VarName10, VarName9, 'Marker', '*')
but I want to increce spacing in between them.
Raghunandan V
Raghunandan V 2019년 3월 15일
Oh... In that case you have to zoom in the graph.you cant do it here programatically.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Steven Lord
Steven Lord 2019년 3월 15일
The MarkerIndices property was introduced in release R2016b. If you're using an older release, consider upgrading to R2016b or a later release.
  댓글 수: 1
li weilin
li weilin 2020년 2월 8일
You are right! Give beer to you if you are beside me.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by