Jan
It is easier to solve a problem than to guess, what the problem is.
问题about FileExchange submissions are welcome - get my address from the code. I do not answer mails concerning questions in the forum.
统计数据
内容提要
why is my vector empty
对于i = 1:size(a,1)disp(double(a {i}))结束i = size(a,1)。然后:行_ =(double(a {i}));是ASCII值的向量。
etwa 6 Stunden ago | 0
Add a textbox in a subplots inside a loop
Move the repeated code out of the loop to simplify the code: z = [0.44, 4.7, 7, 8, 17.9, 31, 57]; dim = [.2 .5 .3 .3]; c ...
etwa 6 Stunden ago | 0
Why does mldivide solve equations so fast that FORTRAN can't compare it?
MATLAB的矩阵部门没有公开。使用内部优化的BLAS库和MKL。Taskmanager ...
etwa 6 Stunden ago | 0
将二进制矩阵转换为十进制。
错误消息是明确的:BIN2DEC需要一个char矢量为输入或单元字符串。请参阅:DOC BIN2DEC您提供数值...
etwa 12 Stunden ago | 0
How to normalize a matrix in such a wat that every row sum of X(:,:,i) should be 1 except for ith row
x = rand(6,3,6);n = sum(x,2);n(sub2ind(尺寸(n),1:6,一个(1,6),1:6))= 1;y = x ./ n;现在sum(y(i,:,j))是1是i〜 = j ...
etwa 13 Stunden ago | 0
更快地循环/或如何切割时间
a = randn(50,1);b = randn(50,1);tic [aa,bb] = used_cells2(a,b);eloopc =长度(aa);eloopp =长度(bb);对于i = 1 :( eloopc)...
ein Tag ago | 0
find maximum number in a range of data
在最大(t(s1,6))中,您正在搜索在t(s1,:)的cobsatrix t(:)中。但是您将结果用作完整矩阵T中的索引。
ein Tag ago | 0
|accepted
我如何在不重叠的情况下绘制平方(100*100 m^2)的圆形尺寸?
This is an extremly challeging task. See https://en.wikipedia.org/wiki/Circle_packing https://en.wikipedia.org/wiki/Circle_pac...
ein Tag ago | 1
cannot calculate mean on for loop
The elements of neg_m are overwritten repeatedly in the inner loop. Maybe you want: for ni = 1:35 neg_m(ni, :) = mean(resh...
3Tage ago | 0
How to make the negative sign in the legend easier to see?
strcat removes interior spaces. This is not useful here and it is not in general. I consider this as a design error. Use cat in...
3Tage ago | 0
|accepted
索引超过数组元素的数量(1)
替换为j = 1:n-1 by j = 1:i-1顺便说一句,您可以写入s = 0;j = 1:i -1 s = s + u(i,j) * x(j);...
3Tage ago | 1
|accepted
How can I create three different axis?
参见例如:https://www.tianjin-qmedu.com/matlabcentral/fileexchange/67349-plot-with-with-multiple-multiple-y-axes https://www.tianjin-qmedu.com/matworks.com/matl ...
3Tage ago | 0
|accepted
如何以一致的方式洗牌两个矩阵
I assume, X is a matrix and you want to shuffle the rows. Then: X = X(P, :); % ^
3Tage ago | 1
|accepted
How to get rid of a loop that depends on its previous iterations
Start with calculating the average manually instead of the slower mean() function: % Timings: R2018b, Win10, i7 data0 = rand(1...
4Tage ago | 0
|accepted
Check for equality in the contents of two arrays ignoring order
唯一的,setdiff,Union和Ismember在内部也调用该功能。因此,%断言(iSequal(stort(a),stort(b)))是一个非常e ...
6 Tage ago | 0
How to identify duplicate values in an n dimensional array , then club the linked values related to it in another array
a = [1 8 10 4;... 1 8 4 0];t = iSmultiple(a);b = a(t)%?或者您想要什么?a(t)= 0;功能...
7 Tage ago | 0
从function_handle不可能转换为double。
目标= 0(1、3);%的目标是两倍le for i = 1:Nc % And here you want to store a function handle in the d...
7 Tage ago | 1
为什么我写文件工作的功能不做?
"Not enough input arguments" might mean, that you call this function without inputs. Therefore the most important part of the co...
8 tage前|0
|accepted
Too many for loops, how to approach rearranging arrays problem differently?
Pre-allocate the output and avoid repeated calculations: a = 1:50; b = 10:50; tic aa = f2(a); bb = f2(b); for i = 1:le...
9 tage前|0
|accepted
Dot indexing is not supported for variables of this type - ISSUE?
从实验开始:img2 = reshape(img,[4,376,672]);rgb = permute(img2([3 2 1],:,::),[2,3,1]);图,图像(r ...
10级tage前|0
|accepted
Not enough Input arguments
Stephen hits the point: >>qardlecm This shows, that you call the function without input arguments. Perhaps you start it by cli...
11级tage |1
我的“情节”有一些问题
Did you update the graphic drivers and install all updates of Matlab? Try different graphic modes: opengl software opengl har...
11级tage |0
|accepted