Answered
How to write matlab code for Heat equation to find order of convergence using finite element method when exact solution is unknown
PDE Toolbox offers finite element functionalities for both 2D and 3D problem. Regarding the order of convergence without know...

9 years ago | 0

Answered
Error using arrayfun inside spmd function
I believe use of arrayfun (GPU) within spmd itself is supported. Will the following script give an error on your environment? ...

9 years ago | 0

| accepted

Answered
Undocumented way to output the smallest 3 eigenvalues of the 500 eigenvalues using eig?
As you have already figured out, eig always finds all the eigenvalues and does not have an undocumented option to find, for exam...

9 years ago | 1

Answered
Dealing with very high number like 2^1024 bit
One way to overcome the issue is to use the Symbolic Math Toolbox in MATLAB to evaluate expressions with more floating-point p...

9 years ago | 0

Answered
How can I make fft2 parallel?
Are you considering using gpu? fft2 is one of the built-in functions that support gpuArray. It requires Parallel Computing Tool...

9 years ago | 1

| accepted

Answered
Suptitle - is it possible to use with arguments besides text?
suptitle accepts one input argument, so try suptitle(['my number= ',num2str(num)])

9 years ago | 0

| accepted

Answered
scatter plot with different radius for different range of values
I know it's not as elegant as we hope, but one way is to create a new variable that represents the radius and then use scatter f...

9 years ago | 2

| accepted

Answered
I have one doubt, i have t=1x16x32 double, i need to store these into matrix form.
squeeze function could be of help. Please try t = rand(1,16,32); t_new = squeeze(t); whos t_new 32x16 matrix can b...

9 years ago | 0

| accepted

Answered
Reading a file and loading in to matlab.
If you are working on Windows system, I am guessing you can rename all the files to *.txt using the following command syste...

9 years ago | 0

Answered
Specifying the boundary conditions in the PDE toolbox
I don't think you can specify a boundary condition at a point inside the geometry. How's creating a small void inside the geome...

9 years ago | 1

Answered
Fluid flow & heat transfer using PDE toolbox
I assume that you are trying to solve a system of equations in an axisymmetric cylindrical domain, 2D r-z. Currently, PDE Toolbo...

9 years ago | 1

Answered
Move file into folder
How's trying filename = ['Slice_',num2str(i),'.png']; movefile(filename,newdir); instead of movefile('Slice...

9 years ago | 0

Answered
How can I refer the value from a matrix when I do 2-dimensional integral operation?
When performing integration, integral2 function provides fun with x,y as matrices, not necessarily scalars. In other words, the ...

9 years ago | 1

| accepted