Question: using Matlab Please help I do not understand where I went wrong in defining them as an array, than using that to solve for the

using Matlab
Please help I do not understand where I went wrong in defining them as an array, than using that to solve for the variables. Once that is done not sure how to find everyones age.
N = [115, 116, 101,118]; %FILL IN THE BLANK% % 2: Solve the following logic puzzle using N from above, creating % an array that describes a system of four equations with four % unknowns (the ages of Al, Becky, Carl, and David as doubles). a = 'Al'; b = 'Becky'; c = 'Carl'; David'; 1 == (a + b + C + N); (a + b + d + N); 3 == (a + C + d + N); (b + c + d + N); sol-solve(1,2,3,4); d = 2 = 4 == % Ten times Becky's age Minus Al's age is equal to N(2,1) 10*b-a = N(2,1) % Two times Becky's age plus Al's age is equal to N(3,1) 2*b+a = N(3,1) % Al's age minus N(1,1) is negative ten times Carl's age a-N(1,1) = (-10)* % Al's age times ten is Dave's age plus N(4,1)% a* 10 = d+N(4,1) % What are everyone's ages? (Depending on your name, % the ages might include negative numbers)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
