Basic MATLAB Commands and its Functionality

by Dec 1, 2020IoT Programming

MATLAB is a language used by engineers and scientists for computational mathematics. It is used for developing algorithms, analyzing them, and also for creating models and applications. MATLAB also helps in developing applications using by deploying applications, embedded devices, and also interpreting using Simulink. To get started with MATLAB there are some basic commands required which are simple and very user-friendly.

Different MATLAB Commands:

Clear – This command removes variables from the memory

Exist – This command checks for the existence of a variable

Clc – This command clears the command window

Global – This command declares a variable as global

Help – If you need to search for any help just write the keyword at command window and it displays your available options

Who – This command lists the current variable

Type – This command displays the contents of a file.

Pwd – This command displays the current directory.

Date – This command displays the current date

What – This command lists all the Matlab files in the current directory

Matrices and vectors command

x(:) – This command selects all the elements of x

x(j:end) – This command selects jth to end element of x

x(j,:) – This command selects all j row elements

x(:,j) – This command selects all j column elements

diag(x) – This command selects the diagonal elements of x

Eye – This creates an identity matrix

Ones – This creates the array of ones

Zeros – This creates the array of zeros

Dot- This command generates the dot product of two matrices, note that the columns and rows of matrix decide the resulting matrix creation

Cross – Synonymously this creates the cross product, helpful in vector operations when represented in the matrix form

Rank – This command provides the result to an important mathematical parameter of matrices called rank which is the quantification of the lowest order of non-zero determinant carrying sub-matrix in the parent matrix

Det – Determinant of the matrix is calculated using this command.

Inv – Execution of this command provides us the inverse of a matrix.

edit file – This command opens the selected filename in the editor window

Alt – This command displays the hotkeys

Using Function keys:

F1 – This command helps for highlighting the selected function

F5 – This command runs the code

F9 – This command runs the highlighted code

F10 – runs code line

F12 – This command inserts a break point

Using Shift key:

Shift + F5 – This command leaves the debugger

Using Control Key:

Ctrl + R – This command helps in commenting a line

Ctrl + N – This command opens a new script

Ctrl + w – This command closes a script window

The following commands are enough for starting using MATLAB. Other than that, as its an easy language, it is very easy to understand and makes coding

Creating a multiplication Skill in Alexa using python

Written By Monisha Macharla

Hi, I'm Monisha. I am a tech blogger and a hobbyist. I am eager to learn and explore tech related stuff! also, I wanted to deliver you the same as much as the simpler way with more informative content. I generally appreciate learning by doing, rather than only learning. Thank you for reading my blog! Happy learning!

RELATED POSTS

Advanced Generics: Higher-Order Functions

Advanced Generics: Higher-Order Functions

In our journey through TypeScript generics, we've covered the basics, interfaces, and classes. Now, it's time to explore advanced concepts by combining generics with higher-order functions. These functions, which take other functions as arguments or return them,...

Basic Usage of Generics in Typescript

Basic Usage of Generics in Typescript

Keypoints Show how to declare generic functions and classes in TypeScript. Provide examples of generic functions that work with different data types. Demonstrate the use of built-in generics like Array<T> and Promise<T>. Here's the content...

Getting Started with Bash Script : A Simple Guide

Getting Started with Bash Script : A Simple Guide

Introduction In this tutorial, we will be looking into Bash Script - a tool used by developers to increase productivity and manage tasks. A lot of professionals use it for tasks such as system administration, data crunching, web app development, automated backups,...

How to Extract REST API Data using Python

How to Extract REST API Data using Python

Introduction In this tutorial, we will be discussing in detail on how to extract REST API data using Python. It is one of the most popular APIs and is used by a majority of applications. We will be using VS code editor for executing the python code. The extracted API...

Create a Simple ReactJs Application – Part 1

Create a Simple ReactJs Application – Part 1

ReactJs is one of the famous front-end open-source libraries of JavaScript developed by Facebook. It aims to allow developers to quickly create fast user interfaces for websites and applications. In this blog, we will create a simple and basic ReactJs...

Create a Simple ReactJs Application – Part 2

Create a Simple ReactJs Application – Part 2

In the tutorial's last part, we discussed about ReactJs and how to run a simple react app on a web browser. In this part, we will dig more into some interesting stuff, such as creating a home, about us, and contact pages. Click here for the first part - Create a...

VIDEOS – FOLLOW US ON YOUTUBE

EXPLORE OUR IOT PROJECTS

IoT Smart Gardening System – ESP8266, MQTT, Adafruit IO

Gardening is always a very calming pastime. However, our gardens' plants may not always receive the care they require due to our active lifestyles. What if we could remotely keep an eye on their health and provide them with the attention they require? In this article,...

How to Simulate IoT projects using Cisco Packet Tracer

In this tutorial, let's learn how to simulate the IoT project using the Cisco packet tracer. As an example, we shall build a simple Home Automation project to control and monitor devices. Introduction Firstly, let's quickly look at the overview of the software. Packet...

All you need to know about integrating NodeMCU with Ubidots over MQTT

In this tutorial, let's discuss Integrating NodeMCU and Ubidots IoT platform. As an illustration, we shall interface the DHT11 sensor to monitor temperature and Humidity. Additionally, an led bulb is controlled using the dashboard. Besides, the implementation will be...

All you need to know about integrating NodeMCU with Ubidots over Https

In this tutorial, let's discuss Integrating NodeMCU and Ubidots IoT platform. As an illustration, we shall interface the DHT11 sensor to monitor temperature and Humidity. Additionally, an led bulb is controlled using the dashboard. Besides, the implementation will be...

How to design a Wireless Blind Stick using nRF24L01 Module?

Introduction Let's learn to design a low-cost wireless blind stick using the nRF24L01 transceiver module. So the complete project is divided into the transmitter part and receiver part. Thus, the Transmitter part consists of an Arduino Nano microcontroller, ultrasonic...

Sending Temperature data to ThingSpeak Cloud and Visualize

In this article, we are going to learn “How to send temperature data to ThingSpeak Cloud?”. We can then visualize the temperature data uploaded to ThingSpeak Cloud anywhere in the world. But "What is ThingSpeak?” ThingSpeak is an open-source IoT platform that allows...

Amaze your friend with latest tricks of Raspberry Pi and Firebase

Introduction to our Raspberry Pi and Firebase trick Let me introduce you to the latest trick of Raspberry Pi and Firebase we'll be using to fool them. It begins with a small circuit to connect a temperature sensor and an Infrared sensor with Raspberry Pi. The circuit...

How to implement Machine Learning on IoT based Data?

Introduction The industrial scope for the convergence of the Internet of Things(IoT) and Machine learning(ML) is wide and informative. IoT renders an enormous amount of data from various sensors. On the other hand, ML opens up insight hidden in the acquired data....

Smart Display Board based on IoT and Google Firebase

Introduction In this tutorial, we are going to build a Smart Display Board based on IoT and Google Firebase by using NodeMCU8266 (or you can even use NodeMCU32) and LCD. Generally, in shops, hotels, offices, railway stations, notice/ display boards are used. They are...

Smart Gardening System – GO GREEN Project

Automation of farm activities can transform agricultural domain from being manual into a dynamic field to yield higher production with less human intervention. The project Green is developed to manage farms using modern information and communication technologies....