Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am getting an error for the error(\'input must be a scalar\') I have also trie

ID: 3739546 • Letter: I

Question

I am getting an error for the error('input must be a scalar')

I have also tried

If nume1(bill)>1||nume1(group)>1

error('Input must be a scalar')

this gives me the error that nume1 and nume2 are undefined functions.

I am not supposed to define these, how else can i do this without useing those?

USE MATLAB FOR COURSECODY

Your Function C Reset MATLAB Documentation 1 function tipTipCalc(bill, group) 2 if (bi11)>1 (group)>1 3 error('input must be a scalar' 4 5 for i-group 6 if group elseif group

Explanation / Answer

You are getting the error because it is numel not nume1. The last character is not one(1) it is small l. So change that to l and run the code.

**Comment for any further queries.