How do I perform this operation
이전 댓글 표시
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
Rik
2017년 10월 2일
Blair Hall
2017년 10월 2일
@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
2017년 10월 2일
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
2017년 10월 2일
편집: Walter Roberson
2017년 10월 2일
Jan
2017년 10월 2일
@Blair: Did you read and understand the suggestions of Rik and me?
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!