function [ F ] = MSP_Asgn4_Q2_25011721( n , Bank , P)if Bank == 'A' switch 'A' case Bank == 'A' 3.5; endelseif Bank == 'B' switch 'B' case P <= 40000 3; case (40000 < P) && (P<= 80000) 3.5; case P >= 80000 4.21; endelseif Bank == 'C' switch 'C' case n <= 3 1; case n > 3 4; endendF = P * ((1 + (Bank / 100))^n);end
MATLAB: Help the code won’t work as it ignores the switch blocks and puts in a different value of the string value.
homeworkswitch block
Best Answer