Info

この質問は閉じられています。 編集または回答するには再度開いてください。

can anyone please help me in rectifying the error

1 回表示 (過去 30 日間)
priya nair
priya nair 2016 年 3 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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
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!

Translated by