Professional Documents
Culture Documents
To Enter An Expression and Solve
To Enter An Expression and Solve
Result:
Result:
RESULT:
Aim: To solve for currents in an electrical circuit using kirchoffs laws using matlab
Apparatus: personal computer
Matlab software
Electrical Circuit:
Programme:
clc;
clear all;
close all;
A=input('enter coefficient matrix A=');
B=input('enter constant matrix B=');
I=inv(A)*B;
disp('currents in the meshs is=');
disp(I);
Result:
Result:
Aim: To plot sine, cosine, ramp, step square signals in single plot
Apparatus: personal computer
Matlab software
Program:
ylabel('y');
zlabel('z');
title('plot using ezsurf command');
figure;
z='-5./(1+x.^2+y.^2)';
ezsurfc(z,[-3,3,-3,3])
xlabel('x');
ylabel('y');
zlabel('z');
title('plot using ezsurfc command');
Publishing Report:
To publish a report go to FILEPUBLISH filename.m
Results: