equation with multiple X
3 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Mitch Martelli
2011-11-17
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;
0 个评论
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!