help-octave
[Top][All Lists]
Advanced

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

Re: ode45 error: dimension mismatch in line 345 column 17


From: daltonj283
Subject: Re: ode45 error: dimension mismatch in line 345 column 17
Date: Tue, 29 Aug 2017 14:25:52 -0700 (MST)

No the Hamil function returns a 3x3 matrix based on the values of X, and it
along with every other function works fine in the command line. It seems
that for some reason the Delta functions are not returning values when
called in ode45, making X=[ ].

function [ H ] = Hamil( X )
  H=[X(1)+X(2)-X(3)   -2*X(5)   -2*X(6); -2*X(5)   X(1)-X(2)+X(3)   -2*X(4);
-2*X(6)   -2*X(4)   X(2)-X(1)+X(3)];
endfunction



--
View this message in context: 
http://octave.1599824.n4.nabble.com/ode45-error-dimension-mismatch-in-line-345-column-17-tp4684693p4684716.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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