Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve problem 1 using matlab Homework #7 Applied Programming, ENGR 10573 Spring 2018 Due Monday, March 26h through TCU Online by 11:59 PM. Upload one

image text in transcribed

solve problem 1 using matlab

Homework #7 Applied Programming, ENGR 10573 Spring 2018 Due Monday, March 26h through TCU Online by 11:59 PM. Upload one function, function studentlastname _ho howmework7() in a single m-file that runs each problem along with all of the subfunctions that work - roblem. When studentlastname homework7 (like that particular bell homework7) is typed into the command window, the homework proble should run sequentially showing plots and the proof that each sub-function works correctly. If your code does not do that, it will not be graded and will be given a zero. There should be NO input from the keyboard. The single m-file that you turn in is the code that will be graded. Open a new figure for every displayed image by using the figure command. TEST YOUR CODE BEFORE YOU SUBMIT IT!!!! 1. Create three structure arrays called cars, trucks, and motorcycles. Give each element of the structure array 4 values. Let one of the values be a string called name and then let the other values be unique or semi-unique to the array such as bed length, number_of _wheels or handlebar width, etc. Fill each structure array with data so that the array length is 3 then display each array to screen. Make sure they are structure arrays. 2. Create a 10-element cell array. Fill each odd element of the array is a string describing the element number. For example: one' three .. nine. Fill each even numbered element of the array with a matrix that has a random size [nrows, ncols] from 1 to 5 and is filled with integers that is the element number. For example: /2 22; 2 21, 14 444 4444, 4 44 4, etc. Display the data on the screen. Can this be accomplished with an array of structures where each structure has two elements; the value and the string equivalent as in the cell array? (/N) 3. Create a 200x200 matrix of integers and initialize it to zero. Set the value of each element to be 128exp(-d/20) where d is the radial distance from the center of the image/matrix (100,100). Display the image with a 256-element gray colormap using the command, image() and also imagesc( ). Note and explain the differences in the comment section (Make it short)

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

What do you understand by securities lending?

Answered: 1 week ago