Question: Problem 3: A = [1, 3, 4] B = [-2 -1] Make a program that adds each element of A with each element of B,

Problem 3:

A = [1, 3, 4] B = [-2 -1] Make a program that adds each element of A with each element of B, and takes a square of it. Your result/answer should be like this C = [1, 0; 1, 4; 4, 9] or C = [1;0;1;4;4;9]. You must use nested for loop. Example of nested for loop for for end end Note: When we talk about taking the square in this question, of course the square will be of A+B --------------------------------------------------------------------------------------------------------------------- Problem 4: x = [-0.5:0.05:0.1] m = [1 5] Make a nested for loop that calculates y = x 2 +m for each element of x and m, and saves it in a matrix/matrixes. The desired matrix should have 13 columns and 2 rows. Example of nested for loop for for end end

Make a plot between x and y, with x on x axis and y on y axis and the plot has three curves on it indicating different values of m.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!