質問


数值索引和逻辑索引哪个更快?
Index=find(Array==Element); Array(Index)=0 上述代码往往会被提示可以省略find,直接使用逻辑索引而不是数值索引。 省略一个函数调用当然会更快,这不难理解。 但如果Index还将要继续用于后续其它数组的索引...

2年以上 前 | 1 件の回答 | 1

1

回答

回答済み
无法加载产品文件。产品文件与输入文件必须在同一文件夹内
请提供错误截图

2年以上 前 | 0

回答済み
gui中,使用ginput获取屏幕上的点,响应速度越来越慢
你这个函数本身不会造成响应变慢,应该是其它代码的问题。

2年以上 前 | 0

回答済み
非线性微分方程
>> s = dsolve(eqn,cond) 警告: Unable to find symbolic solution. 没有精确解。 这没什么奇怪的,一个一般的微分方程大概率没有精确解。

2年以上 前 | 1

回答済み
无法连接网络,启动matlab立即报错
你MATLAB安装有问题,卸载重装吧

2年以上 前 | 0

回答済み
我的MATLAB使用不了滑动条,应该是缺少uislider函数,但是不知道怎么修补
uislider是R2016a推出的函数,你是不是MATLAB版本太老? 如果版本没问题就是安装损坏了,卸载MATLAB重装吧

2年以上 前 | 0

回答済み
在使用ode45函数求解微分方程出错,无法执行赋值,因为左侧和右侧的元素数目不同
这种简单问题断点调试一下就行了

2年以上 前 | 0

回答済み
错误使用 sprintf 无法将 'matlab.ui.Figure' 值转换为 'int64'
gcf是当前图窗Figure对象,又不是一个数值,怎么可能用sprintf当作数值输出呢?你要输出图像编号的话就得手动指定一个数值编号

2年以上 前 | 0

回答済み
Is there any data type equivalent for queue?
parallel.pool.PollableDataQueue As revealed by the package name, it can be shared among parallel workers.

2年以上 前 | 0

質問


What's the best way to prevent a class from being instantiated?
I want this class to be completely static and can never be instantiated. It only contains a bunch of static methods and constant...

2年以上 前 | 1 件の回答 | 0

1

回答

回答済み
Why do I get a permission denied error in regards to classpath.txt or pathdef.m when starting MATLAB?
This is a very ugly design! All path settings should be user-wide instead of system-wide by default! MATLAB default pathdefs sh...

2年以上 前 | 1

質問


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...

約3年 前 | 1 件の回答 | 0

1

回答

質問


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...

約3年 前 | 1 件の回答 | 0

1

回答

質問


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...

約3年 前 | 2 件の回答 | 0

2

回答

回答済み
save problem: -STRUCT must be the name of a scalar structure variable
save(filename,'-fromStruct',test);

約3年 前 | 1

質問


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年 前 | 1 件の回答 | 1

1

回答

質問


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年以上 前 | 1 件の回答 | 0

1

回答

質問


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年以上 前 | 1 件の回答 | 0

1

回答

回答済み
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年以上 前 | 3

質問


How to perform image registration on GPU
imregister does not support GPU unfortunately. Are there any workarounds? I have hundreds of millions of images to register and ...

4年弱 前 | 1 件の回答 | 0

1

回答

質問


Why the rows are the first dimension of array by design?
I know it's impossible to change now because of the compatibility burden. But why did the first developers decided to use rows a...

4年弱 前 | 1 件の回答 | 0

1

回答

質問


How to shut down connection to Arduino device when the arduino variable is not in the workspace?
The arduino object is cleared from the workspace, but the connection remains, because I can't create a new connection. MATLAB to...

約4年 前 | 0 件の回答 | 0

0

回答

質問


MatFile grows exponentially larger in an empty table replacement loop?
First create a MatFile: a=matfile("Test.mat"); Then create an empty table: a.Data=table('Size',[0 1],'VariableTypes',"uint8")...

4年以上 前 | 1 件の回答 | 0

1

回答

回答済み
如何制作彩色幻影坦克?How to generate an ARGB Mirage Tank?
自己解决了这个问题,分享一波~ function varargout = MirageTankV2(Image1,Image2,varargin) %输入两张图,制作幻影坦克! %Image1和Image2三个维度视为列、行、G/AG/RGB/ARG...

4年以上 前 | 0

| 採用済み

質問


如何制作彩色幻影坦克?How to generate an ARGB Mirage Tank?
网上的教程都是黑白的,还要用到PS。我想幻影坦克不就是利用了Alpha通道么?用MATLAB应该也能做吧?求大佬指教! A Mirage Tank is a specially made PNG image that show different col...

5年弱 前 | 1 件の回答 | 1

1

回答

回答済み
How to avoid error when whether the function has returns is unknown?
This is my workaround: function Output = PairArrayArrayfun(Function,Array1,Array2,ArrayDimension,UniformOutput) CatDimension=m...

5年弱 前 | 0

| 採用済み

質問


How to avoid error when whether the function has returns is unknown?
function Output = PairArrayArrayfun(Function,Array1,Array2,ArrayDimension,UniformOutput) CatDimension=max(ndims(Array1),ndims(A...

5年弱 前 | 3 件の回答 | 0

3

回答

質問


How to gracefully generate an all-one cell array?
An all-one array can be gracefully generated by ones(...) But what if I want an all-one cell array? function Output=OnesInCell...

5年弱 前 | 1 件の回答 | 1

1

回答

質問


Why can't I start my local cluster?
Win10 1903. Any possible reasons?

5年弱 前 | 0 件の回答 | 0

0

回答

さらに読み込む