Filter löschen
Filter löschen

Shifted Stairstep graphs in a single figure

3 Ansichten (letzte 30 Tage)
SV
SV am 10 Okt. 2019
Bearbeitet: KALYAN ACHARJYA am 10 Okt. 2019
Good morning,
 I should draw 100 stairstep curves in a single graph with x-axis from 0 to 100, where each curve is shifted by 1. How could I do?
Thank You for your time.
S.V.

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 10 Okt. 2019
Bearbeitet: KALYAN ACHARJYA am 10 Okt. 2019
Is this?
for j=1:100
stairs(j:j:100);
hold on;
end
Or
for j=1:100
stairs(j:j+1:100);
hold on;
end

Kategorien

Mehr zu Graph and Network Algorithms 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!

Translated by