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