How can I plot a periodic function from 0 to 2*pi?

1 回表示 (過去 30 日間)
Jaecheol Lee
Jaecheol Lee 2017 年 1 月 18 日
回答済み: Jordan Ross 2017 年 1 月 23 日
I want to plot a periodic function like below from 0 to 2*pi.
I tried to use remat function to deal with k = 1,2,...12, but later on, I realized that I need to multiply this result with other function. Thus, I have to have the same theta size (e.g., 0: 0.001 : 2*pi) with other function. Any suggestions would be appreciated.

回答 (1 件)

Jordan Ross
Jordan Ross 2017 年 1 月 23 日
Hello,
If you are expecting to make a 2-d plot then you are going to want to fix the value of "k" or "alpha". If you want a 3-d plot then just have "alpha" on one dimension, "k" on the other, then the value of "g" at "alpha" and "k" on the third.

カテゴリ

Help Center および File Exchange2-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