How to get values that make funtion max

I m quite new using Matlab, my question is as follows.
Let say a*b = 50, how can I get the values of a and b? a and b are a list of values. Thanks.

1 Comment

Don't post duplicated questions. If you didn't get an answer, chances are that your question is not clear, like this one.

Answers (2)

a1 = rand(1,10)
b = rand(10,1)
a = a1/(a1*b)*50
ablst = [a' b]
a*b
There are somewhere on the order of 2^62 different (a,b) pairs that satisfy this function, I estimate.

This question is closed.

Tags

Asked:

on 17 Oct 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!