필터 지우기
필터 지우기

how do you solve

조회 수: 1 (최근 30일)
Ls
Ls 2021년 8월 18일
답변: Walter Roberson 2021년 8월 18일
when x=1, y=x.^2+3 /(x+1)
and
when x=2:100, y=x.^2-3 /(x+1)
how do you solve this in matlab using vectorization method

답변 (2개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 8월 18일
% Scalars can be computed directly as they appear in the expression, e.g.:
x=1; y=x^2+3/(x+1);
% For vectors or matrices, USE an elementwise operation (.), e.g.:
x=2:100; y=x.^2-3./(x+1);

Walter Roberson
Walter Roberson 2021년 8월 18일
You would use the same techniques that Image Analyst showed in replying to you at https://www.mathworks.com/matlabcentral/answers/1413242-how-to-solve-equation#answer_769277 -- just modify the function expression.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by