Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the function and data i have do c (commented stuff was my try) Data=ones (3,10) forb=3:10Data(1,b)=Data(1,b1)+Data(1,b2) end Data(2,:)=1:16 Data(3,:)1:1:1 * Data=[ 123:456;789] Processed_data=zeros (size(Data))

Using the function and data i have do c (commented stuff was my try)
image text in transcribed
image text in transcribed
Data=ones (3,10) forb=3:10Data(1,b)=Data(1,b1)+Data(1,b2) end Data(2,:)=1:16 Data(3,:)1:1:1 * Data=[ 123:456;789] Processed_data=zeros (size(Data)) * for upitsize ( Data, 2) * Processed_data (i,1) moth ( Data (:,u)) end function a=math(input) If size(input) m [3 1] error( 'Input is not a 31 array of integers") end if mod( input (2),2)= input (2)+input(3) else abs(input(2)-input (3)) end end c) Use a for loop to run the "math" function on every column of "Data" and assign the outputs to "Processed_Data". Once all calculations have been made, display the arrays "Data" and "Processed_Data" in the command window (only display them once)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago

Question

Discuss the Rights issue procedure in detail.

Answered: 1 week ago

Question

4. Show the trainees how to do it again.

Answered: 1 week ago

Question

8. Praise the trainees for their success in learning the task.

Answered: 1 week ago