Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Converting Matlab Prog TO VHDL using HDL Coder
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
rachidsouissi@gmail.com

Posts: 2
Registered: 5/6/14
Converting Matlab Prog TO VHDL using HDL Coder
Posted: Aug 21, 2014 9:55 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
I want to convert a matlab programme to VHDL using HDL Coder tool but in step 4 i have obtained the following error:

MATLAB command 'quadprog' failed: (optim:quadprog:NonDoubleInput) QUADPROG requires the following inputs to be of data type double: 'H','f','A','b','Aeq','beq'.
the matlab program is :

coder.extrinsic('quadprog');
x=[3 1;3 -1;6 1;6 -1;1 0;0 1;0 -1;-1 0];
y=[1 1 1 1 -1 -1 -1 -1]';
H=(x*x').*(y*y');
f=-ones(8,1);
A=-eye(8);
a=zeros(8,1);
b=a
B=[y';zeros(7,8)];
alpha=quadprog(H+eye(8)*0.001,f,A,a,B,b);
w=(alpha.*y)'*x;
w0=1/1-([0.99 0]*[3 1]');
end

Can you help me to correct this error.

Thank you



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.