필터 지우기
필터 지우기

equation with multiple X

조회 수: 1 (최근 30일)
vanja
vanja 2011년 11월 17일
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.

채택된 답변

Mitch Martelli
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;

추가 답변 (1개)

vanja
vanja 2011년 11월 17일
Thancs for the help!! :)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by