I found a bug with the overlay function. If I try to add an overlay image with a path in the filename, it embeds the state path in the kml file, thus when I load the kmz file into Google Earth, it goes looking for the file at the stated path. It does not use the file embedded with the kmz file.
I found this function much better than the standard matlab functions. I also was able to read VOB files off a DVD. I modified it slightly to read my video as monochromatic, thus saving memory. It would be nice to add this functionallity to the standard release.
Hi Rafael, I'm using the overlay but I do not understand the format of coordinates west east south north. I have an image jpeg with the coordinates of the corners lat lon, I what way I can put them in the function. I tried to do this:
kml.overlay(kml_UPLlon,kml_LWLlon, kml_UPRlon,kml_LWRlon , kml_LWLlat,kml_LWRlat, kml_UPLlat,kml_UPRlat, bitmap_name,bitmap_name);
but It doesn't works. The error is:
Error using kml/overlay
No Static method 'overlay' in
Error in Alice_thresholds
Can you helpme?
Thank you in advance
To those who are looking to constrain parameters to a certain range, the easiest way is to constrain the Generator option. For example: Generator = @(x) (rand(3,1)); will only return results in the unit cube. You can also make your own Generator = @(x)myRand(x); to return only points in any domain you choose.