linspace               package:matlab               R Documentation

_M_A_T_L_A_B _l_i_n_s_p_a_c_e _f_u_n_c_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Generate linearly spaced vectors.

_U_s_a_g_e:

     linspace(a, b, n = 100)

_A_r_g_u_m_e_n_t_s:

       a: numeric scalar specifying starting point

       b: numeric scalar specifying ending point

       n: numeric scalar specifying number of points to be generated

_D_e_t_a_i_l_s:

     Similar to colon operator but gives direct control over the number
     of points.

_V_a_l_u_e:

     Returns vector containing containing 'n' points linearly spaced
     between 'a' and 'b' inclusive. If 'n' < 2, the result will be the
     ending point 'b'.

_A_u_t_h_o_r(_s):

     P. Roebuck, roebuck@mdanderson.org

_S_e_e _A_l_s_o:

     'logspace'

_E_x_a_m_p_l_e_s:

     linspace(1, 10, 4)

