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

Answered

What frustrates you about MATLAB? #2

Before I started using Python this year, I was a happy MATLAB user. I still like MATLAB because I am efficient in it, but here a...

What frustrates you about MATLAB? #2

Before I started using Python this year, I was a happy MATLAB user. I still like MATLAB because I am efficient in it, but here a...

4 months ago | 5

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...

2 years 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...

2 years 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...

2 years 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...

2 years 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.

3 years 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...

3 years 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...

3 years 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...

3 years 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...

3 years 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...

3 years 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,...

3 years 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...

4 years 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...

4 years 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...

4 years 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...

4 years 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...

5 years 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...

5 years 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...

5 years 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 (...

5 years 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...

5 years ago | 1 answer | 0

Submitted

Fourier differentiation

Fourier spectral differentiation of a periodic real function

5 years ago | 4 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...

5 years 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...

5 years 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.

5 years ago | 1 download |

Submitted

Chebyshev to monomial basis

Chebyshev to monomial basis conversion

5 years ago | 2 downloads |

Submitted

Monomial to Chebyshev basis

Monomial to Chebyshev basis conversion

5 years 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 ...

5 years ago | 0