Hi,
I am using the CELLFUN function => A = CELLFUN(FUN, C) which applies the FUN function to the contents of cell/cell array C, and returns the results in A.
The objective function is as follows, where x is an sdpvar variable:
obj = obj + cellfun(str2func(char(ArrayUF(i))),{forecasted_power(i)}) - cellfun(str2func(char(ArrayUF(i))),{x(i)});
I get the error below. Would you please help me solve this! Thanks :)
??? Error using ==> cellfun
sdpvar output type is not currently implemented.
Error in ==> opt at 40
obj = obj +
cellfun(str2func(char(ArrayUF(i))),{forecasted_power(i)}) -
cellfun(str2func(char(ArrayUF(i))),{x(i)});