Error running OSPREY tutorial

Hello,

I’m new to Osprey and have tried to run the tutorial. The job file and data load but I get an error during the Process data step (“Undefined function ‘addprop’ for input arguments of type ‘table’.”) and the results aren’t displayed. Matlab console output including version info are copied below.

Thank you.

Michael

addpath('C:Programs\spm12')
addpath(genpath(‘C:\Programs\osprey-v.2.4.0’))
Osprey
Timestamp September 16, 2022 13:46:32 Osprey 2.4.0 OspreyGUI
C:Timestamp September 16, 2022 13:47:00 Osprey 2.4.0
Timestamp September 16, 2022 13:47:00 Osprey 2.4.0 OspreyGUI
Timestamp September 16, 2022 13:47:04 Osprey 2.4.0 OspreyLoad
Loading raw data from dataset 1 out of 2 total datasets…
Software version: VD (!?)
Reader version: 1496740353 (UTC: 06-Jun-2017 09:12:33)
Scan 1/2, read all mdhs:
33.1 MB read in 1 s
Scan 2/2, read all mdhs:
33.8 MB read in 1 s

ans =

 0

multi RAID file detected.
Changed software version to VE.
Software version: VD (!?)
Reader version: 1496740353 (UTC: 06-Jun-2017 09:12:33)
Scan 1/2, read all mdhs:
33.1 MB read in 1 s
Scan 2/2, read all mdhs:
5.3 MB read in 0 s

ans =

Loading raw data from dataset 2 out of 2 total datasets…
Software version: VD (!?)
Reader version: 1496740353 (UTC: 06-Jun-2017 09:12:33)
Scan 1/2, read all mdhs:
33.1 MB read in 1 s
Scan 2/2, read all mdhs:
33.8 MB read in 1 s

ans =

 0

multi RAID file detected.
Changed software version to VE.
Software version: VD (!?)
Reader version: 1496740353 (UTC: 06-Jun-2017 09:12:33)
Scan 1/2, read all mdhs:
33.1 MB read in 1 s
Scan 2/2, read all mdhs:
5.3 MB read in 0 s

ans =

 0

multi RAID file detected.
Changed software version to VE.

… done.
Elapsed time 17.495421 seconds
Timestamp September 16, 2022 13:47:27 Osprey 2.4.0 OspreyProcess
Processing data from dataset 2 out of 2 total datasets…

… done.
Elapsed time 11.295934 seconds
Undefined function ‘addprop’ for input arguments of type ‘table’.

Error in OspreyProcess>calculate_QM (line 862)
MRSCont.QM.tables = addprop(MRSCont.QM.tables, {‘VariableLongNames’}, {‘variable’}); % add long name to table properties

Error in OspreyProcess (line 754)
MRSCont = calculate_QM(MRSCont);

Error in osp_onProc (line 36)
MRSCont = OspreyProcess(MRSCont);

Error while evaluating UIControl Callback.

ver


MATLAB Version: 9.4.0.949201 (R2018a) Update 6
MATLAB License Number: 904098
Operating System: Microsoft Windows 10 Education Version 10.0 (Build 19043)
Java Version: Java 1.8.0_144-b01 with Oracle Corporation Java HotSpot™ 64-Bit Server VM mixed mode

MATLAB Version 9.4 (R2018a)
Simulink Version 9.1 (R2018a)
Audio System Toolbox Version 1.4 (R2018a)
Bioinformatics Toolbox Version 4.10 (R2018a)
Communications System Toolbox Version 6.6 (R2018a)
Computer Vision System Toolbox Version 8.1 (R2018a)
Control System Toolbox Version 10.4 (R2018a)
Curve Fitting Toolbox Version 3.5.7 (R2018a)
DSP System Toolbox Version 9.6 (R2018a)
Data Acquisition Toolbox Version 3.13 (R2018a)
Database Toolbox Version 8.1 (R2018a)
Datafeed Toolbox Version 5.7 (R2018a)
Econometrics Toolbox Version 5.0 (R2018a)
Embedded Coder Version 7.0 (R2018a)
Financial Instruments Toolbox Version 2.7 (R2018a)
Financial Toolbox Version 5.11 (R2018a)
Fixed-Point Designer Version 6.1 (R2018a)
Fuzzy Logic Toolbox Version 2.3.1 (R2018a)
GUI Layout Toolbox Version 2.3.5 (R2020b)
Global Optimization Toolbox Version 3.4.4 (R2018a)
HDL Coder Version 3.12 (R2018a)
HDL Verifier Version 5.4 (R2018a)
Image Acquisition Toolbox Version 5.4 (R2018a)
Image Processing Toolbox Version 10.2 (R2018a)
Instrument Control Toolbox Version 3.13 (R2018a)
LTE System Toolbox Version 2.6 (R2018a)
MATLAB Coder Version 4.0 (R2018a)
MATLAB Compiler Version 6.6 (R2018a)
MATLAB Compiler SDK Version 6.5 (R2018a)
MATLAB Report Generator Version 5.4 (R2018a)
Mapping Toolbox Version 4.6 (R2018a)
Neural Network Toolbox Version 11.1 (R2018a)
Optimization Toolbox Version 8.1 (R2018a)
Parallel Computing Toolbox Version 6.12 (R2018a)
Partial Differential Equation Toolbox Version 3.0 (R2018a)
Phased Array System Toolbox Version 3.6 (R2018a)
RF Toolbox Version 3.4 (R2018a)
Robotics System Toolbox Version 2.0 (R2018a)
Robust Control Toolbox Version 6.4.1 (R2018a)
Signal Processing Toolbox Version 8.0 (R2018a)
SimBiology Version 5.8 (R2018a)
SimEvents Version 5.4 (R2018a)
Simscape Version 4.4 (R2018a)
Simscape Fluids Version 2.4 (R2018a)
Simscape Multibody Version 5.2 (R2018a)
Simscape Power Systems Version 6.9 (R2018a)
Simulink 3D Animation Version 8.0 (R2018a)
Simulink Coder Version 8.14 (R2018a)
Simulink Control Design Version 5.1 (R2018a)
Simulink Design Optimization Version 3.4 (R2018a)
Simulink Real-Time Version 6.8 (R2018a)
Spreadsheet Link Version 3.3.3 (R2018a)
Stateflow Version 9.1 (R2018a)
Statistical Parametric Mapping Version 7219 (SPM12)
Statistics and Machine Learning Toolbox Version 11.3 (R2018a)
Symbolic Math Toolbox Version 8.1 (R2018a)
System Identification Toolbox Version 9.8 (R2018a)
Wavelet Toolbox Version 5.0 (R2018a)
Widgets Toolbox - Compatibility Support Version 1.4.0 (R2020b)

Hi Michael,

I think this is related to your Matlab version. The documentation for the Matlab function “addprop” says it was introduced in version 2018b.

Meredith

Hi Michael,

I agree with Meredith, this sounds like a version thing indeed. Can you try with 2018b? (We’ve definitely tested previous Osprey versions with 2017a, but for active development, we’ve largely switched to 2020a and later - sometimes a new handy function just creeps in…).

Cheers,
Georg

Thanks Meredith and Georg.
I updated Matlab and that cleared the error.
I appreciate your help.

Michael

2 Likes