0% found this document useful (0 votes)
130 views3 pages

Matlab

The document contains MATLAB code snippets for various mathematical operations, including differentiation, integration, matrix manipulation, and plotting functions. It demonstrates the use of symbolic variables and functions, as well as the creation of plots for sine and cosine functions. Additionally, it includes commands for clearing the workspace and setting up the environment for calculations.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
130 views3 pages

Matlab

The document contains MATLAB code snippets for various mathematical operations, including differentiation, integration, matrix manipulation, and plotting functions. It demonstrates the use of symbolic variables and functions, as well as the creation of plots for sine and cosine functions. Additionally, it includes commands for clearing the workspace and setting up the environment for calculations.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

>> fx=cos(sin(3*x^2));

>> dfx=diff(fx)
dfx =-6*sin(sin(3*x^2))*cos(3*x^2)*x
a=[2 5 7 4;-1 2 5 1;4 -1 7 8];
resul=rref(a)
syms a b w
let=[a b;w a]
invlet=inv(lte);
invlet=inv(let);
let*invlet
[ a^2/(a^2-b*w)-b*w/(a^2-b*w),
[ 0, a^2/(a^2-b*w)-b*w/(a^2-b*w)]
det (let);
let'
clear
clc
x=[0:1:10];
y=sin(5*x)
plot(x,y)
x=0:0.01:10;
y=sin(5*x)
plot(x,y)
clear
clc
syms x
fx=sin(5*x)

0]

dfx=diff(fx)
ifx=int(fx)
fx=cos(sin(3*x^2));
dfx=diff(fx)
ifx=int(fx)
clear
clc
x=0:0.01:10;
y=fx=cos(sin(3*x^2));
fx=cos(sin(3*x^2));
x=0:0.01:2;
fx=cos(sin(3*x^2));
x=0:0.1:2;
fx=cos(sin(3*x^2));
x=0:1:2;
fx=cos(sin(3*x^2));
clear
x=0:0.01:2;
fx=cos(sin(3*x^2));
fx=cos(sin(3*x.^2));
plot(x,fx)
symsx
syms x
fx=cos(sin(3*x.^2));
dfx=diff(fx);
ezplot(fx);

hold on
ezplot(dfx)
ezplot(fx)
ezplot(dfx)
ezplot(fx)
hold on
ezplot(dfx)
syms x y
fx=cos(sin(3*x.^2*y));
ezsurf(fx)

You might also like