Community Profile

# Marc

### W R Grace & Co

Active since 2013

#### Content Feed

View by

Extract numbers from mixed string.
There are probably better ways to do this but if this is always going to be the string and only the numbers are going to change,...

mer än 7 år ago | 1

| accepted

Solve nonlinear system equation with integral statement within the nonlinear system
You can try setting up the your function in a single function file, adding up F(1) and F(2) to say G and try minimizing G with s...

mer än 7 år ago | 0

| accepted

New Linear Model Class
Wanted to agree with Leah here. I ran into this in 2015b using lmfit along with tables to store data in excel and than analyze ...

mer än 7 år ago | 0

How to add two loops for two variables in a nonlinear ode
See nested functions... Basically you need to define a function that takes a and b as inputs, solves the ode with one of the ...

mer än 7 år ago | 0

for loop with cells and Excel
Unless I don't understand what you are doing, I think the error comes from you using ad_new = ad_ new(....) in the for loop. Yo...

mer än 7 år ago | 0

I have Statistics and Machine Learning Toolbox but cannot use allfitdist
Did you download allfitdist.m from the file exchange? This is not a Mathworks function. If you go back to the blog, there is a l...

mer än 7 år ago | 0

| accepted

Latin Hypercube of discrete and continuous variables
Does the MixedLinearModel class come close to what you are trying to do? Maybe you can start with that and then try and adapt...

nästan 8 år ago | 0

Data structure for mixed-type arrays - cellarray, dataset, structarray, struct of arrays, or other?
I thought about asking a question but was wondering if the "table" structure fits this. I cannot confirm when this data type wa...

nästan 8 år ago | 0

| accepted

Boxplot with vectors of different lengths
You can take a look at boxplot2 from GitHub which I think handles this. Otherwise, a simple work around is to pad your vector...

ungefär 8 år ago | 0

Need Help with Newton's Method for the Following code; keep getting errors
You may want to look into the following in the documentation: * @ or annonymous functions * preallocation Cleve Moler's r...

ungefär 8 år ago | 0

Generate a loop with Guassian Elimination for multiple values of one variable
All you are missing is preallocation of your solution matrix outside the loop. solnMat = zeros(length(F1),15); Inside the ...

ungefär 8 år ago | 0

How to solve an ODE with parameters calculated in another function?
I would try a brute force method having your ODE function calling the function for f(....) right before you set up your dy/dx eq...

ungefär 8 år ago | 0

The following code doesn't seem to work - it keeps running with no result (RK4 method)
You figure out your mistake yet?? Your code is just "fine"... But your function as you have it above is "wrong". Take a ...

ungefär 8 år ago | 1

| accepted

How to find eigen vectors?
I love questions like this... As I am always confused? Maybe it is the way you are setting it up in Wolfram but if you have t...

ungefär 8 år ago | 0

Parallel optimization with extra parameters (fmincon)
You can try a for loop... Something like this. a = 0:0.01:1; b = 0:0.01:1; mSize = max(size(a)); xNew =...

mer än 8 år ago | 0

Why is the built-in Cholesky function so much faster than my own implementation?
I am just guessing and based on the help information for chol() is that it uses sparseness as you increase the size of the matri...

mer än 8 år ago | 1

Question

Simulating Fortran common blocks with a nested function in Matlab.
I took some Fortran code and converted it into Matlab code. The Fortran code had a lot of common blocks being used to update va...

mer än 8 år ago | 1 answer | 0

### 1

Question

Time Series Data Analysis: Logical segmentation of phases of data
I have high speed mixing data of various materials and during this mixing phase, the materials go through distinct phase changes...

nästan 9 år ago | 0 answers | 0

### 0

ode45 with boundary conditions
Try using bvp4c or bvp5c for boundary value problems. ode45 is a initial value problem.

mer än 9 år ago | 1

How to tell loop how many values to skip?
It is definitely possible but your logic is not very clear. Since you are choosing odd intervals, is there some underlying reas...

mer än 9 år ago | 0

Does curve fitting toolbox support 3D points?
Maybe I am not getting it but the current curve fitting tool allows for x, y and z data so there is 3D fitting support in the cu...

mer än 9 år ago | 0

Why do two optimization toolboxes produce two different results?
Without knowing more about your system... both seem to give similar answers. hi2 = [15.8407983652723 224712.855054258 49190.7...

mer än 9 år ago | 0

Problem in using fsolve
Taking Star Strider's approach, I compared "patternsearch" with "fsolve". For patternsearch, I used the following objective fun...

mer än 9 år ago | 0

My input method isn't working?
I think you want to define your function Lorentz(t,L). Also, in your call to Ode45, I think you want to indicate Lorentz as t...

nästan 10 år ago | 0

Matlab for aiding Wind Turbine Blade Design
The combination of Simulink/SimMechanics/Stateflow could be a very powerful tool for this. I think there are some examples out ...

nästan 10 år ago | 1

| accepted

Is there a 3d equivalent of impoly and related functions?
You may want to look at "geom3d" in the file exchange or simply google it. There is a lot of functions in this toolbox to creat...

nästan 10 år ago | 0

Basic question from Matlab beginner
For plotting Wage vs. Age, see anonymous functions ('@'). You can define the range for your age and using the coeficients you f...

nästan 10 år ago | 0

Looking for a mechanical or magnetic pick-up tool that is controllable with Simulink/Matlab.
You can try the Lego Mindstorms NXT projects through the file exchange. Even with these, you are going to have to roll up yo...

ungefär 10 år ago | 0