  printf
  Builtin Function



      SSyynnooppssiiss
        Formatted printing.

      SSyynnttaaxx
        printf ( _f_o_r_m_a_t_s_t_r_i_n_g , _V_A_R_i ... )

      DDeessccrriippttiioonn
        The RLaB printf is a limited feature version of the C-language
        printf(). The features are limited because RLaB does not support
        all of the data type the C-language does.



        _f_o_r_m_a_t_s_t_r_i_n_g
           must be a valid printf format string


        _V_A_R_i
           are any number of constants or variables that match the
           format string. printf cannot print out vector, matrix, or
           list objects as a whole. Valid print objects are strings,
           constants, and scalars.

        The following shows how one might print out the annotated
        contents of a matrix.



          for(i in 0:size(a)[0]-1)
          {
            for(j in 0:size(a)[1]-1)
            {
              printf("a[%i;%i] = %f\n", i, j, a[i;j]);
            }
          }





     However, it would be more efficient to use:



          > writem("stdout", a);






     SSeeee AAllssoo
        fprintf, sprintf, write, read








