Input data in Matlab

The input can be a single number, a character string (enclosed by single quotes), a vector (enclosed by square brackets and elements separated by spaces or commas), a matrix (enclosed by square brackets and rows separated by semicolons), or any other valid MATLAB data structure.

For example

>> a  = input('enter you data : ');
enter you data : 5
>> a

a =

     5

Determining input type :

Example

>> a  = input('enter you data : ');
enter you data : 'hello'
>> class(a)

ans =

char