help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with m file


From: Marco Atzeri
Subject: Re: help with m file
Date: Thu, 20 Dec 2018 19:35:11 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3

Am 20.12.2018 um 18:38 schrieb whiffee:
hi All,

I made a couple of changes to this matlab file, but it's not
running yet. Next to last line is original and not right. Does
someone have a suggestion?

function [p,dp,q,r,alp,dom,x,wint,wipr]=ex1(n)
global n
figure(1);title('Fourier equation, Dirichlet problem: -u"=lambda*u,
u(0)=u(1)=0');hold on;
disp('Fourier equation, Dirichlet problem: -u"=lambda*u, u(0)=u(1)=0');
dom=[0,1];alpha=(dom(2)-dom(1))/2;beta=(dom(2)+dom(1))/2;
e1=ones(n,1)/2;e2=e1;e2(2)=1;X=spdiags([e1,e2],[-1,1],n,n);
X=alpha*X+beta*eye(size (n));
p=1;
dp=0;
q=0;
r=1;
alp=[1,0;1,0];
[x,wint]=pd(n,dom);
wipr=ones(n,1);

thanks,
whiffee


What you mean as Matlab file ? It is something you wrote for Matlab
and you are trying to run on Octave ?

What is the error ?
As it clearly miss the end of the function it is difficult to
replicate your problem.
Be a bit more descriptive of your effort, or are you expecting
we magically understand what you want to do ?



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]