各位兄弟:
如何将matlab小程序做成C语言控件?谢谢
请问如何将matlab小程序做成C语言控件?这样可以直接在C语言生成的命令提示符执行文件中直接从EXCEL中调用数据,不必每次都要到MATLAB中导入运行,因为当数据特别多时,速度太慢!例题如下:
% viewpoint example using subplots
x=linspace(0,3*pi).’;
Z=[sin(x) sin(2*x) sin(2*x)]; % create Y and Z axes as matrices
Y=[zeros(size(x)) ones(size(x))/2 ones(size(x))];
subplot(2,2,1)
plot3(x,Y,Z) % plot3 works with column-oriented matrices too
grid,xlabel( ‘ X-axis ‘ ),ylabel( ‘ Y-axis ‘ ),zlabel( ‘ Z-axis ‘ )
title( ‘ Default Az = -37.5,E1 = 30 ‘ )
view(-37.5,30)
subplot(2,2,2)
plot3(x,Y,Z)
grid,xlabel( ‘ X-axis ‘ ),ylabel( ‘ Y-axis ‘ ),zlabel( ‘ Z-axis ‘ )
title( ‘ Az Rotated to 52.5 ‘ )
view(-37.5+90,30)
subplot(2,2,3)
plot3(x,Y,Z)
grid,xlabel( ‘ X-axis ‘ ),ylabel( ‘ Y-axis ‘ ),zlabel( ‘ Z-axis ‘ )
title( ‘ E1 Increased to 60 ‘ )
view(-37.5,60)
subplot(2,2,4)
plot3(x,Y,Z)
grid,xlabel( ‘ X-axis ‘ ),ylabel( ‘ Y-axis ‘ )
title( ‘ Az = 0,E1 = 90 ‘ )
view(0,90)