ITEC 1620 Quiz: exercise4

8 views2 pages
Ambassador badge icon
22 Oct 2021
Course
Professor

Document Summary

1. import it into matlab, using both and readtable(: check if the "birthday" column is date time type. Q 9. 1 two vectors: x : [0. 7899, 0. 6346, 0. 4612, 2. 0906, 1. 6996, 0. 8100, 0. 5852, 1. 3765, 0. 4376, 0. 7498] y : [0. 8015, 0. 8596, 0. 6803, 0. 8617, 0. 0505, 0. 3407, 0. 9450, 0. 8523, 0. 5262, 0. 4967] 1. create a table with two columns: x and y. 2. calculate the mean for both columns x and y. 3. add a new column z to table, such that if mean of column x is greater than mean of column y, then for each row z equals the multiplication of x and y in the same row. Otherwise, z equals x + y in the same row. But there is a way you can do it without loop, think about it, all necessary contents have been taught. In matlab code: letter = "a":"z" will create a character vector with all 26 letters.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents