not enough input arguments
Hello, here is my simple equation of a function to determine total pay after taxes. I’m new to Matlab and i’m getting an error in line 5 but im not really understanding why.
————————————————————————————-
function [takehome_pay, taxes_paid, total_pay] =
PaycheckFunction(HoursWorked, HourlyWage, TaxRate)
end
% Function to determine your take home pay after taxes are taken out
total_pay = HoursWorked * HourlyWage;
taxes_paid = total_pay * TaxRate;
takehome_pay = total_pay – taxes_paid;
Not enough input arguments.
Error in PaycheckFunction (line 5)
total_pay = HoursWorked * HourlyWage;Hello, here is my simple equation of a function to determine total pay after taxes. I’m new to Matlab and i’m getting an error in line 5 but im not really understanding why.
————————————————————————————-
function [takehome_pay, taxes_paid, total_pay] =
PaycheckFunction(HoursWorked, HourlyWage, TaxRate)
end
% Function to determine your take home pay after taxes are taken out
total_pay = HoursWorked * HourlyWage;
taxes_paid = total_pay * TaxRate;
takehome_pay = total_pay – taxes_paid;
Not enough input arguments.
Error in PaycheckFunction (line 5)
total_pay = HoursWorked * HourlyWage; Hello, here is my simple equation of a function to determine total pay after taxes. I’m new to Matlab and i’m getting an error in line 5 but im not really understanding why.
————————————————————————————-
function [takehome_pay, taxes_paid, total_pay] =
PaycheckFunction(HoursWorked, HourlyWage, TaxRate)
end
% Function to determine your take home pay after taxes are taken out
total_pay = HoursWorked * HourlyWage;
taxes_paid = total_pay * TaxRate;
takehome_pay = total_pay – taxes_paid;
Not enough input arguments.
Error in PaycheckFunction (line 5)
total_pay = HoursWorked * HourlyWage; not enough arguments, matlab MATLAB Answers — New Questions