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개)

Mischa Kim
Mischa Kim 2015년 6월 30일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

질문:

2015년 6월 30일

답변:

2015년 6월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by