实验五(1) 概率与频率.ppt

实验五(1) 概率与频率; 概率,又称几率,或然率,是反映某种 事件 发生的可能性大小的一种数量指标,它介于 0 与 1 之间。;基本知识;注:rand(n)=rand(n,n); name 的取值可以是;绘制直方图;fix(x) : 截尾取整,直接将小数部分舍去 floor(x) : 不超过 x 的最大整数 ceil(x) : 不小于 x 的最小整数 round(x) : 四舍五入取整;x1=fix(3.9); x2=fix(-3.9); x3=floor(3.9); x4=floor(-3.2); x5=ceil(3.1); x6=ceil(-3.9); x7=round(3.9); x8=round(-3.2); x9=round(-3.5);;unique(a); 根据表达式的不同取值,分别执行不同的语句;method=Bilinear; switch lower(method) case {linear,bilinear} disp(Method is linear) case cubic disp(Method is cubic) case nearest disp(Method is nearest) otherwise disp(Unknown method.) end; 这里我们主要用

文档评论(0)

1亿VIP精品文档

相关文档