extracting max and min range across column from matrix

1 view (last 30 days)
i have mx4 martrix and i found max and min of each column in two separate I 1x4 and O 1x4 martix now i want to extract corresponding range from main matrix across column
  2 Comments
Praveen Kumar Ramani
Praveen Kumar Ramani on 29 Apr 2019
i have 68X4 A matix min of A ind 1X4 matix and max of A ind 1x4 matrix.... i want to arrive new A matrix only range from min:max of all column

Sign in to comment.

Answers (1)

madhan ravi
madhan ravi on 29 Apr 2019
Edited: madhan ravi on 29 Apr 2019
arrayfun(@(x,y) x:y, min_of_A, max_of_A, 'un', 0)

Categories

Find more on Shifting and Sorting Matrices 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!