# How do I graphic

2 visualizaciones (últimos 30 días)
Arturo el 19 de Feb. de 2024
Comentada: Dyuman Joshi el 19 de Feb. de 2024
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 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
Dyuman Joshi el 19 de Feb. de 2024
"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.

Iniciar sesión para comentar.

### Respuestas (2)

VBBV el 19 de Feb. de 2024
eqn = @(x) (-3+3*x)./x <= 0
eqn = function_handle with value:
@(x)(-3+3*x)./x<=0
fplot(eqn,[-5 5])
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

Sulaymon Eshkabilov el 19 de Feb. de 2024
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')
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Categorías

Más información sobre Mathematics en Help Center y File Exchange.

R2023b

### Community Treasure Hunt

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

Start Hunting!

Translated by