Experiment No1
Experiment No1
With its powerful computational engine and extensive built-in functions, MATLAB enables
fast and flexible problem-solving, making it a preferred platform for technical computing and
simulation.
Apparatus:
1. MATLAB Software.
MATLAB Code:
>> disp("Hello World")
Hello World
>> a=12
a=
12
>> b=8
b=
8
sum = a + b;
ans =
20
>> a-b
ans =
4
>> a*b
ans =
96
>> a/b
ans =
1.5000
>> pi
ans =
3.1416
>>radius = 5;
area = pi * radius^2;
ans =
78.5398
>> 1/0
ans =
Inf
>> clear all
Conclusion: MATLAB is a high-level programming and numeric computing platform that
excels in matrix operations, data visualization, and algorithm development. Its intuitive syntax
and interactive environment make it accessible for beginners while offering advanced
capabilities for professionals. With specialized toolboxes for areas like machine learning, signal
processing, and control systems, MATLAB supports a wide range of applications across
engineering, science, and industry. Its ability to integrate with other programming languages
and its robust scripting features facilitate automation and complex system modeling. As a
foundational tool in technical computing, MATLAB continues to drive innovation and
efficiency in computational tasks.