Question: Consider the following function a ( i , j ) = { j 3 if | i j | < 4 i + 4 j
Consider the following function a(i,j) =
| { | j3 | if |i j| < 4 |
| i + 4j | if |i j| 4 |
If we were to define a(i,j) as an anonymous function in Matlab, i.e., a=@(i,j) ... what would be the code for the '...' part of the function (using 38 characters or less)? To check your work, the code that you come up with (together with a=@(i,j)) should produce the below 77 matrix when used with the create_matrix function.
|
Note: Do not include the 'a = @(i,j)' part of the function in the answer box.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
