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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 3

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 2

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 3

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

fast 15 Jahre vor | 2

| akzeptiert

Mehr laden