Effacer les filtres
Effacer les filtres

equation with multiple X

1 vue (au cours des 30 derniers jours)
vanja
vanja le 17 Nov 2011
I am trying to solve the following problem.
y = ((x.*20000)/(x+20000))/10000*2
where x goes from 1 to 20000 with 0.1 jumps.
But i do not get several y's, i only get one.
y = ((x.*20000)/(x+20000))/10000*2
y =
1.4247
i would like to plot the answers but that is a bit hard when i only get on y.
Hope someone knows where the problem could be.

Réponse acceptée

Mitch Martelli
Mitch Martelli le 17 Nov 2011
Hi
If you want the division element by element you must put the dot in the right position:
y = ((x*20000)./(x+20000))/10000*2;

Plus de réponses (1)

vanja
vanja le 17 Nov 2011
Thancs for the help!! :)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by