Gistlib Logo

gistlib

create a 1 x 25 vector containing random elements distributed in the interval [−0.5, 0.5]. in matlab

main.m
vector = rand(1,25) - 0.5;
27 chars
2 lines

similar matlab code snippets

how to calculate the variance of a vector in matlab
how to calculate the standard deviation of a vector in matlab
how to calculate the minimum of a vector in matlab
how to calculate the product of a vector in matlab
how to calculate the median of a vector in matlab
how to calculate the maximum of a vector in matlab
how to calculate the percentile of a vector in matlab
how to calculate the range of a vector in matlab
how to calculate the mode of a vector in matlab
how to calculate the mean of a vector in matlab

related categories

#-matlab
vector
random-numbers

gistlibby LogSnag