Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Need help please in function output

2 visualizaciones (últimos 30 días)
Ali Tawfik
Ali Tawfik el 24 de Ag. de 2019
Cerrada: John D'Errico el 24 de Ag. de 2019
Hi
I am trying to build function to obtain different results upon changing of variables So I need help please
Below is the code
clc;
syms x y real;
neg=solve(-15 == 10*x+2*y,y)
pos=solve(10*x+2*y == 20,y)
yinterval = [ neg,pos]
myfunc(10) % to see the results of neg, and pos if x=100
%% Add function
function myfunc(x)
neg=input('enter equation ') % I have written yinterval(1) %% (got error of undefined variable )
pos=input('enter equation ') %% (got error of undefined variable )
yin(:,1)=[cc,mm]
end
ANy help!
  1 comentario
John D'Errico
John D'Errico el 24 de Ag. de 2019
Please stop posting the same question over and over again.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by