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

1 Ansicht (letzte 30 Tage)
hi, is there a difference between 'function A=function_filename(c,d) and 'A=function_filename(c,d)'?

Akzeptierte Antwort

Aveek Podder
Aveek Podder am 17 Apr. 2018
Bearbeitet: Aveek Podder am 17 Apr. 2018

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

Weitere Antworten (0)

Kategorien

Mehr zu 모델링 finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!