Question: MATLAB ONLY This is the only information that was provided. It may be useful to look up what a helper function is in Matlab. Structures:

MATLAB ONLY

This is the only information that was provided. It may be useful to look up what a helper function is in Matlab.

MATLAB ONLY This is the only information that was provided. It maybe useful to look up what a helper function is in Matlab.

Structures: Reservation System This problem is an extension of the Reservation Problem in last section of Structures. Write a function CancelReservation that will make a seat empty in an array of structures allSeats. Make use of the helper function MakeEmptySeat. Your Function Save C Reset MATLAB Documentation 1 function [ output-args ] = CancelRe se rvation ( auseats, numberReservation ) % Your code goes here 4 6 end 7 8 function [seat] = MakeEmptySeat seat. firstName 'empty'; seatlastName = 'empty'; seat. amountPaid =0; 10 12 end 13 Code to call your function C Reset 1 load SeatsData; 2 number0fReservation-randi(5,1,1); AllSeats-CancelReservation(allSeats, numberOfReservation) Run Function

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!