Lab Report 1_Group 8_Fahim 1
Lab Report 1_Group 8_Fahim 1
Section: B, Group: 08
LAB REPORT ON
Introduction to MATLAB
Supervised By
Submitted By
Name ID
Command: >> A = [1 2 3; 8 6 4; 3 6 9]
Explanation: This command showing the output in a matrix form.
>> y = sin(x);
>> plot(x,y)
>> plot(x,y)
>>x1 = 0:pi/100:2*pi;
>>x2 = 0:pi/100:2*pi
>>y1 = sin(x1);
>> plot(x1,y1,x1,y2,x1,y3)
Explanation: The following commands creates three sinewave in three different colour.
Command: x = 0: pi/100:2*pi;
>> y = sin(x);
>> plot(x,y)
>>x1 = 0:pi/100:2*pi;
>>x2 = 0:pi/100:2*pi
>>y1 = sin(x1);
>> ylabel(’Amplitude’);
Explanation: Here we got three sinewaves; to differentiate these graphs, we used commands to
create one as straight line, one dotted line and one with --.
Discussion and Conclusion:
In this lab report, we explored the fundamental capabilities of MATLAB as a powerful tool for
numerical computing and data visualization. By engaging with various functions and scripts, we
demonstrated MATLAB's versatility in handling mathematical problems and generating
graphical representations. The exercises emphasized the importance of syntax and command
structure, highlighting how these elements contribute to efficient coding practices. Ultimately,
our findings underscore MATLAB's effectiveness in both academic and professional settings,
providing a robust platform for analysis and problem-solving. Future work may involve deeper
explorations into advanced features, such as toolboxes for specific applications, further
enhancing our computational toolkit.