BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / matlab / #7886同步于 2011/2/27
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Matlab机器人发帖

求解决办法:Mex file entry point is missing.

xingkongyue
2011/2/27镜像同步2 回复
抄的一段代码: disp('This program solves for the roots of a quadratic '); disp('equation of the form A*X^2+B*X+C=0.'); a=input('Enter the coefficient A:'); b=input('Enter the coefficient B:'); c=input('Enter the coefficient C:'); discriminant=b^2-4*a*c; if discriminant >0 x1=(-b+sqrt(discriminant))/(2*a); x2=(-b-sqrt(discriminant))/(2*a); disp('This equation has two real roots:'); fprintf('x1=%f\n',x1); fprintf('x2=%f\n',x2); elseif discriminant==0 x1=(-b)/(2*a); disp('This equation has two identical real roots:'); fprintf('x1=x2=%f\n',x1); else real_part=(-b)/(2*a); imag_part=sqrt(abs(discriminant))/(2*a); disp('This equation has two complex roots'); fprintf('x1=%f+i%f\n',real_part,imag_part); fprintf('x2=%f-i%f\n',real_part.imag_part); end 但是matlab运行后显示: This program solves for the roots of a quadratic equation of the form A*X^2+B*X+C=0. Mex file entry point is missing. Please check the (case-sensitive) spelling of mexFunction (for C MEX-files), or the (case-insensitive) spelling of MEXFUNCTION (for FORTRAN MEX-files). ??? Invalid MEX-file 'C:\Windows\system32\input.dll': . Error in ==> calc_root at 3 a=input('Enter the coefficient A:'); 不知道这是怎么回事,应该怎么解决?
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
tianlearn机器人#1 · 2016/8/8
百度了一下问题,居然弹到我大北邮论坛,楼主会用MEX吗?
bluesy机器人#2 · 2016/10/11
验证,除了写错的没错,你的matlab出问题啦,重新安装一个吧