Answered
Riots
See <http://www.schwartz-home.com/RIOTS/ Homepage of RIOTS>.

15 years ago | 0

| accepted

Answered
breakpoints
Assuming your breakpoints are sorted (I'll call them |breakpoints|), you could do something like this: x = 0.55; find(br...

15 years ago | 0

| accepted

Answered
Using odesolver with functions that have many inputs
The documentation in the link you provide probably applies to an older version of MATLAB than you have. Instead, create an <http...

15 years ago | 0

| accepted

Answered
general statistics problem: how to best characterize non-normal distributions
You should *NOT* use the peak of your distribution to estimate the mean, because it is not the mean. It is the mode. Since your...

15 years ago | 0

| accepted

Answered
Create string from a cell array
If you want to be sure that there are no whitespace characters, you could use this: regexprep([names{:}],'\s+','_') _e.g...

15 years ago | 0

Answered
Get tenor between two time points
d1 = datenum('20110610','yyyymmdd'); d2 = datenum('20110716','yyyymmdd'); d2-d1

15 years ago | 1

| accepted

Answered
Simulation of charged particle in matlab
There is nothing wrong with the physics. I think it is just the numerical stability of your code. The MATLAB ODE suite handles t...

15 years ago | 3

| accepted

Answered
Solving large linear systems
With the information you have provided, it is difficult to diagnose your problem. Do you get an "out of memory" error if you run...

15 years ago | 0

| accepted

Answered
Problems with lsqcurvefit
See <http://www.mathworks.com/support/solutions/en/data/1-19B8E/index.html?product=OP&solution=1-19B8E Why do I receive an error...

15 years ago | 0

| accepted

Answered
Why is plot3 slow when I use it in a loop?
You could try using <http://www.mathworks.com/help/techdoc/ref/line.html line> instead of |plot3|. You'll have to make sure all ...

15 years ago | 0

Answered
Curl function outputting -inf and NaN
If |quiver| works but not |curl|, your coordinates may not have the correct form. They have to be monotonic, as if set up by |me...

15 years ago | 1

| accepted

Answered
Is it possible to avoid symbolic math for below query
As long as B has a nonzero determinant, you could recast it as an eigenvalue problem: det(A+Bx) = det(B)*det(inv(B)*A+Ix) = 0, ...

15 years ago | 1

| accepted

Answered
Answer format for solve()
1. Just specify the variables: solve(...,{v1,v2,v3}) 2. In your solution, if you substitute for all four variables, the equa...

15 years ago | 1

Answered
Symbolic expression bounds
If you have a pre-determined set of variables and a finite number of possible values for them, you might be able to use an appro...

15 years ago | 0

Answered
Curve fitting to data sets with multiple parameters
Clearly the first thing you need to do, if you don't want to get totally frustrated, is spend some time learning MATLAB (see <ht...

15 years ago | 0

Answered
Symbolic expression bounds
It makes little sense to use the Symbolic Toolbox for such an operation because comparisons like |max| and |min| are not allowed...

15 years ago | 0

Answered
search minimum of a parameter function with the constrain that one parameter must be integer
This is an integer programming problem, and MATLAB does not have a function for that (although the FEX does have code for solvin...

15 years ago | 0

| accepted

Answered
no subsex in Matlab?
There is a |subsex| in R2011a, but not in earlier releases.

15 years ago | 0

Answered
call mupad's subsex from matlab, theta substitution problem.
|theta| is a function in MuPAD. Since it's case-sensitive, you could use |Theta|.

15 years ago | 0

Answered
Effect of gravity on body fixed to a single joint - 1 DOF
See <http://www.phaser.com/modules/elaydi/content/helptips/secondorderode.html this example> of how to convert a second order OD...

15 years ago | 0

Answered
trying to converge a variable/value used in a equation
If you combine these two lines torque_interation(1,i) = (work_increment(1,i)*RPS)/q; deltaKE = work_increment(1,i) - tor...

15 years ago | 1

| accepted

Answered
Solving 3D Vector equations
Interesting equations. The first says that the points l,o,q,c are coplanar, but I'm not sure what the second means. You can sol...

15 years ago | 1

| accepted

Answered
Best way(s) to master MATLAB?
See <http://www.mathworks.com/matlabcentral/answers/1148-how-to-learn-matlab How to learn MATLAB>.

15 years ago | 2

Answered
Trajectory Optimization using fmincon
You don't have to have an explicit expression for the objective function and constraints. If you can create a function like this...

15 years ago | 0

Answered
approximate a function using Hermite spline
Check out <http://www.mathworks.com/help/techdoc/ref/pchip.html pchip>.

15 years ago | 0

Answered
definite double integration-dblquad-int
I think you may be confusing vectorizing with expansion. You would need to vectorize your integrand to use |dblquad|, but you do...

15 years ago | 0

| accepted

Answered
How to use the Finite Difference Method to get the gradient?
Here is an example of a function that uses |gradest| correctly: function [F, g] = myfun(x) fun = @(y) 2*sum(sin(y)) + ...

15 years ago | 0

| accepted

Answered
Answers and the FAQ
It would be good to have a link to the FAQ on either the <http://www.mathworks.com/matlabcentral/answers/ home page> or the <ht...

15 years ago | 0

Answered
Why do you come to "MATLAB Answers"?
For Walter, because even he can't answer *all* of the questions!

15 years ago | 3

Answered
Multiple contour plots, same colour bar
You can use <http://www.mathworks.com/help/techdoc/ref/caxis.html caxis> to set the limits of each colorbar.

15 years ago | 2

| accepted

Load more