English 中文(简体)
未明确的职能 F. 提供类型果园的论据
原标题:Undefined function F for input arguments of type char

我正试图创建一种功能F(t),相当于一个有机体,然后用F(tn)值计算。 然而,我发现错误“没有界定功能F,用于对类型焦炭提出投入的理由”。 问题是什么?

function [ theta ] = Untitled( theta_o,omega_o )
nt=5001; %since (50-0)/.01 = 5000
dt = .01; % =H
H=.01;

theta_n = ones(nt,1);
theta_n(1)=0; %theta_o
omega_n = ones(nt,1);
omega_n(1)=-0.4; %omega_o
epsilon=10^(-6);
eta = epsilon*10;
t_o=0;

for n=1:4999
    tn=t_o+n*dt;
    F := int((422.11/eta)*exp((5*(4*((eta*t-s-tn)^2)/eta^2)-1)^(-1))*omega, s,tn-    (n/2),tn+(n/2))
    theta_n(n+1) = theta_n(n) + h*F(tn);
end

end
问题回答

What about F = @(tn) ...;?

或许,你也将这一守则中的一些其他内容混为一谈,例如H vsh,等等。





相关问题
as2 simple for loop not populating textbox

I have got an xml file that brings text into a flash movie in the form of an array, I need to population some textboxes and want to do this using a for loop. My loop look like this: for(var i=...

Undirected (Multi) Graph (Hierholzers Algorithm)

I am very stuck with the looping structure for my graph to work out Eulers tour. This is the graph I am drawing, remember it s undirected, so a journey from N1 to N4 is the same as a journey from N4 ...

Smarty Section Making the selected Link Bold

How can I make the selected link from the List below, bold, that you see you are on Page ex. 3 or 5 With this code, If you click on a Link you don t know on which page you are. The smarty code ...

Back button loop with IFRAMES

In my (school) website we use Iframes to display class blogs (on blogger). This works well EXCEPT if the user then clicks on (say) a photo inside the iframe. Blogger (in this case) then displays the ...

Handling multiple windows WIN32 API

HI I m trying to create an application in the Win32 environment containing more than one window. How do i do that? all the Win32 Tutorials on web i found only showed how to manage one window. How do i ...

Saving output of a for-loop to file

I have opened a file with blast results and printed out the hits in fasta format to the screen. The code looks like this: result_handle = open("/Users/jonbra/Desktop/my_blast.xml") from Bio.Blast ...

热门标签