Answered
how can i solve a non-linear ode by ode45 or similar orders in matlab?
You won't be able to pose this as a problem for an ODE solver, since any standard ODE solver will require a finite domain over w...

9 years ago | 1

Answered
Hessian matrix using m-file
If you just need to compute the hessian matrix of a general function (often called a black box: you pass stuff into the black bo...

9 years ago | 0

Answered
Use Optimization Toolbox to optimise Linear regression model response
You already have the regression models? Now, given these models, you want to find some optimal point, based on some constraints?...

9 years ago | 0

Answered
How to calculate maximum up to current point?
cummax([3 8 10 6]) ans = 3 8 10 10

9 years ago | 1

Answered
Multi threaded matrix ldivide
Backslash works in an automatically multi-threaded form ONLY on dense matrices, and only for systems that are sufficiently large...

9 years ago | 0

| accepted

Answered
hi,I wanted to know, how can i generate a 3 bit sequential binary vector with up to only ONE 1?
Up to only ONE 1 means the number is any number (in decimal) from the set [0,1,2,4]. Pick an element at random from that set....

9 years ago | 1

Answered
Strange behavior of fmincon when analytical gradient is supplied
The very first thing I would do is use the 'CheckGradients" option for fmincon. Is it just vaguely possible that the gradient is...

9 years ago | 0

| accepted

Answered
Solving constrained linear equation
There are infinitely many solutions. If you need to generate all of them, get some coffee. So you cannot "solve" that equatio...

9 years ago | 0

| accepted

Answered
3D surface plot in linear regression model
No. You have a FOUR dimensional thing. This is not a surface in 3 dimensions. It is a surface in FOUR dimensions, thus Mass as a...

9 years ago | 0

| accepted

Answered
compress string of characters
Note that variable l (lower case L) is a really bad variable to use. BAD IDEA, since there is very little to distinguish between...

9 years ago | 0

Answered
Using fzero to find the second intercept of the two curves.
Do you need to provide a start point for fzero? (Yes.) Does fzero work best if you provide a bracket (two points), that surro...

9 years ago | 1

Answered
Solving multiple linear systems where A (the matrix to be inverted) is always the same
This is incredibly silly. Sorry, but it is. On the first iteration through, you solve the linear system phi = A\zeros(4...

9 years ago | 0

Answered
How can I connect points with line segments?
An alpha shape or delaunay triangulation are both wrong, because you are asking to draw lines between ALL pairs of points that a...

9 years ago | 0

Answered
using taylor series but variable store as <1x1>sym not returning any values
That is funny. Works for me. I think it works for you too. syms x; f=(sin(x)); t=taylor(f,x) t = x^5/120 - x^...

9 years ago | 0

Answered
Determine the location of max curvature for a set of data
If I had a nickel for every time someone asked a similar question, I won't say I'd be rich, but at least I'd get tired of rollin...

9 years ago | 4

| accepted

Answered
How can i have subvectors ?
Don't do it at all! Creating those numbered additional variables will make for incredibly messy, buggy, inefficient code, all...

9 years ago | 1

Answered
Is the speed of Variable Precision always faster than a Double Precision?
Huh? What are you asking here? Your title asks one thing, but then your description asks something completely different. ALMO...

9 years ago | 0

Answered
Maximum size for linear regression
There is NO maximum size. The only limit will be essentially a function of how much memory you have. Are you asking about...

9 years ago | 1

Answered
How to configure the matlab to use all core and processor of my system ?
On small problems, there is no gain by wanting to use multiple cores. So if you have code that has many tests, branches, and lot...

9 years ago | 0

| accepted

Answered
Take all possible combinations for more than 15 elements
In most cases of this sort, the answer is: You need to spend the money to buy a big enough computer to solve the problem. On ...

9 years ago | 1

Answered
Solving a system of equation (Ax=b) with a block of zeros
This is simply not true that having zeros on the diagonal prevents you from using A\b. A= rand(3); A = A - diag(diag(A))...

9 years ago | 1

| accepted

Answered
How to Use Interp function to get cartesian coordinates from arc lenth?
Walter is correct, in that interparc is a viable choice, because it does all the work for you in terms of computing the splines,...

9 years ago | 3

Answered
how to solve trigonometric equations
You have insufficient information to solve those equations. There are 5 equations. Unknowns? There are 6 unknowns: {alpha, be...

9 years ago | 1

Answered
[X,Y,Z] = cylinder(r) function explanation
Why not try it? r = linspace(1,5,25); [X,Y,Z]=cylinder(r); surf(X,Y,Z) I won't show you the plot, because you need...

9 years ago | 2

| accepted

Answered
Graph for a set of equations not giving correct results
Is it possible that you forgot to put H into your equation for v(n+1)? Well, I say, is it possible, but it seems quite obvious t...

9 years ago | 2

Answered
how can solve the ratio in matlab
Sigh. Has no one yet given you a useful answer yet? That is because this is simply not a question about MATLAB, in the sense tha...

9 years ago | 1

| accepted

Answered
Using gridfit to compute data for a hill chart
Gridfit is designed to extrapolate, and to do so as smoothly as possible. That is how it is written, and you will not change it....

9 years ago | 0

| accepted

Answered
I need to use LBP function on matlab 2008, is there anyway to do that?
If this is in a toolbox that was introduced after 2008, then you need to upgrade your MATLAB release, or you need to write the c...

9 years ago | 0

Answered
How to draw random polygons but with the same perimeter?
Since I'm the one who pointed out that the last question was not correct... This is trivial, in a sense. 1. Start with poi...

9 years ago | 2

Answered
Find equation for 3d data
Sorry, but in what universe do you think a polynomial would be an option to fit surfaces like that? :) Seriously, your surfac...

9 years ago | 0

Load more