Info
此问题已关闭。 请重新打开它进行编辑或回答。
can anyone please help me in rectifying the error
1 次查看(过去 30 天)
显示 更早的评论
on executing the following code am getting the error
clc
i = input ('enter the no. of constraints: ');
j= input ('enter the no. of variables: ');
for m=1:i
for n=1:j
d(m,n)= a(m,n)/b(m)*c(n);
max(min(d(m,n)))= min(max(d(m,n)));
disp('no redundant constraints');
le(d(k,n),d(m,n));
disp('the kth constraint is redundant');
end
end
am getting the error as Undefined function 'a' for input arguments of type 'double'.
Error in stain (line 6) d(m,n)= a(m,n)/b(m)*c(n);
please help me in rectifying the error
1 个评论
Star Strider
2016-3-15
You have to have a matrix called ‘a’ (and vectors ‘b’ and ‘c’) existing in your workspace before you run the code you posted.
To be honest, the code you posted does not make sense.
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!