MATLAB MONDAYS?- Crash Course part-1

Welcome one ? Welcome all! ✌️ Today is the first MATLAB Monday, ? and we will learn about what is MATLAB ⚽ and how are variables declared in it. ?

What is MATLAB?- MATLAB stands for MATrix LABoratory. MATLAB is a scientific programming language.✨ It i…


This content originally appeared on DEV Community and was authored by Aatmaj

Welcome one ? Welcome all! ✌️ Today is the first MATLAB Monday, ? and we will learn about what is MATLAB ⚽ and how are variables declared in it. ?

What is MATLAB?- MATLAB stands for MATrix LABoratory. MATLAB is a scientific programming language.✨ It is mainly used for solving mathematical equations and data-visualization. Complicated systems can be better understood with this software. Speed and ease of writing are the salient features of MATLAB.
Professor Cleve Moler designed MATLAB. He did so with an intention to reduce heavy FORTRAN coding. The aim of the language was making an engineer friendly syntax.
image
MATLAB is used by students and engineers in many disciplines like Robotics, Astrology, Machine Learning, Image Processing and Biology.

MATLAB web browser The MATLAB web browser let's us run MATLAB through the web. First, login (create a new account) using your university account. If you do not have a university account, you can use a free 30- day trial too!
image

The command prompt
MATLAB online contains the command prompt central to the page, where we can write our code. Similar to python, MATLAB let's us calculate numbers at the command prompt, and the answer is displayed in the command window.
image
Adding a semicolon at the end of the statement prevents output from being displayed.
image

Similer to many languages, too small or too large values like the last one are displayed using scientific notation.

MATLAB operators follow this order-

1) Parenthesis
2) Exponentiation
3) Product and Division
4) Addition and Subtraction

So for complicated calculations, it is important to specify the brackets.

The command prompt can be quit using the command "exit"

MATLAB VARIABLES
We can declare variables using the '=' sign, that is the assignment operator.
The following are the rules for variable declaration in MATLAB are same as Python as below

Variables must begin with a letter, are case sensitive, may contain only letters numbers or underscores

The variables declared are located at the left bottom side of the page. (WORKSPACE) The values of the variables are also displayed along with their class. Note that MATLAB treats 'ans' as a variable too. So whenever operations are performed, the variable 'ans' is overridden.
image

to be continued....?

?Yes, I know learning MATLAB might be a bit of bore?...But never mind, no pain no gain??
For any suggestions or doubts, please comment below ?, and I will be happy to help ? ?️ Follow me for updates...
Also, you can gmail me for any suggestion or help ?
LinkedIn
Gmail

Bye for now ?
Meet you all soon?

➕➖✖️➗


This content originally appeared on DEV Community and was authored by Aatmaj


Print Share Comment Cite Upload Translate Updates
APA

Aatmaj | Sciencx (2021-06-28T05:05:56+00:00) MATLAB MONDAYS?- Crash Course part-1. Retrieved from https://www.scien.cx/2021/06/28/matlab-mondays%f0%9f%92%a5-crash-course-part-1/

MLA
" » MATLAB MONDAYS?- Crash Course part-1." Aatmaj | Sciencx - Monday June 28, 2021, https://www.scien.cx/2021/06/28/matlab-mondays%f0%9f%92%a5-crash-course-part-1/
HARVARD
Aatmaj | Sciencx Monday June 28, 2021 » MATLAB MONDAYS?- Crash Course part-1., viewed ,<https://www.scien.cx/2021/06/28/matlab-mondays%f0%9f%92%a5-crash-course-part-1/>
VANCOUVER
Aatmaj | Sciencx - » MATLAB MONDAYS?- Crash Course part-1. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/28/matlab-mondays%f0%9f%92%a5-crash-course-part-1/
CHICAGO
" » MATLAB MONDAYS?- Crash Course part-1." Aatmaj | Sciencx - Accessed . https://www.scien.cx/2021/06/28/matlab-mondays%f0%9f%92%a5-crash-course-part-1/
IEEE
" » MATLAB MONDAYS?- Crash Course part-1." Aatmaj | Sciencx [Online]. Available: https://www.scien.cx/2021/06/28/matlab-mondays%f0%9f%92%a5-crash-course-part-1/. [Accessed: ]
rf:citation
» MATLAB MONDAYS?- Crash Course part-1 | Aatmaj | Sciencx | https://www.scien.cx/2021/06/28/matlab-mondays%f0%9f%92%a5-crash-course-part-1/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.