Create a function from a table, Part 2 (revised)

1 view (last 30 days)
alpedhuez
alpedhuez on 28 Mar 2018
Answered: Elias Gule on 29 Mar 2018
Given an n*2 matrix A =[a b], I would like to write a function f that takes an element of the first column and then returns the element of the second column of the row of the input. Please advise.

Answers (1)

Elias Gule
Elias Gule on 29 Mar 2018
I hope this.

Tags

Products

Community Treasure Hunt

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

Start Hunting!