Gistlib Logo

gistlib

how many elements are in the array [cos(0) : 0.03 : log10(1000)]. use matlab to determine the 44 th element. in matlab

main.m
arr = [cos(0) : 0.03 : log10(1000)];
num_elements = numel(arr);
element_44 = arr(44);
86 chars
4 lines

similar matlab code snippets

recursively split an array about the median value in matlab
how to calculate the binomial distribution in matlab
how to calculate the 99th percentile in matlab
how to calculate cumulative distribution function in matlab
how to perform a ztest in matlab
how to calculate the normal distribution in matlab
how to plot the binomial distribution in matlab
calculate the area of a triangle in matlab
calculate the area of a sphere in matlab
find the slope of a set of points in matlab

related categories

matlab
array-manipulation

gistlibby LogSnag