⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 read_data.m

📁 The MDP toolbox proposes functions related to the resolution of discrete-time Markov Decision Proces
💻 M
字号:
function [Map_Data]=read_data(file_name,m,n)% read_data   Reads racetrack data from a file and deduces a Map_Data matrix%             that represents the racetrack% Arguments --------------------------------------------------------------%     m = the number of lines of the track matrix;%     n = the number of rows of the track matrix;%     file_name = string containing the path to the data file.% Evaluation -------------------------------------------------------------%     Map_Data = the matrix that represents the racetrack.%--------------------------------------------------------------------------% In verbose mode, there is no difference to silent mode.%--------------------------------------------------------------------------% MDP Toolbox, INRA, BIA Toulouse, France%--------------------------------------------------------------------------% Reading the data into a mxn matrix;fid=fopen(file_name,'r');Map_Data=(fscanf(fid,'%5d',[m n])');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -