Feeds
提问
How to create struct of cell arrays
Hi all, I have found i can create a struct of empty cell arrays as follows (in R2018b): struct("a", {cell(0)}, "b", {cel...
2 years 前 | 1 个回答 | 0
1
个回答提问
Convert matlab index vector to 2D array based on gaps
Hi all, I am asking to get feedback on my code and see if there are other ways to programme this basic algorithm more efficie...
2 years 前 | 1 个回答 | 0
1
个回答提问
Name of islocalmin algorithm
Hi all, Hopefully this is a simple question. Do any of you know the name of the algorithm used by MATLAB's "islocalmin" functi...
2 years 前 | 1 个回答 | 0
1
个回答已回答
inputparser addOptional seems broken
its always a bit strange to answer your own question, but here's the code to take 1 or 2 optional parameters assert(numel(var...
inputparser addOptional seems broken
its always a bit strange to answer your own question, but here's the code to take 1 or 2 optional parameters assert(numel(var...
3 years 前 | 0
提问
inputparser addOptional seems broken
It seems that if I use addOptional I cannot skip arguments For example, if I wish to have an optional array but I simply pass a...
3 years 前 | 1 个回答 | 0
1
个回答已回答
Clean way of writing a setter that can set nested private properties
Further responses are welcome this query, but here is one clunky alternative using a helper set_ function that takes in the base...
Clean way of writing a setter that can set nested private properties
Further responses are welcome this query, but here is one clunky alternative using a helper set_ function that takes in the base...
3 years 前 | 0
| 已接受
提问
Clean way of writing a setter that can set nested private properties
Is there a clean way to write a setter for private properties/members that can accept nested properties? Something with an API ...
3 years 前 | 1 个回答 | 0
1
个回答提问
Class methods in "private" subfolder
The documentation on classes seems to suggest I can place private functions in a private folder: https://www.mathworks.com/help...
3 years 前 | 1 个回答 | 0
