gistlib
other matlab categories
loops code snippets in matlab
2) sums the values of those elements of āxā that are lower than 26. in matlab
add variable to array sequentially inside loop in matlab
calculate the frequency of letters in words in matlab
check if all inputs are positive and convert to positive values if not in matlab
check if there are consecutive same values in a vector and if not, chagne that value to 0 in matlab
code to select one image each from multiple directory in matlab
collect ten matrix 784x1 and store it like 784x10 in matlab
compare to 66x67x67 cells with each other and check if they are the same in matlab
construct a matrix with element to be the sum in matlab
contains even numbers between 1 and 11 from smallest number to largest number 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 double loop with the iteration n and m evaluating a vector at 1,1 1,2 1,3 and so on in matlab
create a for loop for a matrix of any size that asks for rows and column where the first row is one and the last row is 0 in matlab in matlab
create a for loop for values 0.1 to 0.7 in matlab
create a forloop in matlab
create a loop for the division of 7 by a matrix a with elements from 1 to 100 in matlab
create a loop in matlab in matlab
create a loop that can calculate the number of rotation per minutes of an extruder knowing the velocity and the volume that can contain in matlab
create a loop that number adds by 1 in matlab
create a loop to replace values that equal zero in matlab
create a loop to solve for all theta values in a 4 bar mechanism 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 matrix of any size that asks for rows and column. the first row is one and last row is 0 in matlab
create a miltiplication table in matlab
create a script for loop to calculate the first derivative of h-reflex curve firstder = diff(hrpp) in matlab
create simple program that can add and subtract two matrices using if-end statement in matlab
create structure with "fahrzeugid" and "sop" and fill it within a loop in matlab
creating cell array in a loop 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 a value determined in a loop but only once in matlab
divide a triangle with vertices (-1,1) (-1, 0) (0, 1) into n^2 triangles in matlab
find an average of ten random numbers input by the user in matlab
find negative elements in matrix and keep their values in matlab
find negative numbers in a matrix in matlab
find prime factors of a whole number in matlab
find prime numbers without isprime() in matlab
find prime numbers without isprime() or primes() in matlab
find the location of the max of a matrix when another matrix equals 0 in matlab
find the max of a matrix when another matrix equals 1 in matlab
find the prime numbers of a list in matlab
find the second sequence of zeros in array in matlab
find the sum of all non positive prime numbers given an input in matlab
find the sum of all non prime numbers in matlab
find the sum of non positive prime in matlab
find the thirteen adjacent digits in the 1000-digit number that have the greatest product. what is the value of this product? in matlab
for i=1:1000 in matlab
for i=1:length(xtick) in matlab
for i=1:length(ytick) in matlab
for loop in matlab in matlab
for loops in matlab
for loops for matrix in matlab
game in matlab
generate tribonacci sequence in matlab
how do i create a loop that checks checks every column one row at a time in a matrix for a double value of nan in matlab in matlab
how do i create a loop that checks checks every column one row at a time in a matrix for a string called "nan" in matlab
how many combinations are in a rubix cube in matlab
how many times does the loop execute? for c=1:2:10 fprintf("%d ", c); end in matlab
how many times will this loop reiterate ind = 1; for ind = randi(10) %body goes here ind = ind + 1; end in matlab
how to calculate the mean distance between an array of points in matlab? in matlab
how to calculate the population of a species in a given time in matlab
how to change the diagonal of a matrix 3x3 with a vector with 3 elements using a loop to create the vectorin matlab 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 count from -1 to 101 in matlab
how to do for loops in matlab in matlab
how to find the position of all the 1s in a logical array in matlab
how to know if a number is perfect in matlab
how to loop over dates in matlab
how to make a loop stop in each interation and continue after pressing a key in matlab
how to matrix multiply in matlab
how to pause a function without pausing a loop in matlab
how to put rows of a cell matrix into a cell array in matlab
how to put rows of a matrix into a indidual cell array in matlab 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
how to search a cell matrix for a empty row in matlab
how to store 2 matrices generated as output of two iterations of a loop, find their difference in next step in matlab
how to turn nonzero elements in matrix to 1 in matlab
how to write a for loop to loop to the end of a file in matlab
i want to sample all the possibilities (0, 45, 90deg) ranging from 5 to 25 layers. however, there are some contraints. for example, there should be no more than 3 45 deg. layers in a row in matlab
implement factorial in matlab
import a video as a many frames with a loop in matlab
input for loop in matlab
insert code to determine the size of the times table in matlab
itereate over a char list in matlab
list of subjects with at least one in matlab
loop from 1-5 in matlab
loop thar places zero in the column of matrix if row is bigger than 2 in matlab
loop through all files in folder and list those which end with .m in matlab
loop through negative decimals in matlab
loop to find integers 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
make a program in matlab
make a random 100-by-100 matrix in matlab
matlab continue in matlab
multi level loop in matlab
not prime in matlab
r = 0; for y=1:2:5 r=r+3; end in matlab
remove reoccuring numbers in matrix in matlab
repeat your rules below in matlab
save image to file with filename same as index in matlab
store changing value sequentially in an array in a loop in matlab
sum of all numbers in the third column in matlab
sum values of the elements in vector that are lower than 26 without using the sum command in matlab
tridiagonal array with loops in matlab
use 2 for loops to iterate through a matrix of m x n dimensions and print out all numbers that are factors of 3. (where m and n > 1) in matlab
use a for loop and if else loop to calculate energy requirement of home heating in matlab
use a for loop to iterate through a vector printing only the odd positioned elements. in matlab
use for loops in a matrix to calculate mean in matlab
use your knowledge of loops and arrays to provide the simulation results for a data set of unknown length. in matlab
using double for loops for calculating the mean and standard deviation of rows and columns of a matrix in matlab
using input form from user, use for and while loops for the number in matlab
while loop in matlab
while loop to chekc if its y or n in matlab
write a function is1234() that takes a numeric vector or matrix as an input and returns whether it contains the numbers 1,2,3,4 in any order in matlab using loops in matlab
write a function is1234() that takes a numeric vector or matrix as an input and returns whether it contains the numbers 1,2,3,4 in any order in matlab using while loops in matlab
write a loop sums the values of those elements of āxā that are lower than 26. in matlab
write a matlab/octave script that takes n as input and print the following pattern. create a loopp in matlab
write a program that doubles the elements that are positive and are divisible by 3 or 5, and raises to the power of 3 the elements that are negative, but greater than -5 in matlab
write matlab script to determine the sum of the geometric progression. user needs to input the m value to calculate the sum. ā n=5 m ā 2 nā2 +(n+2) in matlab
write me a function with a for loop that reads in a text file in matlab
x = [16 12 14 18 13 20]; myvector = zeros (2 ,1); for ii = 1: length ( x ) if x ( ii ) > 15 myvector ( ii ) = x ( ii ); end end disp ( myvector ) in matlab
gistlib
by LogSnag