Beantwortet
[DISCONTINUED] Wish-list for MATLAB Answer sections.
The *accept* button should be further away from *Comment on this answer*, and it should be possible to undo it - at least for a ...

etwa 15 Jahre vor | 6

Beantwortet
Use known error bars in polyconf function
Aaah, the old heteroscedasticity problem! @Jeremy, here is a sketch of what you need to do. First, you need to switch to a weigh...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
How do I write a good answer for MATLAB Answers?
Give your HTML links meaningful titles. For example, use <http://www.mathworks.com/matlabcentral/answers/797-how-do-i-write-a-go...

etwa 15 Jahre vor | 1

Beantwortet
How to learn MATLAB
CSSM is the Matlab newsgroup (comp.soft-sys.matlab), which you can access using the <http://www.mathworks.com/matlabcentral/news...

etwa 15 Jahre vor | 0

Beantwortet
find roots
The key to this problem is that there is one root in each interval [n*pi,(n+1)*pi]. I'm going to assume that L > 1, otherwise th...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
Is this a symbolic math bug?
I think what you want in question 1 is b = vpa(log(sym('2')),5); For question 3, x should be the variable in SOLVE: syms ...

etwa 15 Jahre vor | 0

Beantwortet
3D plotting
First you need to decide what range of values you want to plot: u1 = -1:.01:1; u2 = -1:.01:1; Then create matrices: ...

etwa 15 Jahre vor | 2

Beantwortet
axesm
I'm not sure what your goal is, but the errors in the above code go away if you provide values for lat and long: axesm('ham...

etwa 15 Jahre vor | 0

Beantwortet
[DISCONTINUED] Wish-list for MATLAB Answer sections.
Allow links to a specific *answer*, not just the question it answers.

etwa 15 Jahre vor | 6

Beantwortet
How do I write a good answer for MATLAB Answers?
At the risk of being obvious, test your answer! I find it useful to compose my answer, with comments, in the Matlab editor. Then...

etwa 15 Jahre vor | 1

Beantwortet
How do I create a 2D sparse matrix?
Here is how you would do it for your example: N = 6; % I assume this is a square matrix? A = zeros(3,3,N^2); A3 = eye(3);...

etwa 15 Jahre vor | 1

Beantwortet
Different trigonometric function in MATLAB
You could go to <http://www.mathworks.com/help/techdoc/learn_matlab/bqr_2pl.html |Getting Started|> or try searching "Matlab" on...

etwa 15 Jahre vor | 0

Beantwortet
[DISCONTINUED] Wish-list for MATLAB Answer sections.
My Answers should display the number of votes for the _answers,_ not the questions.

etwa 15 Jahre vor | 6

Beantwortet
[DISCONTINUED] Wish-list for MATLAB Answer sections.
It should be possible to mark up Comments.

etwa 15 Jahre vor | 39

Beantwortet
Finding Intersection Points between 3rd Order ODE and a line
The solution of this equation is a symbolic function sol(t): sol=dsolve('D3y-4*D2y+Dy+2*y=0,y(0)=-4,Dy(0)=-6,D2y(0)=-4'); so...

etwa 15 Jahre vor | 0

| akzeptiert

Frage


What determines whether someone is credited with a question?
Why are some people credited with a lot of questions that they did not ask, answer or even comment on?

etwa 15 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Weibull cdf
First you need to generate extreme value data to fit. This is done by subsampling: % Calculate some random samples of snowf...

etwa 15 Jahre vor | 0

Beantwortet
Coordinate system
If your object is to generate some random points in a circle around (x0,y0), you could do this: radius = 2.5; N = 5; % p...

etwa 15 Jahre vor | 1

Beantwortet
Finding the peak position of a plot?
If sum(fill>0) is the thing you want the maximum of, you could use [C,I] = max(sum(fill>0)); The C give the maximum valu...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
Removal of duplicate entries and counting them
a = {'the', 'the', 'she', 'he', 'she', 'she'}; au = unique(a); % This finds one of each string % strcmp gives a logica...

etwa 15 Jahre vor | 0

Beantwortet
How can I create and add a variable to a vector?
If you have the Symbolic Toolbox, you can do this: syms h a = [3 0 h 0 0] If not, you could create a function, for ex...

etwa 15 Jahre vor | 1

Beantwortet
Using QUAD function in my code
It looks like you have a singularity in the integrand at x=0.08. Try this command to look at it: ezplot(integrand,[0 0.22]) ...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
Pass a structure to a function...
You seem to have a number of problems here. First, you need to save the function to a separate file called *avg_fun.m*. Second, ...

etwa 15 Jahre vor | 3

| akzeptiert

Beantwortet
4th order ODE, boundary conditions problem
In the assignment to dp (which, by the way, should be dxdy), the fourth line has a space in it which MATLAB thinks is separating...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
How do I write a good answer for MATLAB Answers?
How about a Wikipedia-like version history?

etwa 15 Jahre vor | 0

Beantwortet
Curve Fit Using Endpoints of the Data
Lynniz, forcing the curve to go through both endpoints won't improve the extrapolation. Instead, if you have the <http://www.mat...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
Inserting a tab character into a string
A nicer way of doing it is str = sprintf('Control Chart For \t %d water flow \t %d oil flow',w,o)

etwa 15 Jahre vor | 8

Beantwortet
I have a C++ class. How can I interface to it through a MATLAB class?
In the Matlab help browser, see Matlab > User Guide > External Interfaces > Calling C/C++ and Fortran Programs from MATLAB Comma...

etwa 15 Jahre vor | 0

Beantwortet
plot3 properties
If you have a small number of lines to plot, you can just hand-code it with commands like this: plot3(mat1(:,1),mat1(:,2),m...

etwa 15 Jahre vor | 0

Beantwortet
Working with really huge numbers in MATLAB?
Convert your numbers to variable precision arithmetic using *vpa*.

etwa 15 Jahre vor | 0

Mehr laden