Info

This question is closed. Reopen it to edit or answer.

Convert from matlab code to visual basic

1 view (last 30 days)
Alcapalb
Alcapalb on 7 Nov 2017
Commented: Rik on 7 Nov 2017
function [CODICE_COMPONENTE]=Elenco(codice,temperatura,durata,esecuzione,c,d,e)
N=length(temperatura);
j=1;
CODICE_COMPONENTE=[];
temp=[22,22,22,22,22,22,22,22,22,22];
temp(1)=1;
g=false;
f=false;
l=false;
for i=1:N
if temperatura(i)==c
g=true;
end
if durata(i)~=d
g=false;
end
if esecuzione(i)~=e
g=false;
end
if g==true
temp(j)=codice(i);
j=j+1;
g=false;
else i=i+1;
end
end
for k=1:10
CODICE_COMPONENTE(k)=temp(k);
end
end
  3 Comments
Alcapalb
Alcapalb on 7 Nov 2017
Rik, nice to read you again...do you have any hints for this question?
Rik
Rik on 7 Nov 2017
I don't. I've not worked with visual basic since I was 14, which is why I'm not on Visual Basic Answers, but on Matlab Answers instead.
I assume the person closing your question suggested you take this question to a VB forum. I'dd second that.

Answers (0)

Community Treasure Hunt

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

Start Hunting!