Gistlib Logo

gistlib

what does jj = (1:12) mean in matlab

In MATLAB, jj = (1:12) creates an array jj containing the numbers 1 through 12. This is equivalent to manually typing jj = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]. The : operator is used to create a range of numbers, in this case from 1 to 12.

similar matlab code snippets

use the elements of an array as function arguments in matlab
reverse a character array in matlab
insert code to determine the size of the times table in matlab
how to replace each element in a array with the row of another array in matlab
make a random 100-by-100 matrix in matlab
generate tribonacci sequence in matlab
create a matrix with only pi and size 3x3 in matlab
add element to empty cell in matlab
make a matrix 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

related categories

matlab
arrays

gistlibby LogSnag