Thanks again for the V3 updates, Brucepos!
Tried again, but still no joy. I'm going to show you my inputs, so you can see where I might have gone wrong:
1. After deriving all the top, right, etc., numbers, I input them as follows:
-->size(alt1)
ans =
6001. 6001.
-->left=2108
left =
2108.
-->right=2714
right =
2714.
-->top=7608
top =
7608.
-->bottom=7560
bottom =
7560.
Then I ran the macro, having changed my terms according to the name and path of my file (my master file is called "alt1"):
stacksize('max');
alt1=fscanfMat("C:\temp\alt1.txt");
mapdata=alt1(top:bottom,left:right);
[nr nc]=size(mapdata);
x1=1:75/(nr-1):76;
x2=1:100/(nc-1):101;
for i=1:76;for j=1:101;remap(i,j)=linear_interpn(i,j,x1,x2,mapdata);end;end;
remap=remap-min(remap);
iremap=iconvert(remap,2);
mopen(fileoutput,'wb');
for i=1:76; mput(iremap(i,:),'sl');end;
mclose();
The Console gave this error result:
-->exec('C:\Documents and Settings\Gina\Desktop\Histwar downloads\LG files\Altmacro3.sce', -1)
for i=1:76;for j=1:101;remap(i,j)=linear_interpn(i,j,x1,x2,mapdata);end;end;
!--error 999
linear_interpn: Wrong size for input argument #3.
at line 7 of exec file called by :
exec('C:\Documents and Settings\Gina\Desktop\Histwar downloads\LG files\Altmacro3.sce', -1)
Any ideas?