Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
16 views43 pages

Co File

Introduction to computing computing file

Uploaded by

b22083995
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views43 pages

Co File

Introduction to computing computing file

Uploaded by

b22083995
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 43

Introduction to Computing

Lab File
Subject Code:- EP201

Submitted To:- Submitted By:-


Dr. Yogita Kalra KARTIK PANDEY
(Assistant Prof.) 23/EP/52

Engineering Physics 2nd Year(3rd Semester)

Delhi Technological University


SHAHBAD DAULATPUR ,
MAIN BAWANA ROAD, DELHI-110042
INDEX
SNo. Experiments DATE PAGE SIGN.
NO.

1.) Write Matrix Operation and Matrix Manipulation. 07/08/2024

2.) Write a MATLAB program for the very famous BlackBody 14/08/2024
radiation and verify Wein’s displacement law.

3.) Write a MATLAB program to calculate the values of inbuilt 21/08/2024


defined trigonometric functions using series solutions
approach. Compute the results with inbuilt functions.

4.) Write a MATLAB program to study the behaviour of 28/08/2024


Gaussian and Lorentzian function using all appropriate
inbuilt 2-D & 3-D plotting commands.

5.) Write a MATLAB program to find out the unknown 4/09/2024


coefficients by polynomial fitting.

6.) Write a MATLAB code to show the propagation of group 9/102024


waves as a function.

7.) Write a MATLAB code to plot the intensity distribution of 16/10/2024


single-slit,double-slit & N-slit all together. Analyse the
result.Show how Young’s Double slit experiment is different
from the double slit diffraction.

8.) Write a MATLAB program to find the roots of the equation 23/10/2024
by bisection method. Compare the result with the inbuilt
function.

9.) Write a MATLAB code to calculate the maximum number 30/10/2024


of modes supported by the planar waveguide and step index
optical fiber.

10.) Write a MATLAB code to solve the second order differential 6/11/2024
equation of the pendulum problem.
Vision and Mission of DTU
"To be a world class university through education, innovation
and research for the service of humanity"
Mission:
1.) To establish centres of excellence in emerging areas of
science, engineering, technology, management and allied
areas.
2.) To foster an ecosystem for incubation, product
development, transfer of technology and
entrepreneurship.
3.) To create an environment of collaboration,
experimentation, imagination and creativity.
4.) To develop human potential with analytical abilities,
ethics and integrity.
5.) To provide environment friendly, reasonable and
sustainable solutions for local & global needs.
Vision and Mission of Applied Physics

Vision:-
Consolidating teaching and learning process covering all aspects
of pure and applied physics that promotes research and
development leading to creation of new knowledge, inventions
and discoveries fostering institute-industry linkages and
entrepreneurial culture for betterment of all its stakeholders and
society at large.
Missions:-
1.) To establish global and industry standards of excellence by
generating new knowledge in all the endeavours concerned
to teaching, learning, research and consultancy.
2.) To help our students in developing human potential,
intellectual interest, creative abilities and be lifelong
learners to meet challenges of the national and global
environment and be true professional leaders.
3.) To stand up to the needs and expectations of our society by
equipping and training our students to be good citizens,
aware of their commitments and responsibilities, to make
this world a better place to live.
4.) To be a world class centre for education, research and
innovation in the various upcoming fields of Applied
Physics.
5.) To focus on the development of cutting-edge
technologies and to foster an environment of seamlessness
between academia and industry.
EXPERIMENT-1
Aim:- : To Write Matrix Operation and Matrix Manipulation.
Create a matrix.

>> a = [1 2 3;4 5 6;7 8 9]

Addition of matrices.
Subtraction of matrices.

Multiplication of two matrices


a.) Simple matrix multiplication

b.) Element to element multiplication

Division of matrices:-
a.) Simple division
b.) Element to element

Element wise power in matrix

Element division remainder with C/B


3x3 matrix into 1

3x3 matrix into 0

Making of identical matrix of 3x3

Linspace matrix
Regular -spaced points increment between elements.

Extract a value from the matrix.

Extract a particular column from the matrix.

Extract row from the given matrix.

Extract two columns of a matrix continuously


Extract two columns from a matrix.
Extract one sub-matrix of 2x2 from a 3x3 matrix.

Reshaping a matrix into a single vertical line.

Reshaping a matrix into a horizontal single line.


Reshaping the matrix again in a 3x3 matrix.

Operation for matrix flipping up-down

Operation for a matrix to flip it left to right.


Updating or assigning the Element Value of a Particular Row and
Column.
Experiment-2
Aim:- Write a MATLAB program for the very famous
BlackBody radiation and verify Wein’s displacement law.
COMMAND:-
OUTPUT:-
Experiment-3
Aim:- Write a MATLAB program to calculate the values of
inbuilt defined trigonometric functions using series
solutions approach. Compute the results with inbuilt
functions.

COSINE FUNCTION
OUTPUT:-
SINE FUNCTION
Experiment-4
Aim:-Write MATLAB program to study the behaviour of
Gaussian and Lorentzian function using all appropriate
inbuilt 2-D & 3-D plotting commands.

2-Dimensional Gaussian Graph

Output:-

3-Dimensional Gaussian Graph(smoothness):-


Output:-

2-Dimensional Lorentian Graph:-


Output:-

3-Dimensional Lorentian Graph(smoothness):-


Output:-
Experiment-5
Aim:- Write a MATLAB program to find out the unknown
coefficients by polynomial fitting.
Output:-
Experiment-6
Aim:- Write a MATLAB code to show the propagation of
group waves as a function.
Output:-
Experiment-7
Aim:- Write a MATLAB code to plot the intensity
distribution of single-slit,double-slit & N-slit all together.
Analyse the result.Show how Young’s Double slit experiment
is different from the double slit diffraction.
Commands:-
Single Slit Diffraction:-
Output:-
Missing Order
Commands:-
Output:-
Double Slit:-

Output:-
Double Slit & Single Slit in same graph

Output:-
N-Slit Diffraction:-
Commands:-

Output:-
Young’s Double-Slit Experiment
Commands:-

Output:-
Experiment-8
Aim:-Write a MATLAB program to find the roots of the
equation by bisection method. Compare the result with the
inbuilt function.
Commands:-
Use of inbuilt function.

Output:-
Use of inbuilt function ‘fzero’

Output:-

Finding roots of polynomial using bisection


mehtod
Output:-

Finding roots of transcendetal equation using


bisection method:
Output:-

Finding the multiple roots of given equation


using bisection method
Output:-
Experiment-9
Aim:- Write a MATLAB code to calculate the maximum
number of modes supported by the planar waveguide and
step index optical fiber.
Codes:-

Output:-
Experiment-10
Aim:- Write a MATLAB code to solve the second order
differential equation of the pendulum problem.
Codes:
Function File:

Executable File:
Output:-

You might also like