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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 3

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 1

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 1

| akzeptiert

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

fast 4 Jahre vor | 0

Beantwortet
what to do in this case?
You cannot set a variable to have a value inside another statement. For example, this line of code would not be valid in MATLAB...

fast 4 Jahre vor | 0

Beantwortet
How do I pass a function a mathematical function of the for x.^2
Time to learn about function handles! A function handle alows you to pass one function to another. f = @(x) x.^2; What is f? ...

fast 4 Jahre vor | 0

Beantwortet
Need help with Exponential Curve fitting
First, plot EVERYTHING. Then if you don't understand what you see, plot something more, or plot it in a different way. load xda...

fast 4 Jahre vor | 0

Beantwortet
ushuffle the matrix elements
a = magic(3) reshape(a(randperm(numel(a))),size(a))

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
I want to get the covariance matrix from the Hessian matrix, but fminunc returns non-positive definite Hessian.
Fminunc returns its current estimate of the Hessian, which may not be correct at the optimum, because it will be continuously up...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
how to check whether a vector in a subspace or not?
You want to test if a new vector (not two at a time!) lies in the column space of a matrix V. Here, V is a 6x7 matrix. V=[2 3 1...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
how to code the cirle in the function graph
If you have a point moving along the curve, then you can know the x value of that point. As well, compute y, at that x value. Y...

fast 4 Jahre vor | 0

Beantwortet
Is there a function that does the same thing as the numel function?
There are multiple ways you COULD achieve the same result as numel. Not all of them are good. For example, length ALMOST does th...

fast 4 Jahre vor | 1

Beantwortet
how to find a plane perpendicular to a line?
What you need to understand is a plane is defined by TWO things. The normal vector to the plane, AND a point on the plane. That ...

fast 4 Jahre vor | 1

Beantwortet
The easiest way to learn matlab?
The easiest way? Why must there always be an easy way to truly learn something well, developing some real expertise at it? Have ...

fast 4 Jahre vor | 0

Beantwortet
How Can I Plot Multiple Points Without Mathlab Joining Them?
Plot is a simple tool. If you give it no direction at all about the line or markers, then it connects the points with a line, an...

fast 4 Jahre vor | 0

Beantwortet
Vector operation giving complex numbers
You don't necessarily fix it, except by understanding the mathematics of what you are doing. blog_mean = 0.5000; blog_var = 0....

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Fitting a data with the best fit
As others have said, there is no magical way to know what is the "best" fitting model for such a problem. If you lack any model ...

fast 4 Jahre vor | 0

Beantwortet
How can I find X for given Y value in a fitted curve. I have a non- linear equation of 6th order.
There are more digits in those numbers as estimated. Just using numbers accurate to 4 digits is far too low for a 6th degree pol...

fast 4 Jahre vor | 0

Beantwortet
How to increase precision in this case?
Take it from here: vpa(exp(sym(1)),500) Now just process the digits. Or I think I have something on the order of a million di...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting a 1D function by hovering on a 2D plot
We all want things we cannot easily have. For example, I would very much want to see world peace. Will I ever see it? Probably n...

fast 4 Jahre vor | 0

Beantwortet
how to debug the non-working of real() function?
When you get an error, don't just tell us that something is not working. Tell us the error message. The COMPLETE, error message,...

fast 4 Jahre vor | 0

Beantwortet
Symbolic equation simplification output, such as x/y from two equations
If you don't know what umax is, where would it go? What do you hope to see here as a result? You are computing the ratio, u0/uma...

fast 4 Jahre vor | 0

Mehr laden