K

@Kaliyahj123

kaliyahjohnson_lab9_question1.m

Octave
18 hours ago
clc clear disp("Kaliyah Johnson") x = 1:100; y = exp(x); z = x.^3; subplot(2,2,1) plot(x,y,x,z)

labassignment8_kaliyahjohnson_question1.m

Octave
1 week ago
clc clear disp("Kaliyah Johnson") k = 0; s = 0; while s <= 10000 k = k + 1; s = s + 3^k;

HW4_kaliyahjohnson_question5.m

Octave
1 week ago
clc clear disp("Kaliyah Johnson") x = 0; y = 0; while y < 9.8 x = x + 0.1; y = 10*(1-exp(-x/4));

HW4_kaliyahjohnson_question4.m

Octave
1 week ago
clc clear disp("Kaliyah Johnson") x = -5:0.1:10; for i = 1:length(x) if x(i) < -1 y(i) = exp(x(i)+1); elseif x(i) <= 5

HW4_kaliyahjohnson_question3.m

Octave
1 week ago
clc clear disp("Kaliyah Johnson") x = 4; y = 6; z = 8; if x<y && z<10 w=x*y*z

HW4_KaliyahJohnson_Question2.m

Octave
1 week ago
clc clear disp("Kaliyah Johnson") x = [-3 0 0 2 5 8]; y = [-5 -2 0 3 4 10]; a = y < ~x b = x & y c = x | y

HW4_kaliyahjohnson_question1.m

Octave
1 week ago
clc clear disp("kaliyah johnson") price_A = [19 18 22 21 25 19 17 21 27 29]; price_B = [22 17 20 19 24 18 16 25 28 27]; price_C = [17 13 22 23 19 17 20 21 24 28]; a = sum(price_A > price_B & price_A > price_C)

HW3_question5_KaliyahJohnson.m

Octave
3 weeks ago
clc clear disp("kaliyah johnson") f = @(x) x.^2; g = @(y) 3*cos(y); h = @(z) 6*exp(z); x = 0:0.1:4;

HW3_question4_KaliyahJohnson.m

Octave
3 weeks ago
clc clear disp("kaliyah johnson") f = @(x) 20*x.^2-200*x+3; x = 0:0.1:10; plot(x,f(x))

HW3_question3_KaliyahJohnson.m

Octave
3 weeks ago
clc clear disp("kaliyah johnson") t = @(h,g) [(50-sqrt(50^2-2*g*h))/g, (50+sqrt(50^2-2*g*h))/g]; t(100,9.81)

HW3_question2_KaliyahJohnson.m

Octave
3 weeks ago
clc clear disp("kaliyah johnson") x = -5:0.1:5; y1 = sinh(x); y2 = (exp(x)-exp(-x))/2; plot(x,y1,x,y2)

HW3_question1_KaliyahJohnson.m

Octave
3 weeks ago
clc clear disp("kaliyah johnson") x = -5+8i; y = 10+5i; a = abs(x*y) b = angle(x*y)

labassignment2_kaliyahjohnson_question1.m

Octave
3 weeks ago
clc clear disp("Kaliyah Johnson") function [P,A] = rectangle(l,w) P = 2*(l+w); A = l*w; end [p, a] = rectangle(5, 4)

labassignment5_kaliyahjohnson_question1.m

Octave
4 weeks ago
clc clear disp("kaliyah johnson") x = -10:0.1:10; f = 5*x.^5 + 2*x.^2 - 6*x + 8; g = x.^4 + 3*x.^2 - 5*x + 10; y = f.*g; plot(x,y)

hw2_question6_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") A = [14 -6 3 9]; B = [5 7 -4]; [Q,R] = deconv(A,B)

hw2_question5_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") A = [10 -9 -6 12]; B = [5 -4 -12 8]; C = conv(A,B)

hw2_question4_kaliyahjohnson

Octave
1 month ago
clc clear disp("kaliyah johnson") A = [5 0 0]; B = [2 4 0]; C = [3 0 -2]; V = abs(dot(A,cross(B,C)))

hw2_question3_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") x = -3:0.1:3; y = 3*x.^4 - 6*x.^3 + 8*x.^2 + 4*x + 90; z = 3*x.^3 + 5*x.^2 - 8*x + 70;

hw2_question2_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") A = [56 32; 24 -16]; B = [14 -4; 6 -2]; a = A*B

hw2_question1_kaliyahjohnson.m

Octave
1 month ago
clc clear disp("kaliyah johnson") A = [3 7 -4 12; -5 9 10 2; 6 13 8 11; 15 5 4 1] v = A(:,2) w = A(2,:)