Z

@zrenfus

Q 3.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') x= 2-5i; y= -4+3i; a. w= x/y b. z= exp(x) c. r= abs(y)

Q 2.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') A=[ 1 -2 3; 4 5 6; -7 8 9] % a. Extract the first and second rows, % and the second and third columns B = A(1:2, 2:3);

Question 1.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') a= pi/2; t= pi/6; y = (6*sqrt(2)*(sin(2*t)-2)^2 * (3*acos(t)-2) * atan(t)) / (a*(73 - 80*cos(t)^2 + 9*sin(2*t))^(5/2))

9.28.m

Octave
1 month ago
clc clear x= 1:1:10; y= 11:1:20; f1= log(x.*y); f2= log(x)+ log(y);

Lab Assignment 3.m

Octave
1 month ago
clc clear disp"Zhoria Renfus" t= 0:0.01:10; XA= 0.6 .*t; XB= 0.05 .*t.^2 + 0.1 +0.5; plot(t,XA, 'b', 'linewidth',2);

9.22.4.m

Octave
1 month ago
clc clear disp 'Zhoria Renfus' f=[1 13 52 6] x= 1:0.1:7; y= polyval(f,x) plot(x,y)

9.23. pt.2.m

Octave
1 month ago
clc clear disp 'Zhoria Renfus' f=[ 1 -3 2 1 -20 -1] g= [ 1 2 1 -1] product= conv(f,g) #multiplicatiom deconv(f,g) #division

9.23.m

Octave
1 month ago
clc clear disp 'Zhoria Renfus' f= [0 1 12 45 -50] x=roots(f) xl = [4 -3 9 -10] y= poly(xl)

Lab Assignment 2

Octave
1 month ago
clc clear disp "Zhoria Renfus" X=[2 4 7]; Y=[2 -4 7]; magX = norm(X) magY = norm(Y)

Element by Element

Octave
1 month ago
clc clear disp"Zhoria Renfus" D=[1 2; 3 4] F=[5 6; 7 8] G1= D.*F G2= F.*D

question 3.m

Octave
2 months ago
clc clear disp "Zhoria Renfus" x = -5 - 7i; y = 3 + 4i; a = x + y b = x*y c = x/y

Lab Assignment 1

Octave
2 months ago
clc clear disp "Zhoria Renfus" t= 0:0.05:10; p= 5* exp(-0.3*t) + 4* cos(2*t); plot(t,p) title('Population of Species Over Time') xlabel('Time (years)')

9.2.26.2

Octave
2 months ago
clc clear disp"Zhoria Renfus" r_old= 4 v_old= 4*pi*r_old^3/3 v_new= 1.4*v_old r_new=(3*v_new/(4*pi))^1/3

9.2.26.m

Octave
2 months ago
clc clear disp("Zhoria Renfus") x(1)=0 x(2)=1 x(3)=2 x(4)=3 x(5)=4 x(6)=5

5.m

Octave
1 year ago
clc clear N = 11 x = linspace(0,30,N) y = [5.13 3.20 2.46 1.74 1.18 1.03 0.574 0.424 0.293 0.197 0.155] figure plot(x,y,'-o'), title('Linear Plot') figure

hmw 6, question 1.m

Octave
1 year ago
clc clear x = [25, 30, 35, 40, 45]; y = [5, 260, 480, 745, 1100]; plot(x, y, 'bo', 'Markersize',8); hold on; linear_fit= polyfit(x, y, 1);

Hma 5, question 1.m

Octave
1 year ago
clc clear f = @(x) x.*tan(x) - 9; fplot(f, [0, 10]); grid on; xlabel('x'); ylabel('f(x)'); title('Plot of x tan(x) - 9');

12th Lab Assignment

Octave
1 year ago
clc clear x = linspace(-10,10,100); y= linspace(-10,10,100); [X,Y]= meshgrid(x,y); Z= sin(X.^2 + Y.^2).* exp(-5* X.^2 + Y.^2);

11.13.5.m

Octave
2 years ago
RC=0.1; f= @(w) abs(1./(RC*w*i+1)) N=100; w1=linspace(0,10,N); y1= f(w1); w2= linspace(10,100); y2=f(w2); loglog(w1,y1,'b',w2,y2,'r')

11.11.4.m

Octave
2 years ago
clc clear t= 0:0.1:10*pi; x=exp(-0.5*t).*sin(t); y= exp(-.05*t).*cos(t); z=t; plot3(x,y,z), grid on xlabel('x'), ylabel('y'), zlabel('z')