Please create this simple function in MATLAB ABCD A BC shoul

Please create this simple function in MATLAB,

A+B+C=D

A, B,C should be any real number

D is the solution for the function

Make it simple as possiple.

Solution

function y = sum(a,b,c) # function definition
y = a+b+c;
end


d = sum(4,5,6) #call to sum function

output:

d = 15

Please create this simple function in MATLAB, A+B+C=D A, B,C should be any real number D is the solution for the function Make it simple as possiple.Solutionfun

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site