Matlab Class

Wednesday, May 13, 2015

Check the class of the variables in MatLab

The variables may be of type float, Int, char etc.  

Example Program : 

%% Check the class of the variables
%% Assign float value to the A

A = 3.055;

%% Display the class of A
class(A)

%% Assign the Int value to B

B=3

%% Display the Class of B
class(B)

%% Assign the char value to c

C='hello'

%% Display the Class of c
class(C)
Posted by Advaitha at 9:52 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Advaitha
View my complete profile

Blog Archive

  • ▼  2015 (15)
    • ►  June (1)
    • ▼  May (14)
      • Matlab code to solve differential equation D2y-2*D...
      • Matlab code to solve the 2nd order differential eq...
      • MatLab code to Solve the 1st order differential eq...
      • MatLab code to Solve the 1st order differential eq...
      • Matlab code to Solve the 2nd order differential eq...
      • MatLab code to solve 1st order differential equat...
      • Hermitian of a complex matrix using MatLab
      • Conversion of general matrix to logical array usin...
      • Check the class of the variables in MatLab
      • Data Type check of stored variables in Matlab work...
      • Toeplitz matrix generation using Matlab
      • Generating Vandermonde Matrix in MatLab
      • Logical Array in Matlab
      • Swap Rows and Columns of the matrix using Matlab
Simple theme. Powered by Blogger.