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

In Mathlab if we have U=f(Y)+f(Z) Y have 20 different values Z have 100 differen

ID: 670098 • Letter: I

Question

In Mathlab if we have

U=f(Y)+f(Z)

Y have 20 different values

Z have 100 different values

I mean if Y=1 then Z will have 100 different values. For each Y there will be 100 values for Z. this mean I will have 100*20 matrix.

My question is in Mathlab how I can save the output from any equation in any matrix or grid? for this case (100*20)

For example U=Y*Z (when Y=1 then Z have 100 values. Then when Y=3.2 then Z will have 100 new different values)

Can we use For loop to accomplish that

For i=1:20

For j=1 :100

M(i,j)=f(y)+f(z)

End

Where i,j is the row and column of matrix

I mean I need to save the result from any equation in matrix or grid using Mathlab. I need to call these numbers later to use in another function. In addition how I can call each number in this matrix to use it in another equation and how I can drew this numbers ( I mean the number in matrix or grid)

Explanation / Answer

syms x y zfor y = 1:20 for z=1:100 A = equationsToMatrix([f(y) + f(z) == X][y, z, x]) end end fprintf('value of a: %d ', A); end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote