Professional Interests: differential equations, fluid mechanics, extended finite element method, MATLAB

Question

MATLAB returns empty string from C-MEX file

I have an external C function which takes a double pointer and returns a char. The problem is that when I interface that functio...

alrededor de 1 año ago | 1 answer | 0

Answered

2D Voronoi Diagram with Periodic Boundary Conditions

If you want to create a periodic 2D Voronoi tessellation, the main steps are the following: 1. Create the seeds on the orig...

2D Voronoi Diagram with Periodic Boundary Conditions

If you want to create a periodic 2D Voronoi tessellation, the main steps are the following: 1. Create the seeds on the orig...

alrededor de 1 año ago | 0

Question

Smallest non-zero eigenvalue for a generalized eigenvalue problem

I have two matrices, *A* and *B*, for which I want to solve the generalized eigenvalue problem *Ax*=lambda* *Bx*. In fact I only...

más de 1 año ago | 1 answer | 0

Question

Fast ismember for object arrays

I have an object oriented code which calls the _ismember_ function many times. I saw forum discussions recommending the unducume...

más de 1 año ago | 0 answers | 0

Question

Progress bar for file download

I would like to know how much of a file is downloaded when using *urlwrite*. It gives indication to the user about the process.

casi 2 años ago | 0 answers | 0

Question

Graphical issues when opening an OpenGL program from MATLAB

I use the finite element visualizer *GLVis*, based on OpenGL. When I run it from the terminal, it works as it should. However, w...

casi 2 años ago | 0 answers | 0

Solved

Pernicious Anniversary Problem

Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...

casi 2 años ago

Solved

The 5th Root

Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

casi 2 años ago

Question

parfor results core dump

MATLAB R2015b crashes on 64 bit Linux. I managed to track the cause of failure to this chunk of code values = cell(1, nElem...

alrededor de 2 años ago | 0 answers | 0

Question

Observe graphics object added to the axes

I have an axes object which contains several child objects (lines, patches, etc.). I have a function which sets the callback fun...

alrededor de 2 años ago | 1 answer | 1

Question

Should I indicate no input arguments to a function?

Suppose I have a function which requires no inputs. Should I indicate it with parentheses () or leave it naked? Both cases work,...

alrededor de 2 años ago | 1 answer | 0

Question

Why does the function 'details' show more than 'disp' for objects?

According to the documentation, the 'details' function provides more information when the input is an object than 'disp'. Howeve...

casi 3 años ago | 1 answer | 1

Question

Test suite for regular expressions

Where could I find a test package for regular expressions in MATLAB? There are many in different languages, but the MATLAB synta...

casi 3 años ago | 1 answer | 1

Question

Where is MATLAB's function browser in the Editor?

In older MATLAB releases (e.g. 2011a), there was an icon in the Editor which popped up the functions seen in an m-file so that I...

más de 3 años ago | 1 answer | 0

Question

Return output from the main function after a specific callback

I am building a GUI programatically. I created a *_main_* function which sets the GUI objects and their callback definitions. Af...

más de 3 años ago | 1 answer | 0

Question

Dependent property is shown in the variable editor even before its get method

I have a class with a dependent property. But even before I invoke its get method, its value is shown in the Variable Editor. Ho...

casi 4 años ago | 1 answer | 0

Answered

How to assign pointers to an object's property?

After thorough discussions, the answer can be found on <http://stackoverflow.com/questions/33543906/how-to-assign-pointers-to-an...

How to assign pointers to an object's property?

After thorough discussions, the answer can be found on <http://stackoverflow.com/questions/33543906/how-to-assign-pointers-to-an...

alrededor de 4 años ago | 1

| accepted

Question

How to assign pointers to an object's property?

I want to create a finite element object oriented program. I have a class *Node*. Since the nodes in a finite element mesh (repr...

alrededor de 4 años ago | 1 answer | 1

Question

How to call subclass constructor

I have a class *mesh1D*. I want to create an another class, called *crack* to be the subclass of *mesh1D*. My subclass has one (...

alrededor de 4 años ago | 1 answer | 0

Question

How to efficiently update an image if one matrix element is changed

I have a matrix in which I change only one element in every iteration of a loop. I want to display that matrix as an image using...

alrededor de 4 años ago | 1 answer | 0

Submitted

Fourier differentiation

Fourier spectral differentiation of a periodic real function

alrededor de 4 años ago | 2 downloads |

Question

File path containing %

I would like to get the path for directories containing % (like %MATLAB_ROOT%, %APPDATA%, etc.) in Windows. However, functions l...

más de 4 años ago | 1 answer | 0

Question

Can I use Visual Studio 2013 with MATLAB R2011a unofficially?

Has anyone experience if one can use the Microsoft Visual Studio 2013 compiler with MATLAB R2011a using <http://www.mathworks.co...

más de 4 años ago | 1 answer | 0

Submitted

Computational cost for Cramer's rule

Demonstrate the huge cost of Cramer's rule on a system of linear equations.

más de 4 años ago | 0 downloads |

Submitted

Chebyshev to monomial basis

Chebyshev to monomial basis conversion

más de 4 años ago | 1 download |

Submitted

Monomial to Chebyshev basis

Monomial to Chebyshev basis conversion

más de 4 años ago | 1 download |

Answered

rand matrix for FM

I recommend you to generate the matrix of the required size and then modify one element of it so that the sum holds. E.g. A ...

rand matrix for FM

I recommend you to generate the matrix of the required size and then modify one element of it so that the sum holds. E.g. A ...

más de 4 años ago | 0

Answered

How can i solve these systems of ODE

Well, you have to solve the system of BVPs several times for each different values of Gr, Pr and Sc. Then you can plot the data ...

How can i solve these systems of ODE

Well, you have to solve the system of BVPs several times for each different values of Gr, Pr and Sc. Then you can plot the data ...

más de 4 años ago | 0