Have you a registration already ? Sign In
What Is The Batch Production In Manufacturing(Illustrated Expression)
Assingning characters to variables is very basic process in Matlab. Bu it can be forgotten by Matlab users and they can not remember how was it. Or you are a new learner of Matlab and decided to learn Matlab from Mechanical Base. In this article we will basically show hot to assign characters to variables in Matlab.
Basically we created an ‘a’ variable that its value is not an integer or number etc. Its value is ‘mechanicalbase’. So its value is assigned as a characters inside the ‘’. This is the general rule of assigning characters to variables in Matlab.
As you can see by red arrow above that we used a command called ‘size()’ which gives the dimensions of the vector or matrix that typed inside the brackets of this command in Matlab. So we typed the variable ‘a’ inside it, it gave the numbers of 1 and 14 respectively as shown by red box above. This means, Matlab took the variable ‘a’ as 1×14 matrix. ‘mechanicalbase’ word has 14 characters inside it.
Leave your comments and questions below!
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Write Comments