Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What am I doing wrong or missing to get this as my result? I am trying to do a reverse column vector for Array 3.

image text in transcribed

What am I doing wrong or missing to get this as my result?

image text in transcribed

I am trying to do a reverse column vector for Array 3. I keep getting this.

image text in transcribed

The first result is correct but how do I get that result.

6. Write a Matlab program using FOR loop that prints a given row or column vector in reverse. 3 Array [7 10:3; 11:4; 1:12:1 15:2]: %create reverse vector reverse vector zeros (0,length (Array 3), 1) for i 1: length (Array 3) reverse vector (i) Array 3 (length (Array3) (i 1)) end 1 disp (C'The original array was matt 2str (Array 3) disp (C' The reversed array was: mat2str (reverse vector)

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

Step: 3

blur-text-image

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

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions