I have several classes in one single file each. Is there a quick way to convert them to @-folder classes? It’s a pain to transfer all single functions to separate function files once by once.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t need to move the existing methods from the
classdeffile: you can just move it to the @-folder and add new methods as separate M-files. Note that methods defined as M-files are always public, unless they’re in theprivatesubdirectory.Look at the
timeseriesclass as an example of a class defined using aclassdeffile and an @-folder. Should be in$matlabroot\toolbox\matlab\timeseries\@timeseries.