sin_cos_table.m
资源名称:matlab编程.zip [点击查看]
上传用户:zjhyt3
上传日期:2007-07-03
资源大小:89k
文件大小:0k
源码类别:
matlab例程
开发平台:
Matlab
- fprintf(' Table of Cosines and Sinesnn');
- fprintf(' theta cos(theta) sin(theta)n');
- fprintf(' ===== ========== ==========n');
- for ii = 0:0.1:1
- theta = pi * ii;
- fprintf('%7.4f %11.5f %11.5fn', theta, cos(theta), sin(theta));
- end