《MATLAB及其工程应用》第7讲课件

上传人:我*** 文档编号:139842395 上传时间:2020-07-24 格式:PPT 页数:13 大小:308KB
返回 下载 相关 举报
《MATLAB及其工程应用》第7讲课件_第1页
第1页 / 共13页
《MATLAB及其工程应用》第7讲课件_第2页
第2页 / 共13页
《MATLAB及其工程应用》第7讲课件_第3页
第3页 / 共13页
《MATLAB及其工程应用》第7讲课件_第4页
第4页 / 共13页
《MATLAB及其工程应用》第7讲课件_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《《MATLAB及其工程应用》第7讲课件》由会员分享,可在线阅读,更多相关《《MATLAB及其工程应用》第7讲课件(13页珍藏版)》请在金锄头文库上搜索。

1、MATLAB return;,How to call a function,d = dist2(0, 0, 3, 4);,Function with multiple outputs,function r, theta = rect2polar(x, y) % RECT2POLAR convert rectangular to polar coordinates % . r = sqrt( x.2 + y.2); theta = 180/pi * atan2(y, x);,Function calling,Calculate the value of s for a given n. s =

2、1! + 2! + 3! + n!,How to solve?,Write a function to get the factorial value of x ( factorial_1(x) = x! ) Write the code to sum up all the factorial values from factorial_1(1) to factorial_1(n),Think more,How to reduce the operations? Is there a build-in MATLAB function to calculate the factorial value ? How to find a MATLAB build-in function if you never used before?,Assignment:,Excises 5.9, 5.23,

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > PPT模板库 > PPT素材/模板

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号