Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 353. Back to basics 9 - Indexed References

Created by Alan Chalker

Covering some basic topics I haven't seen elsewhere on Cody.

Given an input matrix and row and column, output the index of the referenced element.

matrix: [10 12 22; 9 3 5] row: 2 col: 3 -> index = 6

Problem Group

Solution Statistics

219 correct solutions 125 incorrect solutions
Last solution submitted on Dec 13, 2014