Anyone know the code to solve this Matlab question? Thanks in advance. Use the c
ID: 3809357 • Letter: A
Question
Anyone know the code to solve this Matlab question?
Thanks in advance.
Explanation / Answer
function [A] = create_matrix(a, n, m)
A = zeros(n,m);
for i = 1:n
for j = 1:m
A(i, j) = a(i, j);
end
end
end
function num = a(i, j)
if i <= j
num = 1
else
num = 2+j
end
end
A = create_matrix(@a, 18, 18)
det(A)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.