Spatial Econometric Toolbox problem
Mostra commenti meno recenti
Hello! I have a problem with Matlab that I can not solve.
Some time ago I downloaded a toolbox (unfortunately a bit 'dated) written by Kelley. This is the Spatial Econometrics Toolbox http://www.spatial-statistics.com/software_index.htm
A function calls a function written in Fortran 90.
The function reads as follows:
% call Fortran 90 MEX function
nnmat = tnn13 (xcoord, Ycoord, ms, n, istart);
tnn13 is in .dll format and is available in the available folder. Furthermore, in the first lines of the function there is written
% This function computes m spatiotemporal nearest neighbors for observation from 1 to (n-istart).
% This matlab function calls to Fortran 90 Mex function, tnn13.dll. For other platforms, the fortran source code is subdirectory
% in a subdirectory within the space_time subdirectory under the examples subdirectory.
The problem is that when I launch the function it comes out:
Error in fnn_mex2 (line 40)
nnmat = tnn13 (xcoord, Ycoord, ms, n, istart);
Error in x_spatiotemporal2 (line 80)
nnmat = fnn_mex2 (xcoord, ycoord, ms, n, istart);
Can someone help me to understand how to solve?
I installed Matlab 2014 on a windows 7.
Grazie mille!
Federico
8 Commenti
Walter Roberson
il 30 Set 2018
I suspect that you are missing a Visual Studio Runtime Redistributable.
Federico Dell'Anna
il 30 Set 2018
Walter Roberson
il 30 Set 2018
Are you using 32 bit MATLAB or 64 bit MATLAB?
Walter Roberson
il 30 Set 2018
I do not see any dependency upon a run-time redistributable, but it does appear that the provided tnn13 is for 32 bit MATLAB only.
I see some documentation indicating that it could be recompiled from source for other versions.
Federico Dell'Anna
il 1 Ott 2018
Walter Roberson
il 1 Ott 2018
My tests suggest that it needs a version older than R2008a (unless the software were to be recompiled) . It was last updated in 2003, which is like MATLAB 6, R12 or so. I happen to have an installer for MATLAB 6.5 (R13SP1) sitting around, but that version is too old to run under Windows 10 (needs Windows 95 or Windows XP, refuses to run on Vista or later.) I think I might have a Windows XP virtual machine sitting around, but I am not going to look for it until later.
Federico Dell'Anna
il 1 Ott 2018
Federico Dell'Anna
il 2 Ott 2018
Modificato: Walter Roberson
il 3 Ott 2018
Risposte (0)
Categorie
Scopri di più su Testing Frameworks in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!