标题:简单问题:为什么说参数没有定义?
取消只看楼主
whxy
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2009-8-11
 问题点数:0 回复次数:0 
简单问题:为什么说参数没有定义?
%filename funcforex123.m
function xdot =funcforex123(t,x,flag,R,L,C)
xdot=zeros(2,1);
xdot(1)=-R/L*x(1)-1/L*x(2)+1/L*f(t);
xdot(2)=1/C*x(1);
function in=f(t)
in=(t>0)*1;

??? Input argument "R" is undefined.

Error in ==> funcforex123 at 4
xdot(1)=-R/L*x(1)-1/L*x(2)+1/L*f(t);

请各位大大帮忙看看。
谢谢!
搜索更多相关主题的帖子: TAG 
2009-08-13 10:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-282493-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.349324 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved