Gistlib Logo

gistlib

generate the matrix a of order n=100, whose generic element is a_{ij}=\sin(\max(i,j)). the condition number of a in the 2-norm is: in matlab

main.m
n = 100;
A = sin(max((1:n)', 1:n));
cond_A = cond(A, 2);
cond_A
64 chars
5 lines

similar matlab code snippets

etermine the intersection point, p, of these three planes (note: your answer should be a row vector containing x,y, and z coordinates of the intersection). in matlab
solve ax=b matrix in matlab
find rref for matrix a = [1 2 3 4 ; 2 3 4 5 ; 3 4 5 6; 1 2 0 1]; b = [0 0 0 0]'; in matlab
compute the rank of a matrix in matlab
pseudoinverse method to solve overdetermined system of equations in matlab
make an array of 4 columns where the columns are x, t_an, t_nu, and t_nl, respectively and assign to variable xt_all in matlab
given three equations and four variables, solve the system in ax = b form in matlab
rref of an augmented matrix in matlab
hesse normal form in matlab
boost matrix in matlab

related categories

matlab
linear-algebra
matrix-operations

gistlibby LogSnag