Matlab Error - when I want to plot time series for a few PS points

Dear all,

I would like to plot in Matlab time series for a few PS points, but after I click on the ‘TS plot’ button on resulted graph, I get the following error message:

4918 ref PS selected
Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information, click
Color Range: -87.0554 to 63.1659 mm/yr
Error: A BREAK may only be used within a FOR or WHILE loop, and then only within the same file as its corresponding FOR or WHILE
Error while evaluating UIControl Callback

How I can fix it?

Thank you in advance!

Best wishes,
Kinga I.

This definitely needs some more context.
I guess you are talking about StaMPS processing of interferograms exported by SNAP but how can we know this? Just posting a random error message won’t get you much help.
What is your data? What have you done with it so far? For which aim? At which step does the error occur? Only for this dataset or also for others? Which solutions have you already tried?
Without that information chances that someone understands your problem are probably low.

Thank you for your response.

Sorry for my short explanation.

I was refering to the Matlab processing. After unwrapping and estimating the mean velocity, I would like to plot time series for a few PS points. But when I click on the “TS plot” button on the results graph (using ps_plot(‘v-do’,‘ts’)) I get the above error message.

Which algorithm you use Single master or small baseline ?

I used single master algorithm.

I fixed the problem by installing an older version of Matlab (Matlab 2012).

Recently, I changed from Matlab 2013b to 2016b and meet the same problem.
I found in R2016b version that after you correct the “break” to “return” in the code of stamps ( “ts_plot.m” and “ts_plotdiff.m”) and the problem can be solved!


1 Like


I ran the PSInSAR process to the very last step where I used the command ps_plot(‘v-do’, ‘ts’); in matlab. I then tried exporting the CSV file using the command below:

load parms.mat;
ps_plot(‘v-do’, -1);
load ps_plot_v-do.mat;
lon2_str = cellstr(num2str(lon2));
lat2_str = cellstr(num2str(lat2));
lonlat2_str = strcat(lon2_str, lat2_str);
lonlat_str = strcat(cellstr(num2str(lonlat(:,1))), cellstr(num2str(lonlat(:,2))));
ind = ismember(lonlat_str, lonlat2_str);
disp = ph_disp(ind);
disp_ts = ph_mm(ind,:);
export_res = [lon2 lat2 disp disp_ts];
metarow = [ref_centre_lonlat NaN transpose(day)-1];
k = 0;
export_res = [export_res(1:k,:); metarow; export_res(k+1:end,:)];
export_res = table(export_res);

Got this error message at the end:

Error using vertcat
Dimensions of arrays being concatenated are not consistent.

I would be grateful for a solution. Thanks

I have this problem how do you fix it please tell me with kind regards!

I thank you for your cooperation thanks!

I have also got same problem, have you resolved it?

I have the same problem does anyone know how to solve it.

Thank you!!