Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

can anyone please help me in rectifying the error

1 visualizzazione (ultimi 30 giorni)
priya nair
priya nair il 15 Mar 2016
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commento
Star Strider
Star Strider il 15 Mar 2016
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.

Risposte (0)

Questa domanda è chiusa.

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by