How can i create a multivariable function from matrix data?
3 visualizzazioni (ultimi 30 giorni)
Natanael Acencio Rijo il 4 Dic 2013
Hi i´m new to matlab. Im trying to create a program that reads data out of a matrix and assigns those values to variables. the issue is that this must be a function for which im going to evaluate its minima, so i cannot define p.
My problem is of this kind:
im going to evaluate the minimum value possible of p
I want to generate this from the previous data:
resulting at the end that
Totalcost= f(1)+f(2)+f(3); which will a multivariable function.
I tried to use a for loop in this case but it doesnt let me assign the values in the parenthesis to the p, to make it a different variable. it keeps telling me that i´m reffering to a value that has been cleared.
what i want to know is: which commands can i use to assign values to the p as a variable of a multivariable function?