필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Need help please in function output

조회 수: 1 (최근 30일)
Ali Tawfik
Ali Tawfik 2019년 8월 24일
마감: John D'Errico 2019년 8월 24일
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
John D'Errico
John D'Errico 2019년 8월 24일
Please stop posting the same question over and over again.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by