We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fd5cd2 commit 0c135a4Copy full SHA for 0c135a4
1 file changed
mhkit/acoustics/analysis/apply_calibration.m
@@ -20,14 +20,19 @@
20
21
arguments (Input)
22
spsd struct
23
- sensitivity_curve {mustBeMatrix}
+ sensitivity_curve
24
fill_value {mustBeNumeric}
25
end
26
27
arguments (Output)
28
spsd_cal struct
29
30
31
+% check if sensitivity_curve is a matrix
32
+if ~ismatrix(sensitivity_curve) || size(sensitivity_curve,2) ~= 2
33
+ error('sensitivity_curve must be a matrix with two columns!')
34
+end
35
+
36
% check if 'freq' exists in spsd
37
if ~isfield(spsd, "freq")
38
error('"freq" is missing in spsd!')
0 commit comments