Plotting Piece-wise like function
Ältere Kommentare anzeigen
Hey, I am new to MATLAB and to coding overall, so it should be an easy question answer, but still I am having some trouble. I have to plot agraph that is y=2x from 0 to 3 and y=2.5x from 3 to 4. (The graph I am adding is like what I am trying to plot). The thing is that I can not use commands like piece-wise because I'm using octave for MATLAB language. Thanks in advance.

1 Kommentar
Aditya Verma
am 28 Jun. 2020
The graph you have shown should be discontinuous at x=3
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Networks finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!