Error in interp1 (line 117) extptids = Xq < X(1) | Xq > X(end);
Afficher commentaires plus anciens
error : Index exceeds matrix dimensions.
Error in interp1 (line 117) extptids = Xq < X(1) | Xq > X(end);
Error in get_clk_corr (line 22) err = interp1(sp3.data(jj,sp3.col.TOW),sp3.data(jj,sp3.col.B),tsat,'linear',NaN);
Error in PreciseGPSReceiverPosition (line 113) PRN_obs = get_clk_corr(PRN_obs, sp3);
Input files obs and sp3 are structures. I have copied the structure data into excel and attached here.
7 commentaires
Stephen23
le 6 Août 2018
"I have copied the structure data into excel and attached here."
This is basically useless to us. Please upload the original structures in a .mat file.
Lakshmi Chodavarapu
le 6 Août 2018
Walter Roberson
le 6 Août 2018
Your first input is empty when you call the function.
Lakshmi Chodavarapu
le 7 Août 2018
@Lakshmi Chodavarapu: we don't have the input argument PRN_obs for function get_clk_corr.
"Not able to understand how the first input is empty when there are input files"
However in reality you have a bug and an error occurs. Code does not care what you understand / think / believe / assure / wish / want / .... If you want to find out why your code is not working, then you will have to:
- accept that there is a problem, possibly with the data or the input files.
- start debugging your code: use the debugging tools to view the variables just before the error occurs: what size does it have? Set breakpoint/s to stop then code when that variable is empty/has wrong values/.... Work your way backwards until you understand when the error occurs and why.
Lakshmi Chodavarapu
le 7 Août 2018
Lakshmi Chodavarapu
le 28 Août 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!