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 个评论

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

请先登录,再进行评论。

回答(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 个评论

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

请先登录,再进行评论。

类别

帮助中心File 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