Community Profile

photo

Philip Caplan

MathWorks

Active since 2014

I'm an engineer at MathWorks. I previously studied aerospace engineering at MIT and mechanical engineering at McGill University.
Professional Interests: optimization, numerical methods, computational fluid dynamics

http://www.xkcd.com/979/

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Content Feed

View by

Answered
Runge-Kutta method for 2x2 IVP?
I have made some modifications to the shapes of the arrays in your code and changed the representation of the system of ODEs as ...

9 years ago | 0

| accepted

Answered
Getting Complex numbers for a (2equation+2unknown)
You can ensure 'sigma' and 'a' are treated as real variables by declaring them slightly differently. Instead of syms sigma ...

9 years ago | 0

| accepted

Answered
subs(): Unexpected simplification behaviour
As you mentioned, "subs" should return "Gr2 = 2*A -B". I have notified the development team here at MathWorks about this behavio...

9 years ago | 0

| accepted

Answered
Graphic object handle array in embedded matlab function in Simulink in R2014a or newer
Hi Stefan, you are correct. With the changes to the graphics system, you will need to allocate the "hVector" array differently. ...

9 years ago | 0

Answered
CTRL-C fails to halt execution in R2015a maci64
Please try to regenerate your MATLAB preferences using the instructions in the following link: <http://www.mathworks.com/matl...

9 years ago | 0

Answered
Out of bounds, don't know why and unit step function. Additionally what is unit-ramp function?
When you called "ode45", you were only passing in a scalar value for the initial condition. However, it looks like your "odefun"...

9 years ago | 0

Answered
How to shift a map, so that the Pacific Ocean will be in the center?
Here is an example of how to shift the x-coordinates of all the geometries stored in the 'concord_roads.shp': S1 = shaperea...

9 years ago | 0

| accepted

Answered
How to use the function 'fit' on array of data and create an array of 'fit objects'
Hi Eric - you cannot have arrays of "cfit" or "sfit" objects, which is the type returned by "fit". As such, you cannot index int...

9 years ago | 4

Answered
Quantum toolbox in Matlab
Which Quantum Toolbox are you referring to? MathWorks is not currently developing a Quantum Toolbox. Perhaps you are referring t...

9 years ago | 0

| accepted

Answered
Matlab 2014b using outdated OpenGL version
MATLAB R2014b is only using OpenGL version 2.1 functionality in Legacy mode. For the most part, the functionality used in MATLA...

9 years ago | 0

Answered
How to compute the functional derivative with respect to 'f(x)'?
The error you are receiving is due to the fact that "fu" and "fx" need to be functions of the same independent variable, otherwi...

9 years ago | 0

Answered
How do I call standalone MATLAB shared library (built with mcc) from C?
Based on the solution found in the following link, this sounds like it may be related to whether you are using Visual Studio or ...

9 years ago | 0

Answered
Plot 2D Charts with fints
Hi Jake, you can create a cell array to hold all the line styles you would like to use and then pass the indexed values to "plot...

9 years ago | 0

Answered
Problems downloading Matlab 8.4 for Mac (Yosemite)
Can you try to disable any antivirus software on your computer? Also, try adjusting the System Preferences to allow downloading ...

9 years ago | 0

Answered
how can I change Location values in a MSERRegions object?
Unfortunately, the 'Location' property of "MSERRegions" objects is read-only. Can you explain why you need to change this proper...

9 years ago | 0

Answered
Assigning two seperate EXCEL columns to two arrays in one go
It is only possible to import a rectangular range when using either "xlsread", "csvread" or "readtable", therefore, your columns...

9 years ago | 0

Answered
Mex (Matlab 2015a) - error "no supported compiler or SDK was found"
Are you missing a hyphen between g++ and the version number? In other words, try using "g++-4.7" instead of "g++4.7". Also, plea...

9 years ago | 1

Answered
How to take laplace transform of square(t) function
Since this is a homework problem, I'll only give some hints. The reason you are getting the error message "Input arguments must ...

9 years ago | 0

Answered
Generate wavelet cross correlation ceofficients using CWT?
From my understanding of the problem, it sounds like you would like to determine the correlation between a given wavelet and the...

9 years ago | 0

| accepted

Answered
Passing 3d arrays from .Net application to Matlab
Hi Evgeny, are you using the "ToArray" function? This function does change some properties while converting the array from MATLA...

9 years ago | 2

Answered
How can I use a 'fitobject' within a function?
You can pass additional parameters to your objective function by creating an anonymous function. Below is an example of passing ...

9 years ago | 1

Answered
Find real solution of system of algebraic equations (solved in Maple, but can't do it in Matlab)
In order to get a real solution to your system of equations, you need to tell MATLAB to assume your variables are real. You can ...

9 years ago | 0

Answered
Samsung Galaxy S 10.5
In order to use MATLAB on your Samsung tablet, you will need to install MATLAB Mobile which will enable you to access either the...

9 years ago | 0

Answered
I couldn't compile my c code with the shared library generated by matlab from m files. How can I resolve this?
This looks like a linker error where the implementations of "mxCreateDoubleMatrix", "mxGetPr", etc. were not found. Is the comma...

9 years ago | 0

Answered
Possible Bug in Copying Figures
There are some known issues when copying figures as EMF-files through the clipboard to Microsoft Word (mostly with Windows 8, hi...

9 years ago | 1

| accepted

Answered
Using builtin assignment for classes that overload the assignment operator '='
You are correct, your code does throw an error about recursion limits. However, I believe the operator you are interested in ove...

9 years ago | 0

| accepted

Answered
Failure to "open" an m-file in the editor
Lance - please try regenerating the MATLAB preferences for R2014b as described in the following link: <http://www.mathworks.c...

9 years ago | 0

Answered
Save GUI axes with legend to jpg
This is expected behavior because the axes object does not save an associated legend. You will need to make a separate call to "...

9 years ago | 0

Answered
Inputting a vector of data for statical analysis
Based on your application, I assume you mean that you have multiple efficiency values for each car. That is, by "vector of value...

9 years ago | 0

Answered
How to use Custom-defined link function with poisson regression
From my understanding of the question, it seems you would like to model the average, mu, of a response, y, to input variables, X...

9 years ago | 0

Load more