Community Profile

photo

Xh Du


Active since 2015

Statistics

  • 首次审查
  • 感恩4级

查看徽章

Content Feed

查看

Question


Try to save structural variable, but not everything is saved
Hi all, I ran my code for a few hours and now I get some results. I'd like to save these data to a .mat file such that I can ...

5年前|1答案|0

1

answer

Question


Is it faster to operate a sparse matrix than a dense one when they have the same size?
大家好,想象一下我有2个相同大小的矩阵,都只有上三角形的部分,而且稀疏,它们的稀疏性就像...

5年前|2个答案|0

2

answers

Question


如何从其上三角细胞部分恢复方矩阵?
Hi all, I'd like to compute the upper triangular part only for a symmetric matrix in a block by block way. After some operat...

5年前|1答案|0

1

answer

Question


Put elements into corresponding locations of upper triangular matrix
Hi all, Imagine I have a vector: inpt = (1:6)'; Now I'd like to put elements of inpt in the upper triangular part of ...

5年前|2个答案|0

2

answers

Question


How to compute the indices of a square matrix?
大家好,想象一下我有索引:i,j,k,l,我为i = 1:1写作,j = 1:1 for k = 1:2 for l = 1:2 ...

5年前|2个答案|0

2

answers

Question


计算L1和Frobenius Norm的操作
Hi all, Imagine I have 2 same-length vectors, u1 and u2, and e = u1 - u2. I'd like to calculate 1. l1 norm of e; 2. Frobenius...

5年前|1答案|0

1

answer

Question


FPRINTF:到达屏幕末端时如何自动移动到新线路?
大家好,我有这样的东西:清除;CLC;对于i = 1:100 fprintf('%d',i)在这里结束,我使用fprintf进行...

5年前|5个答案|0

5

answers

Question


如何绘制L2 Norm Circle?
Hi all, I'm trying to visualize the l2 norm circle. It seems easy but I'm stuck. This is the code I write to plot the circle ...

5年前|1答案|0

1

answer

Question


Concatenate cell array along one dimension
大家好,我有一个像这样的单元格数组:cella = [12x2 double] [12x2 double] [12x2 double] [12x2怀疑...

5年前|1答案|0

1

answer

Question


Extract and realign cells into new cell
大家好,我有一个包含单元格的单元格数:cella = {2x1 cell} {2x1 cell} {2x1 cell} {...

5年前|1答案|0

1

answer

Question


仅通过存储对称矩阵的上三角部分来优化RAM成本?
大家好,我有一些对称(几乎密集的)矩阵,我只想存储上部三角形部分,以便我可以做...

5年前|2个答案|0

2

answers

Question


拉格朗日插值在2D中?
Hi all, I'd like to find the interpolating polynomials on a 2d domain. Imagine we have sample points (x1, y1), ... ,(xn, ...

5年前|1答案|0

1

answer

Question


MATLAB killed in Linux
Hi all, I'm running my code with a elasto-dynamics model, which has 300 degrees of freedom and 300 time steps, and this probl...

5年前|0answers | 0

0

answers

Answered
Dynamically update cell without clearing previous content?
解决方案:“ A”可以动态更新而无需特殊处理:清除;CLC;nr = 1;a =单元(1);为我...

5年前|0

|公认

Question


Dynamically update cell without clearing previous content?
大家好,我想动态更新单元格内容和大小,而无需清除先前的单元格内容。检查以下...

5年前|1答案|0

1

answer

Question


How to plot solid tetrahedrons in MATLAB?
Hi all, I have information of a mesh including coordinates of nodes and connectivity, how can I plot solid tetrahedrons in MA...

5年前|2个答案|0

2

answers

Question


Any recommendations for 3d FEM toolboxes in MATLAB?
大家好,我有一个有限的元素网格,包括从Abaqus导入的节点和连接性,看起来像这样:>> ca ...

5年前|0answers | 0

0

answers

Question


可变大小:计算完成后是否反映了实际尺寸?
大家好,我有一个程序,该程序可生产40227 x 50双矩阵。我想优化存储,所以我想检查我...

5年前|2个答案|0

2

answers

Question


内置功能与显式循环:MATLAB中哪个更快?
Hi all, I did some speed tests with implicit functions and explicit loops, both repeat 1000 times and calculate average time....

5年前|0answers | 0

0

answers

Question


避免循环,使用单元操作
Hi all, I've asked this question before but didn't get satisfied answer, so I'll change the way of asking. Say I have an ...

5年前|1答案|0

1

answer

Question


避免循环,使用单元操作to do: r2' * r1 * l1' * l2
嗨,说我有2简单1×2细胞,我like to perform operation like this: r2' * r1 * l1' * l2 to obtain a 2-by-2 mat...

5年前|0answers | 0

0

answers

Question


Surface plot with semilog z-axis: how to keep the same axis limit for iterative plots?
Hi all, I have an algorithm which generates 4 surfaces iteratively. I'd like to set the z-axis to semilog scale and keep the...

5年前|1答案|1

1

answer

Question


How to only perform the upper triangular part of matrix operations?
Hi all, I'm trying to solve this problem, where I have to use a nested loop like this: clear; clc; demo = zeros(4, 4)...

5年前|1答案|0

1

answer

Answered
How to avoid repeated computation when the result is a symmetric matrix?
Guess answer is in the comment, credit: Adam. https://uk.mathworks.com/matlabcentral/answers/332568-how-to-avoid-repeated-com...

5年前|0

|公认

Question


How to avoid repeated computation when the result is a symmetric matrix?
Hi all, When obtaining a symmetric matrix, we know that we only need to compute and store the elements of upper triangular pa...

5年前|1答案|0

1

answer

Question


Cellfun to extract arrays from multi-dimensional cell
Hi all, Imagine I have a 2-d cell, each cell element is a m by n matrix, I apply SVD on each element such that they are decom...

5年前|1答案|0

1

answer

Question


Cell in cell in cell...... versus multiDimensional cell
Hi all, Imagine now I have some data to be stored, say there are 24 matrices I need to store. I have 2 choices: 1. use cel...

5年前|2个答案|0

2

answers

Question


如何使用savefig将.fig保存到特定位置?
Hi all, I'd like to use savefig to save .fig files to a specific location, such as: savefig('test.fig') to here: ...

5年前|1答案|0

1

answer

Question


如何找出功能的依赖性?
大家好,对于一个函数,我想找出哪些脚本和函数正在调用它。例如,有一个函数:...

5年前|2个答案|0

2

answers

Question


如何以扎实的方式在不同类别的对象之间进行交流?
大家好,这是一个非常漫长的问题,感谢您的耐心等待!想象一下我有两个类似的课程:classDef beam ...

5年前|1答案|0

1

answer

Load more