Got Questions? Get Answers.
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

Thread Subject:
Min Function Doubt in storing all minimum values a array

Subject: Min Function Doubt in storing all minimum values a array

From: Riya Paul

Date: 18 Mar, 2013 11:49:09

Message: 1 of 2

 Hello ,
I am really a new learner in matlab simulation!!!!
I want to get the the minimum value of every single colum that is in a two dimentional matix of
number. I used min function and it returns the minimum of every single column as a
vector. I want to store every minimum value in a array and their corresponding minimum indices in a different array .
Can you tell me how to do that ???

Thank you,

Subject: Min Function Doubt in storing all minimum values a array

From: dpb

Date: 18 Mar, 2013 12:56:30

Message: 2 of 2

On 3/18/2013 6:49 AM, Riya Paul wrote:
> Hello ,
> I am really a new learner in matlab simulation!!!!
> I want to get the the minimum value of every single colum that is in a
> two dimentional matix of
> number. I used min function and it returns the minimum of every single
> column as a
> vector. I want to store every minimum value in a array and their
> corresponding minimum indices in a different array .
> Can you tell me how to do that ???
>

doc min % answers that directly

Although it's not clear why you seem to be making a difference between
the vector of minimums and an array--what do you expect the minimum of
columns of a 2D array to be if not a vector (which is a 1D array)?

--

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us