Question: Given a row vector R, cube each element using a single (arithmetic) Matlab statement. Store the result in the variable Q. For example, using [1,2,3],
Given a row vector R, cube each element using a single (arithmetic) Matlab statement.
Store the result in the variable Q.
For example, using [1,2,3], the result would be [1,8,27]
For example, using [5,4,3,2,3,4], the result would be [125,64,27,8,64]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
