Réponse apportée
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....

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 4

Réponse apportée
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 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 2

Réponse apportée
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 ...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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....

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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?...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 3

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Recursion Revisited - My Code:
Your code IS working acceptably. Of course, if you call it with a vector of length 1e6, or something like that, you can be getti...

plus de 3 ans il y a | 0

Réponse apportée
How to find the maximum point of a fitted curve
What was wrong with the result? (Since I wrote the SLM tools.) Can I test your code? Of course not. We are not given the routin...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How do I normalise a Matrix that is close to Singular or badly scale
You CAN'T do it. Or, sometimes, you can. And it all depends on what makes the matrix singular, or badly scaled. How was the matr...

plus de 3 ans il y a | 0

Réponse apportée
How to compare the complexity of two algirthms in MATLAB
Sorry, but this has been discussed many times before on this site. There is no tool that does it for you, nor can one easily be ...

plus de 3 ans il y a | 1

Réponse apportée
How to get max of repeated values?
Easy enough. Use unique, then it is just a call to accumarray. C = [0.5000 0.5000 0.3000 1.0000 0.8000 0.3000 ...

plus de 3 ans il y a | 0

Réponse apportée
Solving matrix without values
Yes. Learn how to use the symbolic toolbox. If you don't have it, then you need it for this purpose. syms theta real A = [cos(...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Creating a Lagrange Polynomial with Unknown 'x.'
I can understand where you went wrong, as it is a common mistake. What worked for symbolic variables, did not work for function ...

plus de 3 ans il y a | 0

Charger plus