How do i use output of one function as input to the other ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
suppose i have
function p= pos(x,y)
x=x+y;
p=x;
end
and another function
funtion z=neg(p,q) ----> How do I do this where I am passing p which is output of pos as input argument for neg?
c=p-q;
end
0 Kommentare
Antworten (1)
James Tursa
am 24 Nov. 2020
You can do this at the point where you are calling the function neg. E.g.,
z = neg(pos(x,y),q);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Shifting and Sorting Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!