Answered
interp2 problem in size dimesion
Your problem is you are trying to use the wrong tool. interp2 allows you to interpolate in two dimensions, but ONLY for data tha...

4 years ago | 0

Answered
Elliptic Integrals ruin my solution of coupled system of differential equations
elliptic integrals are not just some nice linear function. So if you don't know the value of S, this will not be evaluable: sym...

4 years ago | 0

Answered
Approximating the function 1/x, as a series in negative exponentials
First, is the curve fitting toolbox the best way to approach the problem? You COULD use it. Sadly, not really a good idea. That ...

4 years ago | 1

Question


Approximating the function 1/x, as a series in negative exponentials
Sadly, this question was posted on Answers, but then quickly deleted. Yes, it was probably homework, but it is an interesting pr...

4 years ago | 1 answer | 1

1

answer

Answered
No solution found using fsolve, what should I do?
A simple rule is fsolve assumes the function you feed it is well behaved. That means things like continuity. Differentiable. At ...

4 years ago | 1

| accepted

Answered
Curve fitting toolbox can return bogus results for 2 term exponential functions. Is this a bug?
Is it bug? NO. Is it due to poor starting values? Almost always, yes. At least, unless the curve is simply not well fit by a t...

4 years ago | 0

Answered
How do i further simplify this solution in matlab. I have used the simplify(.....) but it still gives me the same solution with the sin functions.
ARGH!!!!!! Why would you define the value of pi in MATLAB? Worse, then not even defining it to be the correct value? pi already...

4 years ago | 0

Answered
How to comute double integral of a long symbolic vector through parallel computing in Matlab?
In general, you cannot force the symbolic toolbox to use multi-threaded computations. At least, the last time I recall, that was...

4 years ago | 0

Answered
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
When you open a door, you must then close it, else MATLAB will not be happy. Look carefully at the line in question. After all, ...

4 years ago | 0

| accepted

Answered
How to input equation, in to two separate places, at once
There are two simple solutions, both of which are equally valid. For example, start out with a function handle, perhaps like thi...

4 years ago | 0

| accepted

Answered
certification for exchange student
I'm sorry, but Answers is not customer support. We have no ability to help you on this forum. You can contact the MATLAB admin ...

4 years ago | 0

Answered
Detect all local minimum and remove them
@Matt J showed you how to use a convex hull. Very possibly that is what you want, even though you did not flag the other points....

4 years ago | 0

Answered
Definite integral with a parameter in the bound
syms X W F = ((W-X)^2)*((X^2-1)^(1/2))*X; int(F,X,1, W) As you found, int fails to generate a result. That does not mean a cl...

4 years ago | 1

| accepted

Answered
Create function with 8 input and 1 output
First, dont write a function with 8 variables as input. Have ONE variable be a vector of length 8. LEARN TO USE VECTORS AND ARRA...

4 years ago | 0

Answered
Is there an inbuilt function like Delaunay triangle for generating Quad element mesh with the irregular nodal points?
Sorry, but not at all. Not that you could not write something both trivial and crude, that would start with a triangulated mes...

4 years ago | 0

Answered
How to smooth surf?
interp2 does NO smoothing. It is NOT designed to smooth anything, and would NOT be appropriate, because interpolation does not c...

4 years ago | 4

Answered
uniform noise or normal noise
Not a question at all about MATLAB. But I have a few moments to answer. When do you add uniform noise versus normal? A simple ...

4 years ago | 0

| accepted

Answered
Why does fimplicit3 provide an empty plot?
The second equation does indeed have has an implied radius of ZERO. So the solution is a single point, where x=y=z=0. It is the ...

4 years ago | 1

| accepted

Answered
Having trouble with nonpolynomial equation systems
You have how many equations? (6 by my count.) You have how many parameters? l, teta, x, y, fi, d, R, gama. That is 8 parameters...

4 years ago | 0

Answered
Generate a large almost diagonal matrix
This is commonly known as a bidiagonal matrix. It is far and away best defined using sparse storage, as produced by spdiags, s...

4 years ago | 0

Answered
Using a specific number of digits
Are numbers typically written with leading zero digits? (NO. At least not in anything I've ever done.) The number 001 is no diff...

4 years ago | 0

| accepted

Answered
Improving first coding project
+1. This is what I would call a good post. You are looking to learn MATLAB, so you chose a problem (one that interests you) that...

4 years ago | 2

Answered
How to do type II double integration on matlab
First, type I and II are not any common names for integrals that I know of. It might be what your teacher calls them. Maybe the ...

4 years ago | 1

Answered
solving an equation not by sym
You have this basic first order linear recurrence relation: E(n+1,x) = 2/x + 4*E(n,x) Where E(1,x) = 0 is a given, but al...

4 years ago | 0

Answered
Symbolic dependency apparently sometimes gives wrong answers
To be honest, this appears to be more of a bug report than anything else, since that option in hasSymType does not apprear to be...

4 years ago | 0

Answered
I want know how can I calculate variance & expectation in Matlab for 10 sample
It would seem your question defines a discrete random variable on the set s, where you have given the probability at each point....

4 years ago | 1

| accepted

Answered
Fit Curve to a user defined function
You cannot assume that fit will know the name of every possible nonlinear model form. monod is apparently not one of the predefi...

4 years ago | 1

| accepted

Answered
dec2bin function provides wrong answer
So the binary representation of 8 is not 1000? Let me see, 8 = 1*2^3 + 0*2^2 + 0*2^1 + 0*2^0. I think you are mistaken. dec2...

4 years ago | 0

| accepted

Answered
2 Questions about user defined function
Why does it not work in the format compact question? You had this: format compact function [a1,b1]=fn_name(y) ... Simple ru...

4 years ago | 1

Load more