Conditionals and loops in MATLAB

1. If statements

if logical expression
statements
end

2. The else statements:-

if logical expression
statement 1
else
statement 2
end

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bijen Adhikari

Bijen Adhikari

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