Functions in MATLAB — (Part 1)

Bijen Adhikari
3 min readMar 7, 2022
Syntax :- function [y1,y2,y3,………,yN] =myfunction(x1,x2,x3,…..XM) — — — — 1.

Here, Function name = myfunction

y1,y2,y3…..yN= Output Variablesx1,x2,xe…..xM = Input VariablesA function is a collection of statements that work together to complete a task. Functions in MATLAB are defined in different files. Both the file and the function should have the same name.Go to the Home tab and pick New Script or New Live Script to make a script or live script using local functions…

--

--

Bijen Adhikari

Hi, I am Bijen from Nepal I write about Electronics, Electrical, Programming, Fitness. Also, I am a certified SSI Master Trainer.