Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a 1 2 0 matrix A with random integers ( round toward negative infinity ) ranged from 0 to 1 0 0 . Find

Create a 120 matrix A with random integers (round toward negative infinity) ranged from 0 to 100.
Find the smallest number is A by using the for loop.
Find the largest number is A by using the while loop.
Create a row vector B with integers (round to nearest integer) starting from 5 and finishing at 80 with 25 numbers in between by using the appropriate command.
Find the first occurrence of 39 by using the for loop.
Find the first occurrence of 52 by using the while loop.
(if there is no such number in B, display a message "the number can not be found".)
Display the multiple of 9 from 1 through 100.
The numbers of car accidents in Victoria per year are written in the table below. The first row is the year and the second row is the number of car crashes on the Victorian roads.
\table[[1,2,3,4,5,6],[2010,2011,2012,2013,2014,2015],[470,469,455,451,442,441]]
Create a 41 figure matrix and plot the following:
Plot Year vs. No. of crashes in a bar chart;
Plot Year vs. No. of crashes in a 2D line plot;
Plot Year vs. No. of crashes using scatters;
Produce a pie chart showing the proportion of the number of car crashes in each year.
Write MATLAB for loop to calculate n1234cdotsn for a user input n value. (i.e. if a user inputs 5, calculate 12345.)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

How will these issues affect the grade levels you will teach?

Answered: 1 week ago