How do I perform this operation
Show older comments
function weekendBoxOffice = GetWeekendEarnings(movieBoxOffice)
% movieBoxOffice : 7 day box office sales in millions, starting with Sunday
% Assign Sunday, Friday, and Saturday box office
% earnings to row array weekendBoxOffice
weekendBoxOffice = 0;
end
6 Comments
Rik
on 2 Oct 2017
Blair Hall
on 2 Oct 2017
@Blair: How to run what? Your question does not contain enough information to define clearly, what this function should do. "7 day box office sales in millions" might be a [1 x 7] vector, or a database connection, or Excel file, or a struct array containing the values for the last 12 years.
But when I remember the bunch of other questions you have posted in the last days, I imagine that again the solution is trivial. Perhaps weekendBoxOffice = movieBoxOffice([7,5,6]) ([EDITED] Note that I assumed, that the week begins on Monday). Well, even if I post the solution of a homework question with this, I need to point out again: This is not the right way to use the forum. You post your homework question without any own attempt or effort. This will not help you and therefore it is an inefficient use of time to post the answers. Please, Blair, stop this now.
Rik
on 2 Oct 2017
I agree with Jan on this one. You should really put in some effort of your own, otherwise you are using us as a solution machine. You won't learn to do anything on your own that way. This is also the reason that some homework questions are ignored.
I would advise you to look for a Matlab course that is not over the internet. I expect most universities will have something like that. It seems that you need some in-person assistance to get you going in understanding the way Matlab works.
Maybe it doesn't help either that you are not really running Matlab itself.
Blair Hall
on 2 Oct 2017
Edited: Walter Roberson
on 2 Oct 2017
Jan
on 2 Oct 2017
@Blair: Did you read and understand the suggestions of Rik and me?
Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!