September 12th, 2011, 09:34 PM
Matlab functions need conversion
I need help in converting a few functions from matlab to VC++. Here's the code that I have done partially in C++ and some are still in MATLAB.
void Norma::norma(float Dn)
[~,ni] = sizeof(D);
if (ni == 1)
Dn = (D - min(D))./(max(D)-min(D)); //convert this equation in C++
vmaxD = max(D); vminD = min(D);
for (int i = 1; i<= ni; i++)
Dn(:,i) = (D(:,i) - vminD(i))./(vmaxD(i)-vminD(i));//convert this equation in C++
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!