MATLAB Answers

0

Difference 'function A=function_filename(c,d) and 'A=functio​n_filename​(c,d)'

Asked by Elisabeth Lyan on 8 Apr 2018
Latest activity Edited by Aveek Podder on 17 Apr 2018
hi, is there a difference between 'function A=function_filename(c,d) and 'A=function_filename(c,d)'?

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Aveek Podder on 17 Apr 2018
Edited by Aveek Podder on 17 Apr 2018
 Accepted Answer

function A=function_filename(c,d) declares a function named function_filename that accepts inputs c,d and returns outputs A.

Whereas A=function_filename(c,d) calls the function named function_filename that accepts inputs c,d and the value returned from the function is stored in A.

For more information please have a look at the following link: https://www.mathworks.com/help/matlab/ref/function.html

  0 Comments

Sign in to comment.