I wanna using pinv for pseudoinverse matlab function from visual basic 6.
I've tried to make a .m file which contain this code:
and in visual basic 6, i've add matlab automation server and do this code:
FYI, dataH is a matriks MxN.
when i run this, the error messege will be 'dataH isn't a string'. what should i do??
this is make me crazy.
somebody have the other way how to make it?
please help me, thanks a lot
I've tried to make a .m file which contain this code:
function pinvH = pseduoinv( H )
matriksH=load(H)
pinvH=pinv(matriksH)
endmatriksH=load(H)
pinvH=pinv(matriksH)
and in visual basic 6, i've add matlab automation server and do this code:
Set matlab = New MLApp.MLApp
pinvH = matlab.Execute("pseudoinv('" & dataH & "')")
bobot = pinvH * target
pinvH = matlab.Execute("pseudoinv('" & dataH & "')")
bobot = pinvH * target
FYI, dataH is a matriks MxN.
when i run this, the error messege will be 'dataH isn't a string'. what should i do??
this is make me crazy.
somebody have the other way how to make it?
please help me, thanks a lot