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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 3

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 1

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 2

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

Respondida
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)) + ...

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 3

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

casi 15 años hace | 2

| aceptada

Cargar más