Submitted

无符号 整数 与 逻辑 数组 互转 Unsigned Integer to and from Logical Array

本包可以将逻辑数组拼合为无符号整数，以及将无符号整数展开为逻辑数组

2 years ago | 2 downloads |

Solved

Undocumented MATLAB tricks No. 1 - Save a function-returned struct

Often we face the case when we want to save a function-returned struct to a mat file with each of its field as individual variab...

2 years ago

Problem

Undocumented MATLAB tricks No. 2 - Tell the parfor index

Your function is called in multiple for-loops, and the loop indices are given to your function. One of these indices are from a ...

2 years ago | 0 | 2 solvers

Problem

Undocumented MATLAB tricks No. 1 - Save a function-returned struct

Often we face the case when we want to save a function-returned struct to a mat file with each of its field as individual variab...

2 years ago | 0 | 5 solvers

Question

How to limit the usage of GPU to only one parallel worker?

Since the GPU memory is very limited, it can only undertake one job at a time, but much faster than the same job on CPU. Now I h...

2 years ago | 1 answer | 0

Question

How to declare a function as Static if it is defined as an individual file under the class folder?

In the class definition file we define Static functions as such: methods(Static) function SomeFunction() end end However, w...

2 years ago | 1 answer | 0

Solved

Dealfun (1.0)

*Short description.* Write a function _dealfun_: [y1,y2,...,yn]=dealfun(fhandle,x1,x2,...,xn) which evaluates the f...

2 years ago

Question

How to elegantly open or create new file for reading and writing but not discard existing contents?

If the file exists, open it for reading and writing, but don't discard existing content; else, create it. Isn't it a very commo...

2 years ago | 2 answers | 0

Answered

save problem: -STRUCT must be the name of a scalar structure variable

save(filename,'-fromStruct',test);

save problem: -STRUCT must be the name of a scalar structure variable

save(filename,'-fromStruct',test);

2 years ago | 1

Question

How to open a script in a running MATLAB instance with Windows Command Line?

Double-click a script file in Windows File Explorer will open the script in a running MATLAB instance if it exists. Only when no...

3 years ago | 1 answer | 1

Question

Can simscape products simulate a solar system?

I didn't find a way to set a series of free bodies that are only affected by gravity. Free bodies seem totally impossible in sim...

3 years ago | 1 answer | 0

Question

What is prodofsize?

I saw it in the document of cellfun, but it does not seem to exist as an actual function, i.e., it's impossible to call it direc...

3 years ago | 1 answer | 0

Answered

Every time I push to the remote GitHub repository, I have to re-input my username and password. Is there some way to avoid this by having MATLAB store this information?

I tried all steps given by these two answers and the document on https://www.mathworks.com/help/matlab/matlab_prog/set-up-git-so...

Every time I push to the remote GitHub repository, I have to re-input my username and password. Is there some way to avoid this by having MATLAB store this information?

I tried all steps given by these two answers and the document on https://www.mathworks.com/help/matlab/matlab_prog/set-up-git-so...

3 years ago | 3

Submitted

快速 跳转 当前 文件夹 快捷方式 Pwd Shortcut Quick Jump

设置命令行快捷方式，快速跳转当前文件夹到你常用的路径

3 years ago | 1 download |

Submitted

最强 Venn Chart 作图 双圈 三圈

全File Exchange最强的几何完备Venn作图工具包。只要几何上有可能实现的Venn图，就全都能给你作出来！支持任意方向变换、缩放、颜色调整，完全重合或无重合等特殊情况也不会出错！双圈三圈全部支持！

3 years ago | 1 download |

Submitted

Cody anti-cheat 反作弊

Cody挑战者们常用一些反常的数据类型绕过出题人的答案检查。这里列出一些常见的作弊方法。

3 years ago | 0 downloads |

Solved

Restricted Subtraction v1

This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...

3 years ago

Solved

Restricted Multiplication v1

This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...

3 years ago

Solved

Algorithmic Trading - 4 (two thresholds)

This is the fourth of a series of problems on quant trading. It builds on earlier problems 45776, 45860, and 45884 *Goal* ...

3 years ago

Solved

Algorithmic Trading - 3 (short selling and leverage)

This is the third of a series of problems on quant trading. It builds on earlier problems 45776 and 45860 <https://www.mathwo...

3 years ago

Solved

Algorithmic Trading - 2 (optimize Calmar Ratio)

This is the second of a series of problems on quant trading. It builds on earlier problem 45776 <https://www.mathworks.com/matla...

3 years ago