vec2mtx Index exceeds array bounds.

1 view (last 30 days)
bstechel
bstechel on 27 Apr 2022
Whenever i'm using the vec2mtx function i get an error. I tried the my own code, the examples on the vec2mtx page and some examples of the forum.
This is error notice:
Index exceeds array bounds.
Error in gcd (line 8)
Kcoli = par(1); Kdisco = par(2);
Error in map.rasterref.internal.simplifyRatio>simplify (line 39)
g = gcd(num, den);
Error in map.rasterref.internal.simplifyRatio>rationalize (line 59)
[num, den] = simplify(n,d);
Error in map.rasterref.internal.simplifyRatio (line 30)
[num, den] = rationalize(num, den);
Error in map.rasterref.GeographicRasterReference/setAbsoluteDeltaLatitude
(line 1117)
[num, den] =
map.rasterref.internal.simplifyRatio(absoluteDeltaLatitude, 1);
Error in map.rasterref.GeographicCellsReference/set.CellExtentInLatitude
(line 140)
R = setAbsoluteDeltaLatitude(R, cellExtentInLatitude);
Error in georefcells (line 80)
R.CellExtentInLatitude = cellExtentInLatitude;
Error in vec2mtx>referenceOutput (line 240)
R1 = georefcells(latlim, lonlim, 1/density, 1/density);
Error in vec2mtx (line 91)
[fill, sizeZ, R] = referenceOutput(lat, lon, varargin{:});

Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!