Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

matlab string problem UU S Science News, Art. Close Courses LMS Integration Documentation 202010 EGR 1302.3 > HW06b - Strings and Element-by-Element Operations Problem 7

matlab string problem image text in transcribed
image text in transcribed
UU S Science News, Art. Close Courses LMS Integration Documentation 202010 EGR 1302.3 > HW06b - Strings and Element-by-Element Operations Problem 7 - Hospital Scans O solutions submitted (max: 3) Three hospitals performed the following numbers of scans on patients last month: MRICT X-ray Hosp A 64 186 313 Hosp B 49 99 211 Hosp C 77 81 154 Each of these scans have a different cost associated with them: MAI $5000, CT $4000, and X-ray $2000. These data are provided for you in arrays named scans and cost. Note: For all of the following operations, do NOT re-type any numbers. Use array indexing, functions, and element by-element operations to perform the tasks a) Use the mean function to find the average number of Mols last month and store this in avgMRI b) Use the sun function and element-by-element multiplication to find the amount that Hospital B spent on all scans last month. Put this in variable costs c) Use the sum function to find the total number of scans performed last month. Put this in variable totalscans Script C Reset DE MATLAB Docu 1 Given the following array 2 scans (64 106 313; 49 99 211; 77 81 154) cost (5000 4000 2000) A Part al HW06-Linear A...pdf D PHYSICS1430F...pdf Physics1420-6.pdf ^ Unit 1 Coneral...do Marpause + mathworks.com courses/11469-202010-egr-1302-3/problems/138445-problem-7-hospital-scans/solutionsew But Youtube SBBC iPlayer Radio TED - YouTube canvas C by Physics for sci ABC Radio Moderno Science News, Art w o Close Courses LMS Integration Documentation Script e Reset MATLAB Documentation 1 Given the following array scans = [64 106 313; 49 99 211; 77 81 154] 3 cost (5000 4000 2000] 4 Part a 5 x1=scans(:,1) 6 (avgMRI)= mean(x1) 7 Part b 8 X2=scans (2,:) 9 Icostsb]= sum(x2.*cost) 10 Part c 11 X3 scans 12 Itotalscans) sum(x3.cost) Run Sort O Output the delimite Error in solution Line 6 Column 58 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for Sul (tempt 1 of 3 Assessment: Parta Unt General 00. Physica1420-6.pdf Linear _od! PHYSICS 1430F...of docx BMW MacBook Pro

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

Students also viewed these Databases questions

Question

4. How is culture a contested site?

Answered: 1 week ago