mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Updated MATLAB scripts for showing logs
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@222 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function importfile(fileToRead1)
|
||||
function [Data] = importfile(fileToRead1)
|
||||
%IMPORTFILE(FILETOREAD1)
|
||||
% Imports data from the specified file
|
||||
% FILETOREAD1: file to read
|
||||
@@ -14,9 +14,8 @@ rawData1 = importdata(fileToRead1);
|
||||
[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}));
|
||||
if length(vars) > 0
|
||||
Data = newData1.(vars{1});
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user