필터 지우기
필터 지우기

how to use @ to solve math problems?

조회 수: 1 (최근 30일)
raziq halim
raziq halim 2020년 9월 21일
댓글: Walter Roberson 2020년 9월 22일
I can't recall on how to use @x in solving an algebraic problem. It has been a while for me using matlab to solve math problems for me?
Can someone please help resolve this?
mp = .211; % mass of piston [kg];
syms d
y = l+a-(sqrt((l^2)-(a^2)*(sind(d))^2)+a*cosd(d));
ap = diff(y,2); % acceleration of piston [m/s^2];
phi = asind((a*sind(d))/l);
Fcr = T/(a*cosd(d+phi)); % Force of connecting rod [N];
%a);
Ffr_1 = @(180) - Fcr*cosd(180)-mp*ap
  댓글 수: 2
VBBV
VBBV 2020년 9월 22일
편집: Walter Roberson 2020년 9월 22일
Ffr_1 = solve(@(d) Fcr*cosd(180)*(pi/180)-mp*ap,d)
Walter Roberson
Walter Roberson 2020년 9월 22일
Or
Ffr_1 = vpasolve(Fcr*cosd(180)*(pi/180)-mp*ap, d)

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by