Question: Matlab Question: So here is the function I am working with %%%Script%%%% function [SeasonQual] = CFB_SeasonEvaluator(Season) I have to make the function take in one

Matlab Question:

So here is the function I am working with

%%%Script%%%%

function [SeasonQual] = CFB_SeasonEvaluator(Season)

I have to make the function take in one vector input named Season. In this case, there are number of wins, losses, result, result 2. However, the scalar value of these 4 inputs go into the code and not in the script. I'm just confused on how I can make Season a vector of inputs (wins, losses, result, result 2) in the script so I can also write in the script on what SeasonQual will output with arguments with the 4 inputs.

%%%Command Window%%%

wins= 0;

losses=0;

result=0;

result2=0;

SeasonQual=CFB_SeasonEvaluator([wins, losses, rivalry, bowl])

(Note: the 0 scalar values are just there and not the real values)

Just need a script line that lets Season be a vector input so I can make arguments to make an ouput value

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!