国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫MMME1027、代做Matlab語言程序

時間:2024-03-05  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 1 of 12

COMPUTER PROGRAMMING WITH MATLAB
COURSEWORK 1
INTRODUCTION
This coursework will help you revise the Matlab skills you gained in lectures **4. It is worth 15% of the
module credits and will cover the following topics:
• Variables and arrays
• Solving equations
• Array manipulation to solve engineering problems.
Read the guidelines below as well as the mark sheet, so you know how marks will be awarded.
Download the data files from the Moodle page, as these are needed to answer some of the questions.
Follow all instructions carefully and consult the submission checklist before submitting your work.
The submission deadline for this coursework is: 4pm Thursday 7th March.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 2 of 12
GUIDELINES
• All answers are to be submitted in a single Matlab script file (i.e., ‘.m’) – no other file type is
acceptable. A template for this file is available on the course Moodle page, under the heading:
Matlab - Coursework 1.
• Put your name, student ID number and e-mail address at the start of the script preceded by the ‘%’
character.
• For questions which require you to write text answers (i.e., descriptive sentences), include these as
comments using the '%' character at the beginning of the line.
• Include comments in your script file describing what the program is doing and any features of note –
you will get marks for this.
• Once you have finished all the questions (or as many as you can manage), fill in the Submission
Checklist. This is available on Moodle and is there to help ensure your work is submitted properly.
• Save your script with a name in the following format: Firstname_Surname_studentid.m.
For example:
Julia_Smith_1334442**.m
• Upload this file to Moodle in the appropriate submission box. Ensure that you upload before the
submission deadline, as late submissions without exceptional circumstances will be penalised.
• If you are in the process of applying for an EC for this coursework, be sure to submit whatever work
you have with ‘_pending’ appended to the file name by the deadline.
A WORD OF CAUTION – Remember this is individual work, not group work. Work handed in must be entirely
your own and not copied from anyone else. Discuss the coursework with your friends if needed, but answer
the questions yourself.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 3 of 12
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 4 of 12
QUESTION 1 – VARIABLES [10 MARKS]
Evaluate the following functions at w**9; = 1.5:

