K

@Kaliyahj123

midterm_question7_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") x = -5:0.01:5; y = x.^2 - 4*x.*sin(x); plot(x,y) title('plot Function by kaliyah johnson') xlabel('x')

midterm_question6_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") A = [3 2 -4 5; 5 -6 7 -2; 8 9 3 4; 12 -5 6 7]; B = [20; -15; 73; 48]; C = A\B; x = C(1)

midterm_question5_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") x = 0:0.01:12; y = 4*(x<4) + (x>=4 & x<8) - 2*(x>=8); plot(x,y) title('Function by kaliyah johnson') xlabel('x')

midterm_question4_kaliyahjohnson

Octave
1 month ago
clc clear disp("kaliyah johnson") a = 2; t = 0:0.01:2*pi; x = a*cos(2*t).^3; y = a*sin(2*t).^3;

midterm_question3_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") x = 2-5*i; y = -4+3*i; a = x/y b = exp(x)

midterm_question2_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") A = [1 -2 3; 4 5 -6; -7 8 9]; B = A(1:2,2:3) C = B.^(-2)

midterm_question1_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") 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))

lab 3 Assignment

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

kaliyahjohnson_lab2Assignment

Octave
1 month ago
clc clear clc clear X = [2, 4, 7] Y = [2, -4, 7] magX = norm(X)

HW1_Question5_kaliyahjohnson

Octave
2 months ago
clc clear x = linspace(-pi, pi, 1000); f = zeros(size(x)); f(x > 0 & x < pi) = 1; f(x > -pi & x < 0) = -1; F = (4/pi)*(sin(x)/1 + sin(3*x)/3 + sin(5*x)/5 + sin(7*x)/7);

HW1_Question4_kaliyahjohnson

Octave
2 months ago
clc clear r = 10; phi = linspace(0, 4*pi, 1000); x = r*(phi - sin(phi)); y = r*(1 - cos(phi)); plot(x, y, 'r', 'LineWidth', 2);

HW1_question3_kaliyahjohnson

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

HW1_question2_kaliyahjohnson

Octave
2 months ago
clc clear a = 1.21; b = 2.04; c = 1.72; d = 0.85; f = 17.83; x = 1 + a/b + c/f^2;

HW1_Question1_kaliyahjohnson

Octave
2 months ago
clc clear x = 5; y = 2; a = y*x^3/(x - y); b = 3*x/(2*y); c = (3/2)*x*y; d = x^5/(x^5 - 1);

lab Assignment 1 by Kaliyah Johnson

Octave
2 months ago
clc clear display("kaliyah johnson") t = 0:0.01:10; P = 5*exp(-0.3*t) + 4*cos(2*t);

lab Assignment 1 by Kaliyah Johnson

Octave
2 months ago
clc clear display("kaliyah johnson") t = 0:0.01:10; P = 5*exp(-0.3*t) + 4*cos(2*t);

FinalexamproblemNo.6bykaliyahjohnson.m

Octave
1 year ago
clc clear A = [1 2 3 4 5 6 7 8 9] A = reshape(A, 3, 3) B = A(1:2, 2:3) C = A .^ (-2) I = eye(3) D = A + I g = 3

finalexamproblemNo.5byKaliyahJohnson.m

Octave
1 year ago
clc clear x = [0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30]; y = [5.13, 3.20, 2.46, 1.74, 1.18, 1.03, 0.574, 0.424, 0.293, 0.197, 0.155]; linear_coeffs = polyfit(x, y, 1); y_linear = polyval(linear_coeffs, x); x_nonzero = x(2:end); y_nonzero = y(2:end);

FinalexamproblemNo.4bykaliyahjohnson.m

Octave
1 year ago
clc clear x = -10:0.5:10 y = -10:0.5:10 [X, Y] = meshgrid(x, y); Z = X.^2 - 2*X.*Y + 4*Y.^2 figure surf(X, Y, Z, 'EdgeColor', 'none') hold on contour3(X, Y, Z, 20, 'k')

FinalexamproblemNo.3byKaliyahjohnson.m

Octave
1 year ago
clc clear t = linspace(-20*pi, 20*pi, 1000); x = sin(t) .* (exp(cos(t)) - 2*cos(4*t) + sin(t/12)); y = cos(t) .* (exp(cos(t)) - 2*cos(4*t) + sin(t/12)); plot(x, y, 'b', 'LineWidth', 2); hold on; plot(-x, -y, 'r--', 'LineWidth', 2); title('Astroid