完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
|
|
相关推荐
3 个讨论
|
|
|
我个人觉得这和MATLAB求极限的算法有关。
以下是limit函数的实现代码,LZ可以研究看看: function r = limit(f,x,a,dir) %LIMIT Limit of an expression. % LIMIT(F,x,a) takes the limit of the symbolic expression F as x -> a. % LIMIT(F,a) uses findsym(F) as the independent variable. % LIMIT(F) uses a = 0 as the limit point. % LIMIT(F,x,a,'right') or LIMIT(F,x,a,'left') specify the direction % of a one-sided limit. % % Examples: % syms x a t h; % % limit(sin(x)/x) returns 1 % limit((x-2)/(x^2-4),2) returns 1/4 % limit((1+2*t/x)^(3*x),x,inf) returns exp(6*t) % limit(1/x,x,0,'right') returns inf % limit(1/x,x,0,'left') returns -inf % limit((sin(x+h)-sin(x))/h,h,0) returns cos(x) % v = [(1 + a/x)^x, exp(-x)]; % limit(v,x,inf,'left') returns [exp(a), 0] % Copyright 1993-2004 The MathWorks, Inc. % $Revision: 1.6.4.3 $ $Date: 2004/04/16 22:22:49 $ f = sym(f); % Default x is findsym(f,1). % Default a is 0. % Default direction is left to Maple; we do not specify % a default unless one is explicitly provided by the user. % MHELP LIMIT describes the defaults used by Maple. % dir is empty unless 4 inputs are provided. switch nargin case 1, a = '0'; x = findsym(f,1); dir = ''; case 2, a = x; x = findsym(f,1); dir = ''; case 3 dir = ''; end if any(size(x) > 1) error('symbolic:sym:limit:errmsg1','Variable must be a scalar.') end if any(size(a) > 1) error('symbolic:sym:limit:errmsg2','Limit point must be a scalar.') end a = sym(a); x = sym(x); MapleString = [x.s '=' a.s ',' dir]; if isempty(dir); MapleString(end) = []; end r = maple('map','limit',f,MapleString); k = strmatch('undefined',char(r.s)); if ~isempty(k), [r(k).s] = deal('NaN'); end |
|
|
|
|
|
|
|
你正在撰写讨论
如果你是对讨论或其他讨论精选点评或询问,请使用“评论”功能。
我用matlab的coder 封装了一个c语言的dll, 但是在用labview调用时,会出现识别不到库的问题,有大神遇到过吗
2645 浏览 0 评论
5229 浏览 0 评论
在matlab中如何计算含有第一类修正的贝塞尔函数的积分算不出的问题?
9025 浏览 0 评论
怎么利用matlab得到95%,80%和70%的置信区间,并生成不同区间下的功率误差贝塔分布?
10466 浏览 0 评论
请问simulink的s-function模块如何添加多输入输出接口
14632 浏览 2 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 12:14 , Processed in 1.003146 second(s), Total 53, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1517