gistlib
other matlab categories
indexing code snippets in matlab
% create a matrix of any size that asks for rows and column where the first row is one and th last row is 0 in matlab
add column 1 and column 2 of a matrix in matlab
add column to matrix in matlab
add element to cell in matlab
add element to cell with function in matlab
add element to empty cell in matlab
add element to empty cell with function in matlab
add elements to an array during loop in matlab
add entry to a table but only for one cell in matlab
array indexing in matlab
collect ten matrix 784x1 and store it like 784x10 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 2d matrix that makes any values of the elements in the first row are equal to the column number in matlab
create a 5 by 3 matrix, that starts 1-2, then doubles each column 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 for loop where in a matrix all other elements are three time the value above in matlab
create a loop that takes an array and returns the minimum value in matlab
create a matrix making sure that the second column from the left & second column from the right are equal to the column number in matlab
create a vector to store and update values in matlab
create new vector with elements of different vector between a range in matlab
creating table columnes out of array in matlab
design the function function out = x_m(x,m) with input data matrix x of size 𝑁 × 𝑑 hat produces the data matrix of size 𝑁 × (𝑀 + 1) in matlab
display last column in matrix in matlab
display last column in matrix with fprintf 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
find elements in row one that are equal to the column number in matlab
find index of 2 largest elements in array in matlab in matlab
find index of nearest value in array in matlab
find minumum value and index in matlab
find the coordinates of the largest value in a matrix in matlab
find the first three smallest values in a vector in matlab
find the index of 1s in logical array in matlab
find the second sequence of zeros in array in matlab
find the three smallest values in a vector in matlab
find the two largest values in a multidimensional list and discard other elements in matlab
find two biggest numbers in array in matlab
for loop that goes through every element of matrix in matlab
get elements of a structure in matlab
get field of structure in matlab
get rows of array in matlab
get the last element of an array in matlab
get the value of a specific field from a structure in matlab
give first element of cell in matlab
how to add multiple matrices in matlab
how to calculate the moving product of a vector in matlab
how to call on a specific value in matlab
how to call on a specific value in matlab in matlab
how to change the diagonal of a matrix 3x3 with a vector with 3 elements in matlab
how to change the diagonal of a matrix to be the sum of its position on row and column in matlab
how to extract last 2 columns of table in matlab
how to find the position of all the 1s in a logical array in matlab
how to get value of nested cell array in matlab
how to matrix index in matlab 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 put rows of a matrix into a indidual cell array in matlab in matlab
how to read a part of a table data in matlab
how to remove the end of a dataset in matlab in matlab
how to replace a number in a matrix with another number in matlab
how to replace each element in a array with the row of another array in matlab
how to replace each element of a array with the row cell of another array in matlab
i have a structure array. the structure has fieldnames and arrays as values. now i want from structure array 2 the value 1x1 in matlab
in a matrix set the column from the left to the column number from an unlimited range in matlab
index images in a directory to apply image processings to them in matlab
index in position 1 exceeds array bounds. index must not exceed 1. error in toolkette_new>getsammlerdaten (line 29) if strcmp(table{1,j}, fahrzeuge(j).fahrzeug_id(j,1)) ~= 1 in matlab
index the first 7 rows of a table in matlab
index the last 5 rows of a table in matlab
index the minimum value in a matrix in matlab
initialize array in matlab
location of max of a matrix in matlab
lookup table in matlab in matlab
make a matrix making sure that the second column from the left and second column from the right are equal to the column number in matlab
matlab how to compare a element in a array with a value and replace it if it matches in matlab
matlab how to get a value in a cell in a cell array in matlab
only keep selected indexes of array and discard rest in matlab
plot half the spectrum in hz for the following data sampled at 1 mhz, x=[21,43,21,45,47,48,47,45,66,66,66,66,66,98] in matlab
print first element of cell to screen in matlab
print first element of cell to screen using fprintf in matlab
print first element of cell to screen with text in matlab
read an index and then open file number cooresponding to that index in matlab
read the alphabets backwards in matlab
reading out a cell array which is the value of a dictionary in matlab
remove final row and column from matrix in matlab
remove item from array in matlab
replace last row of a matrix in matlab
replacing values in a vector with another value in matlab
reshape matrix to 768x10 in matlab
reverse a character array in matlab
save image to file with filename same as index in matlab
save ten vectotors 784x1 in martix 784x10 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
the function mat2coord should take an n × n array representing a matrix a ∈ r n×n and return the sparse coordinate representation encoded by the three arrays, d, ridx, and cidx in matlab
the structure has a fieldname and an array as value. there are also elements from this structure. now i want the field 1x1 from element 1 in matlab
the structure has a fieldname and the value is a array. now i want the field 1x1 from this array in matlab
the structure has an array as value and there are three elements from this structure. now i want the field 1x1 from element 1 in matlab in matlab
traverse a structure in matlab
turn a row in a timetable into a column in matlab
use char function to create a 9x4 array of alloy names to store the alloy names by alloy number/row number 1-9 in matlab
why am i getting left and right sides unequal error in matlab
write into a specific cell in matlab
gistlib
by LogSnag