variable names, MATLAB Programming

Variable names:

Variable names are an example of the identifier names. The rules for identifier names are as shown below:

(A)The name should begin with a letter of the alphabet. After that, the name can hold digits, letters, and the underscore character (e.g., value_1), but it cannot have a space.

(B)There is a restriction to the length of the name; the built-in function namelengthmax informs how many characters this is.

(C)MATLAB is case-sensitive. That means that there is a distinction between upper- and lowercase letters. Therefore, variables called the mynum; MYNUM, and Mynum are all different.

(D)There are many words known as the reserved words which cannot be used as variable names.

(E)The names of built-in functions can, but must not, be used as variable names.

 

 

Posted Date: 10/18/2012 3:27:57 AM | Location : United States







Related Discussions:- variable names, Assignment Help, Ask Question on variable names, Get Answer, Expert's Help, variable names Discussions

Write discussion on variable names
Your posts are moderated
Related Questions
cAN Can I learn Metlab .I am X Scientist in DigitalCommunication. Can U please help me.I know the programming concepts

how to create adjacency matrix for amino acids in matlab?

Create a GUI that has A button to bring up a dialog to select a text file and read it in. Plot the x,y values on the GUI Have text entry values, one for each parameter, in which

I have couple questions in MATLAB I need help in

Creating Matrix Variables: Creating a matrix variable is actually just a generalization of creating a row and column vector variables. That is, the values within the row are s

Calling a Function: Here is an illustration of the call to this function in which value returned is stored in the default variable ans: >> calcarea(4) ans = 50.2655

using newton divided diference formula find f(15) and f (8)

how to model a diode in matlab given data

how to obtain matlab coding for the market clearing price

The Programming Concept: In most of the programming languages, random function returns a real number; therefore the real number would then have to be rounded to produce a rand