Commit 39713c4a authored by Simone Liuzzo's avatar Simone Liuzzo

try catch on magnet names

parent 3fbdc64d
......@@ -5,8 +5,11 @@ function [k,tilts,stdf,meanf]=sqcheck(ks,kn,diptilt,ax,largefig)
%
nm=size(ks,2);
nq=size(ks,1);
labels=ebs.qpname(1:length(ks));
try
labels=ebs.qpname(1:length(ks));
catch
labels=num2cell(1:length(ks));
end
labels{nq+1} = 'diptilt';
k=zeros(size(ks));
......
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