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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 3

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 2

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 3

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

oltre 15 anni fa | 2

| accettato

Carica altro