Hello.

I am trying to convert hex to 32 bit floating by Matlab script included in Vee.

Fig1 shows the result of running Matlab alone.

Figure 2 shows the error messages that occur when running Matlab scripts in VEE.

I want to know the reason for the error in VEE and how to fix it.

(My VEE ver is 9.3)

Please help me to resolve this problem.

OK- so I did misunderstand the problem. Here's update

(1) Your error does indeed indicate that you can't return a real32, but that is dependent upon the version of VEE that you are using. If you update to 9.33 then this restriction goes away.

(2) & (3) I read your description as a hex string '40100000' but what you are really working with is a octal string (8 bytes) in which case converted to IEEE 32-bit floating point format you would indeed obtain the value 2.25.

Note that you can still do the work in VEE if you like. For example see http://veeos.org/shared/.VRF_attachments/ieee3.vee