How can I solve this problem?

6 views (last 30 days)
Nada Kadhim
Nada Kadhim on 10 Jun 2015
Answered: Sreeja Banerjee on 11 Jun 2015
Error using checklatlon (line 26) Function GEOSHOW expected its first and second input arguments, LAT and LON, to match in size.
Error in geovecshow (line 38) checklatlon(lat, lon, 'GEOSHOW', 'LAT', 'LON', 1, 2);
Error in mapshow (line 231) h = showFcn(varargin{:});
Error in svm_matr_2015 (line 200) mapshow(resrgb,R)

Answers (1)

Sreeja Banerjee
Sreeja Banerjee on 11 Jun 2015
Looks like you are calling the function "geoshow" using the following syntax:
>> geoshow(lat,lon)
However, the sizes of the variables "lat" and "lon" are different and that is why you are getting this error message. Please remember that "lat" and "lon" must have the same number of elements. This is also clearly stated in the documentation. Please check the "Input Arguments" section:

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!