[求助]matlab问题 看不懂出错信息
请问出错信息里面给出的expect和found是什么意思?具体如下
Error using ==> fmincon
FMINCON cannot continue because user supplied nonlinear constraint function
failed with the following error:
Error: File: c:\MATLAB6p5\work\mycon.m Line: 5 Column: 123
Expected a variable, function, or constant, found "end of line".
下面的我的代码 我觉得没有错阿
%designobj.m
%目标函数
function f=designobj(x,s,p,a,b1,c1,d,e,t)
f=e(1)*(a(1)*(x(55)^b1(1))+a(2)*(x(56)^b1(2))+a(3)*(x(57)^b1(3))+a(4)*((x(58)*s(19))^b1(4))+a(5)*((x(59)*s(19))^b1(5))+a(6)*(x(62)^b1(6)))
+t*e(2)*(c1(1)*(x(55)^d(1))+c1(2)*(x(56)^d(2))+c1(3)*(x(57)^d(3))+c1(4)*((x(58)*s(19))^d(4))+c1(5)*((x(59)*s(19))^d(5))+c1(6)*(x(62)^d(6)))
另外我想问:编制的M文件怎么才能运行,是不是要copy到matlab主程序的窗口里运行才行
谢谢了