How to solve question 5?
Show older comments
Answers (1)
Example:
YourMatrix = magic(5)
SomeVariable = YourMatrix(1, 4:5) %copy last 2 elements of the first row
SomeOtherVariable = YourMatrix(3, [2 4]) %copy 2nd and 4th elements of the third row
Categories
Find more on NaNs in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!