필터 지우기
필터 지우기

How do I graphic

조회 수: 2 (최근 30일)
Arturo
Arturo 2024년 2월 19일
댓글: Dyuman Joshi 2024년 2월 19일
Hellos Im new in matlab and I have no idea how to graphic
I want to graphic the ecuation
eqn = (-3+3*x)/x <= 0
sol = solve(eqn,x,'returnconditions',true)
fplot(sol,[-5 5])
I doesn't understand how use this command
And Im not very good in English
Thaks, Have a nice day
  댓글 수: 1
Dyuman Joshi
Dyuman Joshi 2024년 2월 19일
"And Im not very good in English"
Please write in your native language and use a translator, so that we precisely understand what you want to do.

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

답변 (2개)

VBBV
VBBV 2024년 2월 19일
eqn = @(x) (-3+3*x)./x <= 0
eqn = function_handle with value:
@(x)(-3+3*x)./x<=0
fplot(eqn,[-5 5])

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2024년 2월 19일
The given inequality does not have explicit solution. Therefore, by ignoring analytical constraints, these can be obtained:
syms x
% Define EQN:
EQN = (3*x-3)/x <= 0;
% Solve:
SOL = solve(EQN, x, 'returnconditions', true, 'IgnoreAnalyticConstraints', true);
% Solution and Conditions
Solution = SOL.x
Solution = 
x
Conditions = SOL.conditions
Conditions = 
% Plot the inequality solution
fplot(Solution, [-5, 5], 'DisplayName', '(3*x-3)/x <= 0')

카테고리

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

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by