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

    %% Vector with Specified Number of Values
% Create a vector of 7 logarithmically spaced points in the interval |[10^1,10^5].|

% Copyright 2015 The MathWorks, Inc.


y1 = logspace(1,5,7)