Open Live Script Download a ZIP file containing an E57 file, and then unzip the file. zipFile = matlab.internal.examples.downloadSupportFile("lidar","data/e57ParkingLot.zip");
saveFolder = fileparts(zipFile);
e57FileName = [saveFolder filesep 'parkingLot.e57'];
if ~exist(e57FileName,"file")
unzip(zipFile,saveFolder)
endCreate an e57FileReader object using the downloaded E57 file. e57Reader = e57FileReader(e57FileName);Check for CRS data in the E57 file by using the hasCRSData function. If the file contains CRS data, read the CRS data by using the readCRS function. if hasCRSData(e57Reader)
crs = readCRS(e57Reader);
disp(crs)
else
disp("No CRS data available.")
endNo CRS data available.
|