real InputReal(string)
Return Type: real
Parameters: string Prompt
Description:
InputReal prompts the user to enter a floating point value and returns
the input. The Prompt is displayed, after which a floating point value
must be entered. An error occurs if a non-floating point is entered.
Example
Code |
1 >>real
r = InputReal("Enter your weight: ");
Enter your weight: -60.4
2 >>disp(r);
-60.40000000000000 |