You can use the following function in MATLAB to create a 4xxy array of 1's, 8's, -4.5's, and 0's:
main.m389 chars17 lines
To use this function, simply call it with your desired values for x
and y
:
main.m28 chars2 lines
The result
variable will now contain the 4xxy array with values as you specified.
gistlibby LogSnag