Question: Create the following function in MATLAB: Function B = initialize34(A,i) which goal is to initialize to 34 the values of A which equals the values

Create the following function in MATLAB:

Function B = initialize34(A,i) which goal is to initialize to 34 the values of A which equals the values of the matrix i. For exemple, if A was [1 2 3 4] and i was [2 4], then B would be [1 34 3 34].

In this case, A is a single column vector containing 3000 elements of value 0 and i is a matrix which contains the even numbers between 178 and 2600.

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!