# AP

Last seen: 2 months ago Active since 2011

Followers: 0   Following: 0

All

#### Feeds

View by

Question

Inputting simulation data to Simulink
I am trying to implement the following controller in Simulink. The input is an array of size N×1, which exists in MATLAB worksp...

2 years ago | 1 answer | 0

### 1

Question

Finding the edges of an ellipse in an image
I have an binary image as shown below. <</matlabcentral/answers/uploaded_files/37057/LeadingVortex_No_Ellipse.jpg>> As can...

8 years ago | 2 answers | 0

### 2

Question

Solving a system of nonlinear equations
I have about 1000 measurement which relates three variables to each other: |x|, |y|, and |z|. In other words, I have 1000 measur...

9 years ago | 1 answer | 0

### 1

Question

Imposing a prescribed motion field to a grayscale image
I have a grayscale image with intensity distribution |I1(i,j)|. I am trying apply a motion field u(i,j), v(i,j) where |(i...

9 years ago | 2 answers | 0

### 2

Question

Determining the separability of a 3D kernel
I have three kernels of size |2×2×2| (as define below by |ker1|, |ker2|, |ker3|). I wanted to know how I can determine whether t...

9 years ago | 0 answers | 0

### 0

Question

Model Reduction of a Noisy 2D Experimental Data
I am trying to understand the following |MATLAB| code: Reduce(Reduce(u)) where |u| is a |n×m| matrix and is a 2D measu...

9 years ago | 0 answers | 0

### 0

Question

mexCallMATLAB crashes for dynamically allocated mxArrays
Could someone kindly help me fix the issue that I have in using dynamically allocated mxArrays? In the example code below, MATLA...

9 years ago | 1 answer | 0

### 1

Question

Problem in using mxSetPr
I am writing a function within in a |mex| file which calls a |MATLAB| function. Unfortunately, when it comes to |mxSetPr|, |MATL...

9 years ago | 1 answer | 0

### 1

Question

Taking a special image derivative using convolution
I have two images at different times. The first image is |im1| at time |t1| and the second image is |im2| at time |t2|. I want t...

9 years ago | 0 answers | 1

### 0

Question

Most Efficient Way of Using mexCallMATLAB in Converting Double* to mxArray*
I am writing a |MEX| code in which I need to use |pinv| function. I am trying to find a way to pass the array of type |double| t...

9 years ago | 1 answer | 0

### 1

Question

A problem in running a MEX file in a consistent way
I have written a |MEX| file. This file compiles successfully with no problem. For some reasons, which I am really baffled, this ...

10 years ago | 1 answer | 0

### 1

Question

How can I label a solution as NaN in a MEX code?
I am using solvers of |LAPACK| libraries in a |MATLAB| |MEX| file for solving linear system of equations. For some of the cases,...

10 years ago | 2 answers | 0

### 2

Question

Problem in using the "-g" option of mex
I have written a |MEX| file which is successfully built by: mex -v mymex.cpp However, when I want to add the debug inf...

10 years ago | 1 answer | 0

### 1

Question

Defining a function (including vector dot product) for all the points in 3D
I am trying to build the following function in a three dimensional domain. <</matlabcentral/answers/uploaded_files/13670/Un...

10 years ago | 2 answers | 0

### 2

Question

Problem in using bsxfun
I have two arrays in MATLAB: A; % size(A) = [NX NY NZ 3 3] b; % size(b) = [NX NY NZ 3 1] These two arrays are ver...

10 years ago | 1 answer | 0

### 1

Question

Custom subarray of a multidimensional array
I have an array |A| which has a size |[N1 N2 N3 3 3]|. Array |A| can be considered as a rectangular box in three dimensions that...

10 years ago | 1 answer | 0

### 1

Question

How to vectorize the multiplication of arrays with DIM=5?
I have a three dimensional domain in MATLAB. For each point in the domain I have defined three arrays of size |(NX,NY,NZ)| at ea...

10 years ago | 0 answers | 0

### 0

Question

Finding the repetition of each element of a matrix
I have a matrix named A with size N×3. For example, A = [ 1 2 3; 1 4 5; 5 6 7; ...

10 years ago | 2 answers | 0

### 2

Question

Mapping elements of a matrix using a vector array
I have a matrix named A with size N×3. The values of the elements of A ranges from 1 to M. For example, A with size 8×3: A ...

10 years ago | 1 answer | 1

### 1

Question

Replacing all the elements of one matrix with new values (one to one mapping)
I have a large matrix of size 50000×3. I would like to replace the values of the elements with a new values. To illustrate my pr...

10 years ago | 1 answer | 0

### 1

Question

Changing the radial range in a polar plot
Dear All, I would like to change the radial range of a polar plot. How can I change the following plot such that radius range...

10 years ago | 1 answer | 0

### 1

Question

Deploying 32bit applications using MATLAB 64bit
Hello All, May I know how I can deploy a MATLAB code into a 32 bit application using MATLAB 64bit running under Windows 7 64b...

10 years ago | 1 answer | 0

### 1

Question

vectorizing calculation of eigen values of a large multi-dimensional array
Dear All, I have a 3D rectangular domain. Each point is associated with a vector(u,v,w) through time. u, v, and w are of size...

11 years ago | 2 answers | 1

### 2

Question

How to vectorize a for loop with an if condition inside
Dear All, How can I vectorize the following loop? Basically, I have a structured grid in whose node ids are stored in a array...

11 years ago | 1 answer | 0

### 1

Question

writing a buffer of 80 characters to file in a binary format
I am trying to translate the following snippet which is in C. char buffer[80]; strcpy(buffer,"Velocity"); fwrite(buff...

11 years ago | 3 answers | 0

### 3

Question

Is it possible to use C++ string and sstream in MATLAB MEX?
Dear All, Is it possible to use C++ string and sstream in a MATLAB MEX file? The following is a part of my code in which I am...

11 years ago | 0 answers | 0

### 0

Question

Problem using Intel MKL with MEX
Dear All, Is it possible to use Intel MKL 10.3 in MEX? I am having problem in using MKL 10.3 along with MEX. I have no proble...

11 years ago | 1 answer | 0

### 1

Question

Problem in specifying dependent library files by using MEX switches
I am trying to find the instructions for specifying the dependent library files as well as the path for compiling a c++ MEX file...

11 years ago | 4 answers | 0

### 4

Question

Apply a mask to 4D medical images in a vectorized way
Dear All, I have a 4D array V, with the size [144 144 12 25]. In fact, it is a 4D medical image with 12 stacked slices in 25 ...

11 years ago | 2 answers | 0