Question: Using MATLAB Thank you Write a for loop to find 12 + 32 +52 ... + n2 if n=15. Your result: Your code: Write an
Using MATLAB

Thank you
Write a for loop to find 12 + 32 +52 ... + n2 if n=15. Your result: Your code: Write an 'if' statement to determine if the input n is a number bigger than 100. If yes, display 'Bigger than 100.', otherwise, display 'Smaller than or equal to 100. Set n=100 and show your result. Your result: Your code: List the integers between 1 to n in a vector v, such that the integer is divisible by 6 using a "for' loop and some 'if' statements. n=100. The numbers in v are not repeated. Your result: Your code: List the integers between 1 to n in a vector v, such that the integer is divisible by 6 or 9 using a 'for' loop and some 'if' statements. n=100. The numbers in v are not repeated. Your result: Your code: Let a=[1119 732]. Split the vector a into two vectors b and c with equal sum. Your result should be b=[1119] and c=[73 2] as 1+1+1+9=12 and 7+3+2=12. Your code: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because mod (128,1)==0, mod (128,2)==0, and mod (128,8)==0. Find all the self-dividing numbers between 10 to 50. Your result: Your code: (bonus) Generate 5 random dots in the xy-plane. Return the area of the largest triangle that can be formed by any 3 of the points. Your result: Your code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
