得分 评卷人
五、程序题:(共24分)
1. (8分) Write the MATLAB statements required to plot cos 2x versus sin x from 0 to 2πin steps of π/10. The points should be connected by red line, and each point should be marked with blue circular marker.
2. (16分) Write the MATLAB statements required to calculate y(t) from the equation, for values of t
between -5 and 5 in steps of 0.1. ??3t2?2t?2t?0 y(t)??23t?2t?2t?0? (1) Use loops and branches to perform this calculation. (2) Use vectorization to perform this calculation.
物理与电子工程学院电子信息工程、通信工程专业MATLAB试卷B 第6 页(共7 页)
… … __…_…__…__…__…_…__…__…_号… …效学) 线 _( _…无__… __… __… _…题__… __… _… 名_…答姓… … … ) 班封内__( __… _… __… __…线__… 级… _… __… __…封 _… __… _… 院_)密学密_(__…__…__…_…__…__…__…_…__…_………
物理与电子工程学院电子信息工程、通信工程专业MATLAB试卷B 第7 页(共7 页)