Consider a vector A such as
A = [1 2 3 3 4 5 6]
Can you convert this vector to a three-column matrix like this:
M = [1 2 3
2 3 3
3 3 4
3 4 5
4 5 6]
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers107
Suggested Problems
-
Project Euler: Problem 7, Nth prime
1763 Solvers
-
Set some matrix elements to zero
630 Solvers
-
Determine if input is a perfect number
264 Solvers
-
Rounding off numbers to n decimals
5662 Solvers
-
6188 Solvers
More from this Author21
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!