Replacing a row - MATLAB Cody - MATLAB Central

Problem 2574. Replacing a row

Difficulty:Rate

For matrix G=[1 2 3; 4 5 6; 7 8 9]

Replace the 2nd row with 8s

**remember to create matrix G

Solution Stats

33.39% Correct | 66.61% Incorrect
Last Solution submitted on Jun 13, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
3
6

Problem Recent Solvers374

Suggested Problems

More from this Author8

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!