How do I write the following in matlab ?

조회 수: 1 (최근 30일)
Jonathan Brudcom
Jonathan Brudcom 2020년 9월 5일
답변: Asad (Mehrzad) Khoddam 2020년 9월 5일
I just need something like a=... and b= ...
  댓글 수: 2
Jonathan Brudcom
Jonathan Brudcom 2020년 9월 5일
For some reason the picture did not upload, Here it is
the cyclist
the cyclist 2020년 9월 5일

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

답변 (2개)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020년 9월 5일
H1 = (x*(1+x^2)*(1+2*x)^2)^2.3 / -log(abs(tan(y))) + (-log(abs(tan(y)))-x) /(x*(1+x^2)*(1+2*x)^2);
R2 = sinh(sqrt(2*x+(sin(y)^2))/((x+log(abs(tan(y))))^1.3 + abs(x)))-(x+log(abs(tan(y)))+cos(y))/(2*x +(sin(y)^2))^(1/3);
  댓글 수: 1
the cyclist
the cyclist 2020년 9월 5일
편집: the cyclist 2020년 9월 5일
Assuming that ctg is supposed to be cotangent, those will need to be changed from tan(y) to cot(y).
If x and y are vectors and not scalars, many of operations here will need to be changed to element-wise.

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


Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020년 9월 5일
H1 = (x.*(1+x.^2).*(1+2*x).^2).^2.3 ./ log(abs(cot(y))) + (log(abs(cot(y)))-x) ./(x.*(1+x.^2).*(1+2*x).^2);
R2 = sinh(sqrt(2*x+(sin(y).^2))/((x+log(abs(tan(y)))).^1.3 + abs(x)))-(x+log(abs(tan(y)))+cos(y))./(2*x +(sin(y).^2)).^(1/3);

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by