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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started