{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Enge_1114_HW19_(prog9)

# Enge_1114_HW19_(prog9) - 12:20 M | EngE 1114 HW 19 | 2...

This preview shows pages 1–3. Sign up to view the full content.

Given: Number of objectives, Name and weight of each objective, and number of designs an their ratings for each objective. Required: MatLab Code and Sample Run Solution: 12:20 M | EngE 1114 HW 19 | 2 April, 2006 | Konzik, Kit | /

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
%This program is designed to create and evaluate a decisioin matrix  where  %the number of objective, weight of objectives, number of designs, and  %rating for each design in each objective are entered by the user.    NumberCriteria = input( 'Enter the number of objectives:' ); for  (j = 1:1:NumberCriteria)      Name{j} = input( 'Enter objective name: ' , 's' );     fprintf( 'Enter weight for %s objective: ' ,Name{j});     Weight(j) = input( '' ); end   NumberDesigns = input( 'Enter the number of designs to be evaluated: ' ); for  (i = 1:1:NumberDesigns)       for  (j = 1:1:NumberCriteria)         fprintf( 'Enter the rating for design #%.0f for %s:  ' ,i,Name{j});         Rate(i,j) = input( '' );      end   end
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

Enge_1114_HW19_(prog9) - 12:20 M | EngE 1114 HW 19 | 2...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online