*snipped subfunctioncopied from inside interp1.m included as part of MATLAB* here is the output: What is the meaning of X and V? I am new to app designing. Errorusing interp1>reshapeAndSortXandV (line 423) Xand V must be of the same length. ...
Open in MATLAB Online Background: I have a matrix with a pattern of: u_mat = NaN NaN 6.8447 6.9980 7.0233 NaN NaN NaN 6.6319 6.6112 6.6561 6.7728 6.7561 NaN 6.2778 6.1201 NaN NaN NaN 6.4740 6.6144 5.8741 5.9870 NaN NaN NaN 6.2162 6.2128 ...
Open in MATLAB Online The error happens because "interp1" requires the values of "x" to be distinct. >> unique_x=unique(x); returns a 1x4 vector. Meaning there are duplicate values. I suggest using the following instead: [~, ind] = unique(x)% ind = in...