You are on page 1of 6

Department of Electrical Engineering

The University of Faisalabad

ASSIGNMENT
 Title:

Data types and its conversions .

Using (MATLAB).

Procedure:

Firstly we open the MATLAB and open new page.

After that we have to write some strings.

After writing the strings we have to make use of data types and conversion.

 Codes using for the program:

Str = ‘Hello World’!

n = 2345

d = double(n)

un = uint32(789.50)

rn = 5678.92347

c = int32(rn).

DEPARTMENT OF ELECTRICAL ENGINEERING Assignment (ITC)


Department of Electrical Engineering
The University of Faisalabad

When the above code is compiled in MATLAB it shows the following result
which would be shown as following.

DEPARTMENT OF ELECTRICAL ENGINEERING Assignment (ITC)


Department of Electrical Engineering
The University of Faisalabad

These are the codes which we write in MATLAB and their clear results are shown
as following.

DEPARTMENT OF ELECTRICAL ENGINEERING Assignment (ITC)


Department of Electrical Engineering
The University of Faisalabad

DEPARTMENT OF ELECTRICAL ENGINEERING Assignment (ITC)


Department of Electrical Engineering
The University of Faisalabad

This is the final result that we take by writing codes in (MATLAB)


using strings for data types and conversions.

DEPARTMENT OF ELECTRICAL ENGINEERING Assignment (ITC)


Department of Electrical Engineering
The University of Faisalabad

Presented by :

Submitted to : Sir Usama Asad (ENGR).

DEPARTMENT OF ELECTRICAL ENGINEERING Assignment (ITC)

You might also like