Commit 802e0226 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

added sofa dummy files that will give an error message and hint to call ita_sofa_install

parent 21afc987
......@@ -18,7 +18,7 @@ function varargout = ita_sofa_install(varargin)
% Author: Jan-Gerrit Richter -- Email: jri@akustik.rwth-aachen.de
% Created: 04-Apr-2018
if ~exist(['SOFAstart.m'],'file')
if ~exist(['SOFAgetVersion.m'],'file')
% the sofa link from github
url = 'https://codeload.github.com/sofacoustics/API_MO/zip/master';
......@@ -46,7 +46,10 @@ if ~exist(['SOFAstart.m'],'file')
% delete zip file
fprintf('.\n')
delete(fullfile(path,'sofa.zip'))
% delete the dummy functions
fullpath = fileparts(which('SOFAstart.m'));
rmdir(fullpath,'s')
% add folder to path
addpath(genpath([path(1:end-16) 'sofa/API_MO-master/API_MO']));
ita_path_handling();
......
function dbPath=SOFAdbPath(newPath)
% DUMMY FILE
error('SOFA IS NOT INSTALLED. CALL ITA_SOFA_INSTALL')
\ No newline at end of file
function Obj = SOFAgetConventions(sofaconventions,flags)
% DUMMY FILE
error('SOFA IS NOT INSTALLED. CALL ITA_SOFA_INSTALL')
\ No newline at end of file
function Obj = SOFAload(fn,varargin)
% DUMMY FILE
error('SOFA IS NOT INSTALLED. CALL ITA_SOFA_INSTALL')
\ No newline at end of file
function [Obj] = SOFAsave(filename,Obj,varargin)
% DUMMY FILE
error('SOFA IS NOT INSTALLED. CALL ITA_SOFA_INSTALL')
\ No newline at end of file
function SOFAstart(flags)
% DUMMY FILE
error('SOFA IS NOT INSTALLED. CALL ITA_SOFA_INSTALL')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment