Add markers for stairs() plot, specified amount of makers

조회 수: 3 (최근 30일)
Robert Short
Robert Short 2020년 10월 29일
답변: Star Strider 2020년 10월 29일
Plotting various data which looks more presentable using the stairs() function.
The data has a lot of samples 1000+ for a 10 second duration. I'd like to add a specific amount of markers as a function of the number of samples.
I understand 'MarkerIndices', 1: length(variable)/20:length(variable)) would give me 20 markers if I were to use a generic plot - however this does not work with the 'stairs' function. Is there a workaround ?

답변 (1개)

Star Strider
Star Strider 2020년 10월 29일
Ths stairs funciton will courteously tell what it did if asked. See Create a Stairstep Plot using plot Function.

카테고리

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