MATLAB-Basics
MATLABExercise Array Multiplication Matrices must have the same dimensions Dimensions of resulting matrix = dimensions of multiplied matrices Resulting elements = product of corresponding elements from the original matrices Same rules apply for other array operations a = [1 2 3 4; 5 6 7 8]; b = [1:4; 1:4]; c = a.*b c = 1 4 9 16 5 12 21 32 c(2,4) = a(2,4)*b(2,4) bal = 15000 * rand;if bal 5000 rate = 0.09;elseif bal 10000 rate = 0.12;else rate = 0.15;endnewbal = bal + rate + bal;disp(’New balance is: ’)disp(newbal) Deciding with if for in
您可能关注的文档
- Distress Signals.ppt
- EDI公司介绍.ppt
- Eighty Four Thousand Poems.doc
- Epoxy Curing agents.ppt
- Garments of Tang Dynasty.ppt
- GM Layered Audits.ppt
- gyp构建系统介绍.doc
- Harris_Exploring_5e_Art_PPTS_-_Chapter_02.pptx
- histroy of hairstyle.ppt
- INFECTIONS+OF+THE+CENTRAL+NERVOUS+SYSTEM+.ppt
- 小学数学六年级下册数学广角抽屉原理教学应用.docx
- 某APP童谣含隐晦成人隐喻致家长投诉的内容审核盲区分析_2026年5月.docx
- 小学语文提问策略在四年级阅读教学中的实施.docx
- 电流树状Lichtenberg图形制作.docx
- 急诊护理健康教育创新.pptx
- 高校学生宿舍太阳能热水系统节能效益与改造研究_2026年3月.docx
- “失眠日记”在学生中的记录行为与干预效果研究_2026年3月.docx
- 性别平等“角色互换”体验对男性大学生共情能力提升实测_2026年1月.docx
- 海洋保护区对生物多样性的保护作用研究_2026年5月.docx
- 人工智能辅助招聘中的算法公平性评测与偏见缓解策略_2026年3月.docx
原创力文档

文档评论(0)