www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/NumberofVectorElementsExample.m

    %% Number of Vector Elements  

%% 
% Find the length of a uniformly spaced vector in the interval |[5,10]|. 
v = 5:10  

%%  
L = length(v)