How to plot the figure using Matlab ?

I have plotted the figure using Wolfram Mathematica where no knowledge of required.
But I want to know how to draw the below figure using ?

2 Comments

Read about plot, xticklabel.
Can you please write one such script so that I can follow it ?

Sign in to comment.

Answers (1)

You can combine four plot commands or use four curves (lines) to plot it
for example
plot([0,1],[1,0],'r', [1,2,4,8],[0,-1,-2,-3],'k')

1 Comment

How to plot the vertical axis with displaying just 1 and -1 and v_2(a_n) as shown in the figure?

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Asked:

on 1 Oct 2020

Commented:

on 4 Oct 2020

Community Treasure Hunt

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

Start Hunting!