fullfile

这个我总是忽略,见过也不少了,顺便写写,其实一些命令很方便的。

一个例子:

root_dir = ‘../mcg/pre-trained‘;

addpath(root_dir);
addpath(fullfile(root_dir,‘lib‘));
addpath(fullfile(root_dir,‘scripts‘));
addpath(fullfile(root_dir,‘datasets‘));%你看,路径可以相加

fullfile(‘dir1‘, ‘dir2‘, ..., ‘filename‘)

f = fullfile(‘dir1‘, ‘dir2‘, ..., ‘filename‘)

解释:若文件‘100.hea‘ 的路径为‘D:\matalab\xindianshuju\wenjian\100.hea‘,那么 ‘dir1‘=‘D:‘;‘dir2‘=‘matlab‘;‘dir3‘=‘xindianshuju‘;‘dir4‘=‘wenjian‘;‘filename‘=‘100.hea‘

参考文献:

时间: 2024-08-02 19:17:59

fullfile的相关文章

matlab 把一个文件夹下的所有图片(可以包含在子文件夹下)考到指定文件夹下

clc;clear all; maindir = 'C:\Users\wang\Desktop\iLIDS-VID\i-LIDS-VID\images\cam2';subdir = dir( maindir ); % 先确定子文件夹 for i = 1 : length( subdir ) if( isequal( subdir( i ).name, '.' ) || ... isequal( subdir( i ).name, '..' ) || ... ~subdir( i ).isdir

Image Retrieval Using Customized Bag of Features

This example shows how to create a Content Based Image Retrieval (CBIR) system using a customized bag-of-features workflow. Introduction Content Based Image Retrieval (CBIR) systems are used to find images that are visually similar to a query image.

【转载】 Faster-RCNN+ZF用自己的数据集训练模型(Matlab版本)

说明:本博文假设你已经做好了自己的数据集,该数据集格式和VOC2007相同.下面是训练前的一些修改. (做数据集的过程可以看http://blog.csdn.net/sinat_30071459/article/details/50723212) Faster-RCNN源码下载地址: Matlab版本:https://github.com/ShaoqingRen/faster_rcnn Python版本:https://github.com/rbgirshick/py-faster-rcnn 本

winmail getshell源码分析(任意文件下载)

http://www.tuicool.com/articles/BFZ7Rze 根据此链接分析 winmail中全局变量全部在./inc/config.php中定义.如果出现变量覆盖漏洞则可以覆盖任意全局变量. 根据作者思路先看wap.php这个文件. switch ($dest){case 'index': include('../wap/index.php'); break; 当wap.php?dest=index时调用index.php文件 观察index.php(位于../wap/ind

Motion-Based Multiple Object Tracking

kalman filter tracking... %% Motion-Based Multiple Object Tracking % This example shows how to perform automatic detection and motion-based % tracking of moving objects in a video from a stationary camera. % % Copyright 2014 The MathWorks, Inc. %% %

(五)乱入之如何使用MNIST数据库

(五)乱入之如何使用MNIST数据库 今天花了整整一天时间查各种资料,终于搞清楚了怎么使用MNIST数据库.哈哈,MNIST,是不是高端洋气上档次?是不是不知道是什么东东? MNIST是一个据说很出名的手写数字数据库,据说是美国中学生手写的数字,说实话大部分都写得挺丑的...Anyway,幸好能看得懂是哪个数字.现在课题是用CNN(卷积神经网络)识别这个数据库的数字.我想,CNN还真没懂,不过先搞清楚怎么读入数据库吧,不然空有理论无法实操.一般人会用MATLAB来做神经网络的东东,而我正是一个一

人脸识别之特征脸方法(Eigenface)

人脸识别之特征脸方法(Eigenface) [email protected] http://blog.csdn.net/zouxy09 因为需要,花了一点时间写了下经典的基于特征脸(EigenFace)的人脸识别方法的Matlab代码.这里仅把该代码分享出来.其实,在较新版本的OpenCV中已经提供了FaceRecognizer这一个类,里面不仅包含了特征脸EigenFace,还有FisherFace和LBPHFace这三种人脸识别方法,有兴趣的可以参考OpenCV的API手册,里面都有很详细

如何用.net c# 读取epub格式文件

如何用.net(c#)读取epub格式文件 epub格式是印刷出版界常见的格式,本格式遵循XML原则把网页进行压缩打包. 如何用c#读取epub格式文件是个头疼的问题,本人搜遍各大网站,发现介绍都语焉不详. 因项目中要用的此功能,特做案例整理如下,仅供参考. // 动态库下载地址 https://epubreader.codeplex.com/,添加引用eBdb.EpubReader.dll // 头部增加引用 using eBdb.EpubReader; string fullfile = @

基于谱减法的声音去噪

转载请注明出处: http://xiahouzuoxin.github.io/notes/ 谱减法模型 实际听觉环境中,肯定是含有噪声的,那掺杂有噪声的声音信号中原声音信号和噪声信号是如何体现的呢?一种普遍被使用的方法是:采集到的声音信号永远都是原信号与噪声信号的叠加,即 模型是信号的直接叠加,这就要满足:原信号与噪声信号不相关.其实有些情况下这个条件是不满足的,所以依然有很多其他的模型,如有人认为原信号和噪声信号是卷积的关系.当然,这些都是模型,还没有明确的理论证明那种是对的,反正哪种好用我们