代写Canvas留学生作业、MatLab编程语言作业调试、MatLab实验作业代做、代写program课程作业

日期:2019-12-07 10:14

Your CRN or Class ID: _________________ Your Name:____________________________

MatLab Take-Home Test

(Take-Home Tests, Strictly Individual, 50 Points)

This is a take-home test, meaning that you may use course-provided materials or outside references as study

aids. However, you may NOT copy solutions from the Internet or another student and submit them as

your own work. Be sure to read and sign the Honor Pledge at the bottom of this page.

You must return this page to your instructor in person to receive credit for this assignment. Grades will be

posted on Canvas as usual.

Please print your name and CRN or Class ID at the top and bottom of this page.

There are two problems in this assignment. The second problem uses an external data file. The data file can be

found on the Canvas home page, and is named as TravelingTrucks_Coordinates.csv. A version of this file with

headers is also available on the Canvas home page for reference.

SAVE YOUR FILES OFTEN – If MatLab crashes, you won’t lose all of your work.

HONOR PLEDGE:

I have neither given or received unauthorized aid on this assignment, including solutions to assignment problems

obtained from other students or the Internet. I will not share or make available in any way any information about

this assignment to anyone until after the graded assignment has been returned to me.

SIGNATURE: _______________________________________________________________________

Printed Name (Last, First):_____________________________________________________________

Your CRN or Class ID: _________________ Your Name:______________________

Problem 1

Part 1:

Create a MatLab script file funcVector_pid.m which accepts two vectors: names of marathon runners, and

their respective finish time from the user, and then outputs the name of the winner and his/her finish time. For

this problem, do not use loops. The user creates the names of the runners and their finishing times.

Hint: https://www.mathworks.com/help/matlab/ref/min.html

Submit the following to the Canvas site for this test as follows:

? A pdf including:

o Listing of the code for your program

o Screen shot showing results

? Your .m file for the code.

Be sure to label all files with your PID, and NOT with your numeric ID.

Part 2:

Write a MATLAB script file named vectorPattern_pid.m that will:

1. create a vector for a variable A with value [-99 -98 -97 . . . . -1]

2. using the vector A, create a second vector B which has the same numbers as A at its even indexes, but

the numbers at odd index values are replaced by the value 0.

3. Starting from the index value 16, replace every 5th element of vector B with the value 100

4. Multiply each element of B with the value -3

5. Display only the 29th – 50th elements of B.

Submit the following to the Canvas site for this test as follows:

? A pdf including:

o Listing of the code for your program

o Screen shot showing results

? Your .m file for the code.

Be sure to label all files with your PID, and NOT with your numeric ID.

Problem 2

A local manufacturing company wants to find out the total time it takes to

deliver its products to retail stores from its manufacturing plant. The company

has 2 delivery trucks for this purpose. Truck 1 can travel at a speed of 54

km/hr and truck 2 can travel at 28 km/hr. The trucks go from store to store

delivering the products and then the trucks return to the factory. All deliveries

have been made.

The locations of the retail stores are given as a set of kilometers west/east and

north/south. For example, (0, -15) means that the truck is only moving south 15 km or (-10, 30) means that the

truck is moving west 10 km and north 30 km. The trucks depart from the factory at the same time and travel from

one store to another until they eventually return to the original starting point. Make sure to account for the distance

needed to travel back to the starting point/factory. Each coordinate set is the distance from a starting point to

a destination.

(Northwest)   (Northeast)

Southwest)   (Southeast)

Part 1:

Download the file named TravelingTrucks_Coordinates.csv and save it in your MatLab folder. This file can be

found on the Canvas home page.

Part 2:

Write a MATLAB script that does the following:

1. Reads in the data from TravelingTrucks_Coordinates.csv. The file will contain 4 columns:

a. Column 1: Truck 1 west/east

b. Column 2: Truck 1 north/south

c. Column 3: Truck 2 west/east

d. Column 4: Truck 2 north/south

2. Outputs to travelingtrucks.txt, the total distance and time covered by both trucks for the full trip, both

individually and combined. The distance value should be in kilometers and accurate to two decimal

places (e.g., 1.34 km). Make sure to account for the distance needed to travel back to the starting

point/factory. You might use fopen/fclose or writematrix to write your results to a file.

3. To the same txt file, outputs which truck arrives back to the factory first.

4. Generate a single plot showing the paths traveled by both trucks.

NOTE: you can use the Pythagorean theorem ( a2

+ b2

= c2.) to calculate the straight-line distance of a given

store from another location, such as the warehouse or another store.

Submit the following to the Canvas site for this test as follows:

? A pdf including:

o Listing of the code for your program

o Sample run (aka information in txt file)

o Screen shot of the plot

? Your .m file for the code.

? The .txt file containing your output.

Be sure to label all files with your PID, and NOT with your numeric ID.

Please see the next page for an example of the inputs and outputs for Problem 2 using different data.

Example Input and Output: DEMONSTRATION ONLY – NOT THE CORRECT SOLUTION TO

THIS PROBLEM

Truck 1 Speed: 40 km/hr

Truck 2 Speed: 70 km/hr

Sample Input for truck 1 Sample Input for truck 2

Sample Output

Total distance travelled by truck 1: 169.50 km

Total time travelled by truck 1: 4.24 hours

Total distance travelled by truck 2: 117.51 km

Total time travelled by truck 2: 1.68 hours

Total combined distance travelled by the trucks: 287.01 km

Total combined time travelled by the trucks: 5.92 hours

East/West North/South East/West North/South

0 0 0 0

20 0 -20 0

30 -15 -30 -15

15 40 -10 -10

-10 30 0 -30

-20 5 10 -10

0 0 0 0

matlab留学生作业代做,代写Canvas留学生作业、MatLab编程语言作业调试、MatLab实验作业代做、代写program课程作业...相关推荐

  1. Ex6_机器学习_吴恩达课程作业(Python):SVM支持向量机(Support Vector Machines)

    Ex6_机器学习_吴恩达课程作业(Python):SVM支持向量机(Support Vector Machines) 文章目录 Ex6_机器学习_吴恩达课程作业(Python):SVM支持向量机(Su ...

  2. 计算机课作业怎么向老师提交,计算机基础课程作业布置与批改方式

    <计算机基础课程作业布置与批改方式>由会员分享,可在线阅读,更多相关<计算机基础课程作业布置与批改方式(2页珍藏版)>请在人人文库网上搜索. 1.计算机基础课程作业布置与批改方 ...

  3. matlab留学生作业代做,25877留学生作业代做、代写MATLAB,R编程设计作业、代做MATLAB/R课程作业、代写portfolio作业...

    25877留学生作业代做.代写MATLAB,R编程设计作业.代做MATLAB/R课程作业.代写portfolio作业 日期:2019-06-10 09:48 Financial Markets Ins ...

  4. 代写php代码作业,代写phpmyadmin留学生作业、代做SQL语言作业、SQL程序设计作业调试、代做PHP script作业...

    代写phpmyadmin留学生作业.代做SQL语言作业.SQL程序设计作业调试.代做PHP script作业 日期:2019-04-20 01:17 Overview:In this assignme ...

  5. 代写python作业 费用_代写Python or R作业、代做Python语言程序作业、代写Longitude留学生作业...

    代写Python or R作业.代做Python语言程序作业.代写Longitude留学生作业 日期:2018-11-13 10:19 Your task is to run some analysi ...

  6. python程序设计作业_CS602留学生作业代做、代写Programming课程作业、代做Python语言作业、Python编程设计作业调试...

    CS602留学生作业代做.代写Programming课程作业.代做Python语言作业.Python编程设计作业调试 日期:2019-12-06 10:50 CS602 - Data-Driven D ...

  7. 代写python期末作业价格_代做program留学生作业、代写Python语言作业、代做algorithm课程作业、代写Python程序设计作业...

    代做program留学生作业.代写Python语言作业.代做algorithm课程作业.代写Python程序设计作业 日期:2020-01-09 10:13 Coursework Brief: ASS ...

  8. 课程设计代写java,JAVA课程设计作业代做、代写JAVA编程设计作业、代写data留学生作业...

    JAVA课程设计作业代做.代写JAVA编程设计作业.代写data留学生作业 日期:2020-06-13 11:30 JAVA Coursework (30 marks) Suppose you nee ...

  9. python编程书籍1020python编程书籍_代写INFT 1020作业、Database作业代做、Java课程作业代写、c++,Python编程作业代做...

    代写INFT 1020作业.Database作业代做.Java课程作业代写.c++,Python编程作业代做 日期:2020-04-25 10:27 INFT 1020 Database Fundam ...

  10. 代写python代码一般多少钱_代写CO 353课程作业、代做Python程序设计作业、代写Python语言作业...

    代写CO 353课程作业.代做Python程序设计作业.代写Python语言作业 日期:2020-03-17 11:22 CO 353 - Homework assignment 4 Winter ' ...

最新文章

  1. 石头机器人拖地水量调节_石头扫地机器人T7上手体验:电控水箱和超大容量,扫拖一体全能型...
  2. Pandas 基础 (4)—— 汇总和计算描述统计
  3. 池州市计算机专科,2021年3月安徽省池州市计算机等级考试时间
  4. 【Linux】一步一步学Linux——du命令(78)
  5. 下划线hover下动态出现技巧
  6. ucos-ii在ARM7上移植
  7. pytest测试实战pdf_Pytest+Allure美化测试报告
  8. 用java实现学生管理系统
  9. vant部署_详解VUE项目中安装和使用vant组件
  10. mysql异机还原_MySQL innobackupex全量备份恢复
  11. 百度 ERNIE 在 GLUE 大赛中击败了微软和谷歌
  12. FreeRTOS的HOOK,以及(23)FreeRTOS 空闲任务分析
  13. vs2017 安装Qt VS Tools ,新建项目没有Qt GUI Application选项 ,解决方法
  14. python实现规则引擎_规则引擎python
  15. 交大网院计算机第五次作业答案,2015交大网院计算机第三次作业word操作题
  16. android热修复原理总结
  17. 面向对象版学员管理系统 Python
  18. Android虚拟机、模拟器识别
  19. 银达汇智 智慧综合管理平台 FileDownLoad.aspx 任意文件读取漏洞
  20. ps4移植android游戏,把PS4游戏《Apex英雄》《只狼》搬到安卓手机上玩,这招够简单!...

热门文章

  1. python图像色彩分析_使用OpenCV和Python计算图像的“色彩”
  2. 利用Python分析新旧页面的A/B测试结果
  3. Linux 系统安装中文语言包
  4. 2048游戏的核心运算
  5. 基于Boostrap+jsp+spring+mysql的音乐推荐系统
  6. 操作系统课程设计1_Linux系统
  7. Apache-Tomcat-Ajp文件读取漏洞(CVE-2020-1938、CNVD-2020-10487)
  8. 大道至简---软件工程实践者的思想--------------第二章读后感---是懒人造就了方法...
  9. android 太阳系布局,Solar Walk太阳系模型软件-三维太阳系模型下载2.4.49安卓版-西西软件下载...
  10. PDF怎么转换成图片?来看这两种好用的方法