Answered step by step
Verified Expert Solution
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.
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. I keep getting this.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started