Plotting functions

2. Plotting functions (a) Create a variable t that takes values from to with step size . Let , and .
Then do the followings: • Plot and versus t in separate figures. • Plot and versus t in the same figure. Please use different colour for each graph. Label individual graph.
Divide a figure in two by using the subplot command, then plot and in the upper part and in the lower part (all plots versus t).
(b) Create an index sequence n (step = 1) ranging from -10 to 10 and make a stem plot of as a function of n.
For all plots label both the x and y axes and add suitable titles.

1 件のコメント

Daniel Armyr
Daniel Armyr 2011 年 2 月 18 日
Please. When asking homework questions, at least have the cortesy to remove the question number and make sure that the newlines are included.

回答 (1 件)

Matt Tearle
Matt Tearle 2011 年 2 月 18 日

1 投票

MATLAB Answers is a place you can get help from the user community on specific MATLAB questions. It is not intended as a place to have strangers do your homework for you. (You might also want to check with your instructor about their policy on such practices -- I suspect it is not approved.)
If you want help with homework, that's fine, but:
  1. show what you have done so far
  2. ask a specific question about either specific MATLAB syntax/constructs, or general guidance (such as "what functions should I look at to achieve [result]")
If you need help with the very basics of MATLAB, the answers to this question have many suggested resources.

この質問は閉じられています。

質問済み:

2011 年 2 月 18 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by