gistlib
other matlab categories
matrix code snippets in matlab
a= (0, 0, 1, 0, · · · , 0)^t, y = (y1, y2, · · · , y21),aa = y. calculate relative error in a if y(5) = y(5) + 0.01 in matlab
add column 1 and column 2 of a matrix in matlab
average 2 matrices in matlab
average every nth column in matrix with n getting larger in matlab
boost matrix in matlab
boost matrix in three dimensions in matlab
boost matrix in three dimensions coordinates in matlab
calculate mean of matrix in matlab
compute value of z=cos(x/y)*cos(y)+(y/10)-(x/5) for all grid points (x,y) in matlab
convert matrix of uint8 to double in matlab
convolve 1 dimension of matrix in matlab
create 3 x 5 empty logical variable in matlab
create a 2d matrix making sure that the second column from the left and second column from the right are equal to the column number in matlab
create a for loop that makes a 5 by 3 matrix, that starts 1-2, then doubles each column in matlab in matlab
create a loop for the division of 7 by a matrix a with elements from 1 to 100 in matlab
creating table and fill it within a loop in matlab
design a function that runs a every digit from a matrox in matlab
design the function function out = x_m(x,m) with input data matrix x of size 𝑁 × 𝑑 in matlab
display first image in matrix in matlab
display the elements of a matrix a with elements form 1 to 100 that are divisible by 7 in matlab
divise a number by a matrix from 1 to 100 in matlab
extract submatrix around (25,25) from a (50,50) matrix in matlab
extract submatrix around (25,25) size (10,10) from a (50,50) matrix in matlab
extract submatrix from a (50,50) matrix in matlab
fastest way to get standard deviation 2d array of a 3d array in matlab
find elements in row one that are equal to the column number in matlab
find negative elements in matrix in matlab
find pivot points of a matrix in matlab
find the eigenvalues of a matrix in matlab
finding maximum number in a row in matlab
for loop for a matrix in matlab
for loop for calculating the mean and standard deviation of rows and columns of a matrix in matlab
for loop that goes through every element of matrix in matlab
for loops for matrix in matlab
function to covert mnist to mat in matlab
gaussian elimination in matlab
give size of a matrix in matlab
how to calculate the inverse of a matrix in matlab
how to calculate the mean of a matrix in matlab
how to calculate the median of a matrix in matlab
how to calculate the mode of a matrix in matlab
how to calculate the standard deviation of a matrix in matlab
how to calculate the sum of a matrix in matlab
how to calculate the variance of a matrix in matlab
how to create an anti-identity matrix in matlab
how to determine if a cell is empty in matlab
how to extract last 2 columns of table in matlab
how to flatten a cell matrix so rows are indivual cell arrays in matlab
how to put rows of a cell matrix into a cell array in matlab
how to put rows of a cell matrix into a cell array in matlab in matlab
how to replace all nonzero elements with a one in matlab
how to search a cell matrix for a empty row of empty character cellsin matlab in matlab
if matrix is longer than wide, rotate by 90 degrees in matlab
in a matrix set the column from the left to the column number from an unlimited range in matlab
index the minimum value in a matrix in matlab
make a random 7 by 1 mareix with number from 1 to 30 in matlab
make empty row matrix in matlab
make matrices same size in matlab
out = x.^y; in matlab
pivot a matrix in matlab
quadratic loss by solving a standard least squares problem over training data matrix in matlab
quadratic loss by solving a standard least squares problem over training data matrix (1x14) in matlab
read data and compute spectral density matrix in matlab
reshape matrix size [25x2] to [1x1x25] in matlab
responsetimes = [ 2.4 2.2 2.9 2.7 2.7; 1.6 1.7 1.9 1.5 1.0; 2.1 2.2 0.9 2.5 1.9; 1.7 2.4 1.6 2.1 1.4 ] calculate the mean response times for each trial in matlab
rref of an augmented matrix in matlab
set size of matrix in matlab
set the second column from the left to the column number in matlab
sum of all numbers in the third column in matlab
sum of everything in a column in matlab
tridiagonal array with loops in matlab
use corr on different length matrix in matlab
use matrix algebra in matlab
using double for loops for calculating the mean and standard deviation of rows and columns of a matrix in matlab
using for loops to calculate the mean for each row and column in a matrix in matlab
using matlab, find a basis of the nullspace of the following matrix: b=[5,1,0;0,-1,3] in matlab
write code that will generate a 3x3x3 uint8 matrix, with the following pixel colors: [white red black; cyan green yellow; black blue white] in matlab
write into a specific cell in matlab
gistlib
by LogSnag