plot for different values

4 ビュー (過去 30 日間)
Lincy Elizebeth Jim
Lincy Elizebeth Jim 2015 年 6 月 30 日
回答済み: Mischa Kim 2015 年 6 月 30 日
Dear all
I would like to plot X and y axes values for different values of p
P=X. /y
x=4:4:20
y=2:4:20
I want plots for different values of p
p=0.3
P=0.4
P=0.8
Kindly guide me
Thanking in advance
Lincy
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 30 日
plot what?

サインインしてコメントする。

回答 (1 件)

Mischa Kim
Mischa Kim 2015 年 6 月 30 日
Lincy, you mean probably something like
x = 4:4:20;
p = [0.3; 0.4; 0.8];
y = bsxfun(@rdivide, x, p);
plot(x,y)
Given x and p compute y.

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by