質問

Help on interp3 function (meshgrid compatibility error on input data)

Dear All, I am trying to use interp3 for my data which can be found at <http://www.mathworks.com/matlabcentral/fileexchange/?...

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

質問

2D integration over an area whose boundary is specified by Fourier series

Dear All, I have an arbitrary surface whose boundary is determined by a Fourier series in (r,z) coordinate system. This bound...

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

質問

How to calculate a function of multiple variables which also has an integral in its definition?

Dea All, I have the following function whose definition needs an integral to be evaluated. The integral itself is dependent o...

9年弱 前 | 2 件の回答 | 0

質問

Problem in mapping axisymmetric vector field to a 3D rectangular coordinate system

Dear All, I have a velocity vector field in axisymmetric coordinate system (r,z), where r is the radius (sqrt(x^2+y^2)) and z...

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

質問

How to preserve meshgrid compatibility after rotation

Dear All, I have generated a vector field in 3D. the coordinates are created by meshgrid. Now I need to rotate the domain 90°...

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

質問

Determining if a point is inside an triangulated 3D closed surface

Dear All, I have a 3D triangulated closed surface. How can I determine if a point is inside the surface? Regards, Ahmad...

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

質問

MATLAB will not start up after several crashes due to a bad MEX file

Dear All, I was debugging my MEX file because of a bug in the code. Each time the code runs, MATLAB crashes. I think it was a...

約9年 前 | 8 件の回答 | 1

質問

Why when I add mxDestroyArray(myArray) to my code MATLAB crashes?

Dear All, I have a problem with using mxDestroyArray. When I add it to my code, MATLAB crashes. Shouldn't I destroy any mxArr...

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

質問

MEX: Problem creating a cell matrix and assign it to the output

Dear All, By using a MEX file, I am trying to loop through array "group_ptr" with size 1000×1 to make a cell with size 4×1. g...

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

質問

Clustering faces of multiple triangulated 3D surfaces

Dear All, I have two matrices (F and V for faces and vertices) which contain the triangulation of bunch of points in 3D. F sh...

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

質問

Problem using mxGetPr for accessing array of type double

Dear All, I am using mxGetPr function to retrieve the data of an array of type double. #include "matrix.h" #include...

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

質問

How can I call "UNIQUE" function in a MEX file?

Dear All, How can I call "UNIQUE" function (or any other MATLAB function) in a MEX file? Thanks, Ahmad

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

質問

ISOSURFACE: identifying the connected faces

Dear All, I have extracted the isosurfaces of variable "A" in a 3D volume data. For a specific value of "A", say A=1, I get t...

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

質問

SLICE: Hiding the edges of slice

Dear All, I have sliced the volume data using slice function. Now I want to hide the edges of its mesh. How can I achieve thi...

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

質問

Can GRIDDATA interpolate a 3D triangulated closed surface to ordered structure?

Dear All, I have obtained a 3D triangulated closed surface from "isosurface" function. Now I need to convert this surface fro...

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

質問

Integral of a vector dotted with unit normal over a triangulated surface

Dear All, I have obtained a triangulated surface by isosurface function in three dimensional space. I am trying to perform an...

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

質問

Convert an image pixel coordinate to physical coordinate

Dear All, I have a 2D array over the range xmin<x<xmax and ymin<y<ymax which contains the color intensity of each point. It l...

約9年 前 | 2 件の回答 | 2

質問

Vectorizing three nested loops

Dear All, How can I vectorize the following three nested loops? I tried using arrayfun but I did not succeed in doing it. ...

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

質問

convert randomly spaced data points to an image

Dear All, I have a set of randomly spaced 2D data and would like to convert it into an image. I want to create an image whose...

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

質問

GPU max function

Hi everyone, what is the equivalent statement for the following code using GPU? max(A,[],1) where A is a 1310720×2 ar...

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

質問

examine points which are inside a polygon by GPU

Hi All, Does anyone know how I can speed up inpolygon function by using GPU? Thanks.

10年弱 前 | 2 件の回答 | 0

質問

how to initialize an M×N array whose size is unknown in for-loop

Hi All, I am trying to read 150 text files. Each contains the value of x and y. x is the input of an experiment and y is the me...

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

質問

parfor (file reading)

Hi all, I am trying to use parfor in order to speed up the reading of 1000 ascii files. Each file is in the following format: ...

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

質問

negative r squared

I have fitted the line y=x which passes through origin to a bunch of data by using cftool. I got a negative r squared for the co...

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

質問

fitting 1D data to y=x polynomial (cftool)

In an experiment vector y is a measurement of vector x. I want to fit polynomial y=x to this data and find R^2. When I use polyf...

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

質問

Find

I have a matrix 10000×2, named A. The first column is x and the second column is y. I am trying to find the number of element wh...

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

質問

How do I smooth 2D vector field data?

I have a vector field in 2D. How can I smooth the data? I found smooth and smooth3 but it seems there is nothing for 2D. Could s...

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

質問

Parallel Processing

I am trying to read 8000 files in a for-loop. Is there any way that I can read the files in parallel to take advantage of a two ...

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

質問

Mesh generation for an arbitrary 3D closed surface

I have an arbitrary 3D surface and I want to generate some grids inside the surface like a CFD/FEM pre-processor to be able to d...

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