Question: In Matlab, how do I get the xlswrite function to work in the code below so the data will be saved and recorded in an

In Matlab, how do I get the xlswrite function to work in the code below so the data will be saved and recorded in an excel file?

q1 = input(' Please type in your interview number: '); fprintf(' The average mountain bike tire costs around $70, including the tube and tire. '); q2 = input('Enter in a numerical value of how much would you spend on our new and improved tire design: $');

fprintf(' 1 = Worse, 2 = Slightly Worse, 3 = No Improvement, 4 = Slight Improvement, 5 = Major Improvement'); q3 = input(' How much of an improvement is our new design compared to normal bike tires? '); if q3 < 1 || q3 > 5 fprintf(' Invalid input. Please enter a value between 1 and 5.') fprintf(' 1 = Worse, 2 = Slightly Worse, 3 = No Improvement, 4 = Slight Improvement, 5 = Major Improvement'); q3 = input(' Please indicate how much you think of an improvement we made: '); end fprintf(' Would you buy this?'); q4 = {input(' Y or N (not case sensitive): ','s')}; if upper(q4) ~= "Y" && upper(q4) ~= "N" fprintf(' Invalid input.'); q4 = {input(' Please enter Y or N if you would consider purchasing the product: ','s')}; end

fprintf(' 1 = Not Appealing, 2 = Somewhat Appealing, 3 = No Preference, 4 = Appealing, 5 = Very Appealing'); q5 = input(' Please rank how visually appealing this product is: '); if q5 < 1 || q5 > 5 fprintf(' Invalid input. Please enter a value between 1 and 5.') fprintf(' 1 = Not Appealing, 2 = Somewhat Appealing, 3 = No Preference, 4 = Appealing, 5 = Very Appealing'); q5 = input(' Please rank how visually apealing this product is: '); end q6 = {input(' Do you have any suggestions on improving this product? ','s')};

for i=q1 interview = {'q1'; 'q2'; 'q3'; 'q4'; 'q5'; 'q6'}; xlswrite('Team_7_interview_answers.xlsx',interview,1,'B(i+1)') end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!