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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 4

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 2

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

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

| aceptada

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

más de 3 años hace | 1

Respondida
How do I return the index of a vector I am defining?
You want the function withinBounds to know WHERE in the vector the reslts of that function are being stuffed? This goes against...

más de 3 años hace | 0

| aceptada

Respondida
I'm trying to run a loop until a condition is met
Simple rule #1: A for loop is best when you KNOW how many iterations you wish to perform. How many times do you want it to loop?...

más de 3 años hace | 0

Respondida
How to describe a sequence of numbers as a variable using Genetic algorithm in MATLAB?
You can't simply tell GA to use such a permutation sequence. Although I suppose you could set up a nonlinear constraint that wou...

más de 3 años hace | 0

Respondida
Questions about infinity in matlab
What to do? Learn to work with large numbers like that. Sorry, but you just do. A common solution is to use logs. Don't compute ...

más de 3 años hace | 3

Respondida
Extract the Weibull coefficients
When you don't know what the name of a function in MATLAB might be, use the lookfor function. lookfor weibull If you scan down...

más de 3 años hace | 0

| aceptada

Cargar más