plot for different values
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
Risposte (1)
Mischa Kim
il 30 Giu 2015
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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!