Hint: Parts e and f can be solved without typing out the full equations.
g) Predict the pressure drop in a pipe 100 cm long with a radius of 1 cm. Assume the fluid is water
(µ = 1 × 10-3 Pa s) flowing at a rate of 100 cm3
/s.
You should use the Hagen–Poiseuille equation, which predicts pressure drop, ΔP, in laminar flow in
cylindrical pipes:
∆𝑃 =
8𝜇𝐿𝑄
𝜋𝑅4
where µ is the dynamic viscosity, L is the pipe length, Q is the volumetric flow rate and R is the pipe
radius.
Hint: You will need to carefully consider the units here. It may be helpful to convert all properties into SI
units before calculating the pressure drop.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 5 of 12
QUESTION 2 – ARRAYS & PLOTTING [13 MARKS]
Write a script to generate an array called w**9; with 25 points between 0 and 2𝜋. Then evaluate the following
functions over that range:
a) 𝑎 = sin2 w**9;
b) 𝑏 = cos2 w**9;
c) 𝑐 = tan2 w**9;
Add lines to the script to do the following:
d) Plot graphs of 𝑎 and 𝑏 against w**9;.
e) On the same axes, plot a + b against x.
f) Make your graph clear and visually appealing by including axes labels, a legend, and by using
different linestyles for each data set.
g) Find the mean value of a. What change can you make to your code to improve the accuracy of this
prediction compared to the theoretical value? Give your answer as a comment using the ‘%’
character at the beginning of the line.
h) Use the same methods as above to solve this problem concerning an AC electrical circuit. If the
circuit operates with a peak current of 100 mA (see figure on the next page), what would be the
average power dissipated by a 1 kΩ resistor?
You can assume this is a simple circuit featuring only a resistor, with no capacitor or inductor. The
average power, 𝑃**;, dissipated by the resistor is given by:
𝑃**; = 𝐼w**3;𝑚w**4;
2 𝑅
where 𝐼w**3;𝑚w**4; is the square root of the mean squared current and 𝑅 is the resistance.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 6 of 12
Hint: As shown in the figure, the current can be modelled as a simple sin function, with an
amplitude of 100 mA, or 0.1 A. Start by creating this function, then calculate 𝐼w**3;𝑚w**4;, then find the
average power using the equation given above.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 7 of 12
QUESTION 3 – INBUILT FUNCTION EXAMPLES [10 MARKS]
Give examples of the use of the following inbuilt Matlab functions and describe concisely what they do. Use
the '%' character to include text comments in your .m file:
a) clearvars
b) who
c) abs
d) trapz
e) roots
Hint: Try using the help or doc command from the Matlab command line.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 8 of 12
QUESTION 4 – PROCESSING 1D ARRAYS [12 MARKS]
Whales are often beached near Lyme Regis on the south coast of the UK. Your company is developing an
underwater acoustic system to keep whales off the beach. The system will work by using an underwater
speaker to play a whale distress call.
It is your job to prepare the digital file which the system will play. By working with a marine biologist you
have obtained a recording of whale song. You can find this file in Coursework_1_data folder on Moodle.
Write a script to:
a) Load the whale song file into an array called 'song'. Plot a graph of the of the whale song featuring
appropriate label axes.
b) Make your script play the whale song sound. The required frequency is 44,100 samples per second.
What happens if you play more or less than 44,100 samples per second? Write your answer in your
script as a comment.
c) How many distinctive whale calls are there in the data? You should also be able to tell this from
looking at the graph. Write the answer as a comment in the script.
d) The second whale call in the sample is the distress call. By looking at the numbers on the x-axis of
your graph you will be able to tell at what position in the array this distress call starts and ends.
Make a new array which only contains the distress call - this should be called 'distress'.
e) Your company wants the device you are designing to play five whale distress sounds in a row. Make
a new array containing five distress calls one after the other and edit your script to play this sound.
f) If the computer plays 44,100 elements per second, make your script calculate the total length of
your repeated distress call in seconds.
g) Lastly, make an array representing the time over which the repeated distress call is played. Now plot
the repeated distress call with an appropriate time axis in seconds. Label the axes appropriately.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 9 of 12
QUESTION 5 – 2D ARRAYS [11 MARKS]
You are an engineer working for a private spaceflight company. You have been given some ground radar
data obtained from a drone aircraft and it is your task to identify a potential landing site for a small
unmanned reusable rocket. Download file ground_radar.dat from Moodle.
a) Load the topological data into an array and produce a 3D plot of the data using the surf function.
Hint: Matlab joins the points in 2D graphs with black lines by default. If there are lots of data points
this can make the graph look messy. Try adding the parameters,'edgecolor','none' to the plot
command to fix this.
b) The height data in the file is incorrect due to a miscalibration of the drone radar instrument. To
correct this error, you need to subtract 300 m from each data point in the array. The array will then
give the depth of each location below the drone’s mean altitude. Generate a new 2D array which
contains the corrected data and plot this.
c) Label the axes of your plot appropriately. The drone records data in a resolution of one data point
per meter.
d) Calculate the size of the area covered by the drone. Store the linear dimensions (i.e., the x and y
lengths) in separate variables, then calculate the total area of your map in a third variable.
e) From your 3D plot, locate a region which is relatively flat in which the rocket can land. Extract this
region from the array to form a new array called ‘landing_site’. The landing site should have
dimensions of at least 25 × 25 m, and be flat to within 1 m. To test the flatness, take the standard
deviation over the potential landing site area. Finally, produce a 3D plot of the landing site, again
labelling the axes properly.
Hint: You may not be able to find a site of the right flatness just by looking at your 3D plot from part
b. You may need to ‘sample’ potential landing sites by taking multiple sub-arrays from the ground
radar data and checking if the flatness is below 1 m. This could be done manually or with a for loop
and if statements.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 10 of 12
QUESTION 6 – FOR LOOP IMAGE PROCESSING [11 MARKS]
For this question you will use your programming skills to process an image, which, as you have learned, can
be treated in Matlab the same as other types of array.
An airline wants to rebrand its aircraft with a new exterior colour scheme. It has produced a mock-up of a
red painted design. But before the launch of the new design, the airline CEO asks to see other colour
concept designs. It is your job to make these. Start by downloading the image aeroplane.jpg from Moodle.
a) Load the aeroplane image into Matlab and show it onscreen. For this, use the imread and imshow
functions.
b) Find the size of the aeroplane image. You will notice that it has three dimensions, not two. You can
think of the image as having three separate layers, each of which is a 2D array. Each layer represents
an 8-bit colour channel; red, green and blue with values 0-255. Together, these make the full colour
image – like this:
Every pixel therefore has three coordinates: (x, y, P) – where P is just the layer number 1, 2 or 3. The
red channel is layer 1, the green channel is layer 2 and the blue channel is layer 3.
To access these in Matlab, you would write something like:
A = imread(‘aeroplane.jpg');
A(25, 50, 3) = 0;
which would set the pixel at (25, 50) in the blue channel (layer 3) to the value 0, or
A(:, :, 1) = 255;
which would set all of the red channel (layer 1) to the value 255.
Try this out by setting a rectangular patch of the aeroplane image blue channel to the value 255, the
highest value it can have. Show your result on screen.
c) To turn the red pixels of your aeroplane image into other colours, one simple way is swap the colour
channels. Start by making two nested for loops to scan over all the pixels in the image, and swap the
layer 1 layer 2 layer 3
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 11 of 12
values in the red and green channels. This should show you what a green painted design would look
like. Show your result onscreen.
d) Now make a mock-up of a blue painted design using the same method as above and show your
result on screen.
Hint: For parts (c) and (d) it may be helpful to make additional copies of the aeroplane image which
you can scan over inside the nested for loops.
e) What are the shortcomings of using this method to modify the colours in the image? Can you
suggest a better way to colour modifications in images like this? Add comments to your script to
answer these questions.
Programming, Professional and Laboratory Skills - MMME1027
Academic year 202**024
Page 12 of 12
PRESENTATION AND FORMATTING [20 MARKS]
a) Code presentation is neat and clear, including:
i. Separate sections for each question.
ii. Meaningful, non-confusing variable names.
iii. No superfluous code which is not needed for the program to run.
iv. Semicolons to supress code output to screen.
[12 marks]
b) Comments are included to explain sections or lines of code which are non-intuitive, or where the
user needs additional information to use the program properly.
[6 marks]
c) Name and email address is given at the top of the code (i.e., in the Matlab script).
請加QQ:99515681  郵箱:99515681@qq.com   WX:codehelp 

