sin_cos_table.m
上传用户:zjhyt3
上传日期:2007-07-03
资源大小:89k
文件大小:0k
源码类别:

matlab例程

开发平台:

Matlab

  1. fprintf('    Table of Cosines and Sinesnn');
  2. fprintf(' theta     cos(theta)  sin(theta)n');
  3. fprintf(' =====     ==========  ==========n');
  4. for ii = 0:0.1:1
  5.    theta = pi * ii;
  6.    fprintf('%7.4f %11.5f %11.5fn', theta, cos(theta), sin(theta));
  7. end