extracting max and min range across column from matrix

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

What do you mean by corresponding range?
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)

arrayfun(@(x,y) x:y, min_of_A, max_of_A, 'un', 0)

Asked:

on 29 Apr 2019

Edited:

on 29 Apr 2019

Community Treasure Hunt

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

Start Hunting!