掃一掃在手機打開當前頁
  • 上一篇:COMP639代做、代寫Python/Java編程
  • 下一篇:代寫CSCE 240 – Programming
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    116极品美女午夜一级| 69**夜色精品国产69乱| 尤物一区二区三区| 操91在线视频| 国产精品久久久久久久久久直播| 116极品美女午夜一级| 99免费视频观看| 91免费看国产| 69精品小视频| 久久久亚洲国产天美传媒修理工| 国产女精品视频网站免费| 国产最新免费视频| 精品一区二区成人免费视频| 女女同性女同一区二区三区91 | 日韩精品福利片午夜免费观看| 日本在线高清视频一区| 日韩在线综合网| 日本wwwcom| 欧美综合激情| 狠狠色噜噜狠狠色综合久| 国产一区二区自拍| 国产精品自产拍高潮在线观看| 99久久久精品免费观看国产| 91干在线观看| 日韩综合中文字幕| 久久精品国产亚洲精品| 国产精品第一页在线| 中文字幕久久综合| 日本丰满少妇黄大片在线观看| 欧美在线精品免播放器视频| 国产一区二区三区高清| 99精品在线免费视频| 久久99精品国产一区二区三区 | 国产青春久久久国产毛片| 国产精品最新在线观看| 亚洲影视中文字幕| 日韩国产欧美一区| 国产一区二区中文字幕免费看| 不卡影院一区二区| 欧美日韩一区二区视频在线| 国产精品最新在线观看| 久久久久久久久电影| 国产精品国内视频| 中文字幕综合在线观看| 热久久这里只有精品| 国产伦理一区二区三区| 久久大香伊蕉在人线观看热2| 国产精品少妇在线视频| 亚洲精品免费av| 欧美日韩在线不卡一区| 福利视频一区二区三区四区| 色狠狠av一区二区三区香蕉蜜桃| 一区二区三区视频在线播放| 欧美最猛性xxxxx亚洲精品| 国产精品一区二区三区久久久 | 国产乱人伦精品一区二区三区 | 日韩欧美一区二区三区久久婷婷| 欧美精品一区二区三区四区五区| 国产免费一区二区三区视频| 久久精品国产2020观看福利| 午夜精品视频网站| 麻豆成人av| 日韩亚洲欧美中文在线| 亚洲精品女av网站| 国产久一道中文一区| 国产精品女人网站| 日本高清视频免费在线观看| 成人国产精品一区二区| 久久精品电影一区二区| 日本一区高清在线视频| 99久久综合狠狠综合久久止| 久久国产精品首页| 激情图片qvod| 久久九九精品99国产精品| 日韩一二区视频| 久久精品午夜一区二区福利| 亚洲综合精品一区二区| 国产剧情日韩欧美| 欧美精品在线免费| 欧美日韩一区在线观看视频| 国产高清精品软男同| 亚洲国产精品www| 国产男女无遮挡| 久久精品国产精品| 日韩精品 欧美| 久久久久久a亚洲欧洲aⅴ| 亚洲欧美日韩另类精品一区二区三区 | 亚洲bt天天射| 不卡影院一区二区| 中文字幕日韩一区二区三区不卡| 久久这里有精品视频| 中文字幕一区二区三区乱码| 免费在线观看的毛片| 久久久久亚洲av无码专区喷水| 性欧美长视频免费观看不卡| 国产一区红桃视频| 国产精品美女av| 黄色网zhan| 国产精品久久久久久久久久久久久久 | 国产成人av网| 人体内射精一区二区三区| 久久96国产精品久久99软件| 日本免费一区二区三区视频观看| 久久一区二区三区av| 三区精品视频| www.日韩不卡电影av| 狠狠爱一区二区三区| 插插插亚洲综合网| 成人中文字幕av| 视频一区二区视频| 日韩视频―中文字幕| 免费看a级黄色片| 精品中文字幕在线2019| 国产一区在线播放| 亚洲一区中文字幕在线观看| 久久免费精品日本久久中文字幕| 日本a级片电影一区二区| 精品国产一区二区三区久久狼5月 精品国产一区二区三区久久久狼 精品国产一区二区三区久久久 | 日韩在线观看免费| 麻豆精品蜜桃一区二区三区| 欧美日韩xxx| 91成人国产在线观看| 青青视频免费在线观看| 国产精品久久久久久久app| 黄色影视在线观看| 亚洲综合av一区| 久久久久天天天天| 国产一区在线观| 污污污污污污www网站免费| 久久精品视频在线| 成人在线精品视频| 亚洲免费视频一区| 蜜桃久久影院| 一本色道久久综合亚洲精品婷婷| 91精品国产91久久久久久 | 午夜伦理精品一区| 久久精品一本久久99精品| 欧美不卡福利| 亚洲在线一区二区| 精品久久久91| 成人av中文| 欧美 日韩 国产精品| 亚洲伊人第一页| 国产精品视频公开费视频| 91黄在线观看| 国产亚洲精品久久久久久久| 无码内射中文字幕岛国片| 欧美xxxx18性欧美| 九色综合婷婷综合| 91免费看片网站| 国产一区二区不卡视频| 日韩视频第二页| 九九久久国产精品| 日韩视频在线免费| 久久伊人资源站| 国产欧美日韩精品在线观看| 秋霞午夜一区二区| 懂色av粉嫩av蜜臀av| 国产999在线| 国产精品入口免费视频一 | 成人国产精品久久久| 精品欧美日韩在线| 色综合久久av| 一区一区视频| 久久97久久97精品免视看 | 国产精品女视频| 国产不卡av在线免费观看| 国产美女99p| 国内精品久久久久久中文字幕| 日本香蕉视频在线观看| 亚洲一区二区高清视频| 国产精品高潮视频| 久久精品成人欧美大片古装| 久久精品国产精品青草色艺| 国产精品99免视看9| 99视频免费观看蜜桃视频| 国产免费黄视频| 国产日本欧美一区| 国产制服91一区二区三区制服| 日本精品视频网站| 懂色av粉嫩av蜜臀av| 亚洲乱码国产一区三区| 中文字幕人妻熟女人妻洋洋| 久久亚洲精品一区| 国产精品第七影院| 国产精品久久久久999| 国产福利一区二区三区在线观看| 91精品久久久久| 超碰国产精品久久国产精品99| 国产日韩av在线| 国产欧美欧洲| 国产免费xxx| 成人久久18免费网站图片| 国产精品一区二区三区久久| 蜜桃久久精品乱码一区二区| 狠狠噜天天噜日日噜| 黄色动漫在线免费看| 免费不卡av在线| 国产欧美va欧美va香蕉在线| 国产欧美精品在线|