Functions with the same inputs as outputs
조회 수: 1 (최근 30일)
이전 댓글 표시
I have the following problem:
Is there a way to execute a function in Matlab with the same inputs as outputs and my outputs depends on the inputs I give the function?
if true
% code
function [a,b,c]=myfun(a,b,c)
a=b+c
b=a-c
c=a-b
end
end
Is it possible to do this without arrays? I don't define my inputs in Matlab. I get it from another software. Another way to describe this problem would be: I just need the right transformation of the same equation depending on my inputs.
Best regards,
Tabea
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!