Input function, MATLAB Programming

Input Function:

The Input statements read in values from the default or standard input device. In most of the systems, the default input device is the keyboard; therefore the input statement reads values which have been entered by the user, or by the person who is running the script. To let the user know what he or she is assumed to enter, the script should first prompt the user for the specified values.

The simplest input function in a MATLAB is known as input. The input function is used in the assignment statement. To call it, the string is passed, that is a prompt which will emerge on the screen, and what the user types will be stored in the variable named on the left of the assignment statement. To make it simpler to read the prompt, place a colon and then a space after the prompt. 

 

Posted Date: 10/18/2012 5:46:15 AM | Location : United States







Related Discussions:- Input function, Assignment Help, Ask Question on Input function, Get Answer, Expert's Help, Input function Discussions

Write discussion on Input function
Your posts are moderated
Related Questions

the cost t in hundreds of dollars of tuition and fees at many community college can be approximated by t=1/2c+5 where c is the number of credits for which a student registers. ( 2

Function char: The function char does the opposite; it converts from any number type to the type char: >> char(numequiv) ans = a As the letters of the alphabet are

I am trying to implement this equation u_t=-\u_x\ using upwind scheme. and as a second step, I need to put some stopping function g(h) where u_t=-g(h)\u_x\ how can I write this on

Variables and Assignment Statements: A variable is used in order to store a value in a MATLAB session, or in a program. The Workspace Window represents variables which have be

Adaptive filters can also be used in other applications. Speech recognition, for example, is performed in a non-stationary environment, and therefore may require adaptive filtering

my project is on load frequency control using FPID tuned using GA and PSO algorithm.the system is a two area system.

i need someone to write a matlab code to solve a model.

Produce a random real number: To produce a random real number in the range from low to high, at first create the variables low and high. And then, use the expression rand*(hig

The Plot Function: We will begin with a very simple graph of one point using the plot function. The script, plotonepoint, below plots only one point. To do this, at first the