Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21281

[URGENT, FOR THESIS MATTER] How to Using PINV matlab's function from visual basic

$
0
0
I wanna using pinv for pseudoinverse matlab function from visual basic 6.

I've tried to make a .m file which contain this code:
function pinvH = pseduoinv( H )
matriksH=load(H)
pinvH=pinv(matriksH)
end


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

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

Viewing all articles
Browse latest Browse all 21281

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>