calculating x when y is > 0

조회 수: 4 (최근 30일)
Gavin Seddon
Gavin Seddon 2019년 2월 13일
댓글: Gavin Seddon 2019년 3월 14일
Hello
I have plotted a changing distance (d(x)) with time using cftool and calculated the function. Its derivative was calculated and this is v(x). when plotted with fplot the initial Y values are 0. I am calculating the x position at which this rises above the x axes (y>0). To do this i made v(x) equivalent to 1 (==1) and evluated x yet:
>>v(x)==1
ans =
(4119*x^2)/10000 - (1787*x)/5000 + 891/2500 ==1
>> eval x
x =
x
Will someone please help to calculate this? i can measure the x value directly. It is preferable to standardise this procedure.
GS.
  댓글 수: 2
Gavin Seddon
Gavin Seddon 2019년 2월 14일
Hello, I tried
solve (x)
ans =
0
does this help?
GS.
madhan ravi
madhan ravi 2019년 2월 14일
Are you asking or stating?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2019년 2월 14일
solve(v(x)==1,x)
  댓글 수: 16
Walter Roberson
Walter Roberson 2019년 3월 13일
Do you mean that the second column of your table contains x values ? If so then
YourTable.NewThirdColumn = double( subs( v, x, YourTable.{:,2}));
Gavin Seddon
Gavin Seddon 2019년 3월 14일
Hello,
mytable.NewThirdColumn = double( subs( v, x, MyTable.(2)));
was the command used and yes indeed it produced a third column.
The numbers revealed indicate the method I tried previously was indeterminate. Thank you
GS.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by