MATLAB: Error Explanation Error: File: C.m Line: 169 Column: 5 This statement is not inside any function. (It follows the END that terminates the definition of the function “readeph”.)
errorMATLAB
question complete
Best Answer
I edited the function for you ...starting with fixing the indention to be consistent by block...which shows when you get back to original level you've closed the last block for the function() definition prematurely.
I removed all th top comments and other preparatory work at beginning of the file to let the issues be more easily visible in a very long function file...you can reinsert that or move the edits over (or ignore them as see fit).
function [gpseph,galeph,bdseph,gloeph] = readeph(file_name) % REMOVE trailing ":"
Best Answer