RT 我的m文件的代码是function h_vs= fcn(T_s)
B13= [-575.520*10^-4 117.700*10^-5 491.369*10^-8 782.701*10^-2 -815.233*10^-3 256.383*10^-4 149.856*10^-1 -209.283*10^-2];
a=zeros(1,8);
for i=1:8
a(i)=B13(i);
end
coder.extrinsic('syms');
syms h_vs u v;
T_s=T_s+273.15-61;
v=T_s-203.15;
u=(h_vs-350)^0.5-2.24076;
x=solve(u^3+a(1)*u^2*v+a(2)*u*v^2+a(3)*v^3+a(4)*u^2+a(5)*u*v+a(6)*v^2+a(7)*u+a(8)*v,h_vs);
y=max (real (double (subs(x))));
h_vs=y;
end
复制到matlab function中想要调用却出现如下8个错误:
Simulink does not have enough information to determine output sizes for this block. If you think the errors below are inaccurate, try specifying types for the block inputs and/or sizes for the block outputs.
Component: MAT