mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
moved rtabmap-ros-pkg project in this project
git-svn-id: http://rtabmap.googlecode.com/svn/branches/0.3/rtabmap@52 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
22
Matlab/ShowLogs/importfile.m
Normal file
22
Matlab/ShowLogs/importfile.m
Normal file
@@ -0,0 +1,22 @@
|
||||
function importfile(fileToRead1)
|
||||
%IMPORTFILE(FILETOREAD1)
|
||||
% Imports data from the specified file
|
||||
% FILETOREAD1: file to read
|
||||
|
||||
% Auto-generated by MATLAB on 07-Oct-2009 10:10:26
|
||||
|
||||
% Import the file
|
||||
rawData1 = importdata(fileToRead1);
|
||||
|
||||
% For some simple files (such as a CSV or JPEG files), IMPORTDATA might
|
||||
% return a simple array. If so, generate a structure so that the output
|
||||
% matches that from the Import Wizard.
|
||||
[unused,name] = fileparts(fileToRead1); %#ok
|
||||
newData1.(genvarname(name)) = rawData1;
|
||||
|
||||
% Create new variables in the base workspace from those fields.
|
||||
vars = fieldnames(newData1);
|
||||
for i = 1:length(vars)
|
||||
assignin('base', vars{i}, newData1.(vars{i}));
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user