Réponse apportée
Why do I see a singular matrix warning here?
The issue is not a problem with eig, except in our expectations of what eig can do. And those expecations are fueled by our expe...

presque 5 ans il y a | 0

| A accepté

Question


Why do I see a singular matrix warning here?
I've posted this question as a "response" to a question posed by someone else, but as an answer to another question. Since I can...

presque 5 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
Find the file number when a condition meets
Beginners do this sort of thing. They are tentative, almost afraid to use MATLAB, even when they think they need to. So they lea...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
1D randomwalk matlab tutorial on youtube
I think you need to read things like the syntax of various tools, like while. You also need to learn the syntax of just how to w...

presque 5 ans il y a | 0

Réponse apportée
Generate all possible combinations summing up to a given number
These are commonly known to mathematicians as integer partitions, thus the ways we can write an integer as a sum of smaller inte...

presque 5 ans il y a | 0

Réponse apportée
How many terms of series are required to get accuracy upto three decimal point. That is series sum correct upto 3.141
@ajeet sahu - what you do not seem to understand is that the script you have shown IS performing the correct iterations, The pro...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Constants not recognized in integral
You are still thinking that you are using some other language, where you need to declare variables as doubles. This line does n...

presque 5 ans il y a | 0

Réponse apportée
How can i write this equation: d = obs + sqrt(alfa*Cd^0.5)*randn(nd, ne)
Do I understand you correctly? obs is an array of size 51x71x3? Or is it a vector of that length? Regardless... alfa is a scala...

presque 5 ans il y a | 0

Réponse apportée
Array indices must be positive integers or logical values.
It does not matter that you WANT V(0) to be something. MATLAB does not support zero based indexing. PERIOD. However, nothing st...

presque 5 ans il y a | 1

Réponse apportée
plotting a for loop returns Empty Graph
You are not plotting ANYTHING in a for loop. You may think you are. Where are the plot statements? AFTER THE LOOP TERMINATES. Af...

presque 5 ans il y a | 0

Réponse apportée
How to solve a large 6-variable non-linear matrix determinate equation for all unique values.
This is an almost impossible problem to solve symbolically. Why? symbolic computations using determinants become INCREDIBLY comp...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
vpa is not outputing enough digits
I think you may have a setting messed up on your computer. For example... X = sym(3)/32; vpa(X) ans = 0.09375 But now, if I...

presque 5 ans il y a | 2

| A accepté

Réponse apportée
change of expression ?
help solve help isolate Either will work. Why not try them? Best would be to read the documentation, the tutorials. You would ...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Matlab and Fortran Precision Issue
No. In the most common case, such a disagreement is because you copied over some numbers from Fortran to MATLAB (or the other w...

presque 5 ans il y a | 1

Réponse apportée
Starting Code from Middle
Why? Because you are not doing it correctly? What can I say? Maybe you are just running a really old version of MATLAB. Most lik...

presque 5 ans il y a | 0

Réponse apportée
Difference between fittype 'poly1' and 'A*x+B'?
When you use the 'poly1' model, FIT is probably smart enough to understand this is a LINEAR model. And that it is solvable using...

presque 5 ans il y a | 3

Réponse apportée
fitdist should be pdf^-1 but is seems not to return correctly
The problem is, you do not understand that evaluating the PDF is NOT the same thing as sampling random numbers from that distrib...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How to solve 4 non linear equations with 5 unknowns using least square method
You have an under-determined problem. If any solution exists, then there will be infinitely many solutions. (This is the case in...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How to solve differential equations with varying constants
If a constant varies with time, then is it really a constant? Of course not. X=[ -47.9440 19.0518 -14.4223 -47.9833] If th...

presque 5 ans il y a | 0

Réponse apportée
Need matrix or vector with 1,0,1,0,1,0.........
Hint: Use mod. For example, mod(1:25,2) But really, you need to start by looking at the Onramp tutorials, or read any text. I...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
3D plot of an ellipsoid
theta_ = [1 2 3]; COV = cov(rand(10,3)); % picking some arbitrary values for theta_ and COV... RC=@(x,y,z) (theta_-[x y z])*in...

presque 5 ans il y a | 2

| A accepté

Réponse apportée
Setting a lower bound on the values of an array ( can it be done without a for loop?)
Since the question is morphing along, I'll add a second answer to the current question. You cannot tell MATLAB to automatically...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Setting a lower bound on the values of an array ( can it be done without a for loop?)
I'm sorry, but you are simply wrong. When a number is TOO small, it does not turn into a NaN. It turns into either zero, or -inf...

presque 5 ans il y a | 0

Réponse apportée
Unable to find explicit solution
Why do you think a solution exists at all? And, if a any solution does exist, then IF any solution exists at all, there will alm...

presque 5 ans il y a | 0

Réponse apportée
Why does my nonlinear (exponential or trigonometric) model fit poorly?
BASINS OF ATTRACTION: Since I will be unable to make my first answer too long, let me expand on the issue of poor starting valu...

presque 5 ans il y a | 0

Réponse apportée
fit function does not work correctly
I wrote a long question (and answer) just yesterday, that goes into depth on the why and how to solve this. https://www.mathwor...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
Why does my nonlinear (exponential or trigonometric) model fit poorly?
Suppose I wish to fit some data to a simple exponential model. I'll make up some data, then add moderate noise to the data. X ...

presque 5 ans il y a | 0

| A accepté

Question


Why does my nonlinear (exponential or trigonometric) model fit poorly?
This is a question I see often online by users of curve fitting tools. Typically, I see someone try to use a tool like the curve...

presque 5 ans il y a | 3 réponses | 2

3

réponses

Réponse apportée
i have a problem with my plot, i am not getting any values and the system gives me an empty plot.
Look at what you did. a = 0;5; First, maybe you think this creates a vector in a? Instead, it just sets a to 0. Then it dumps...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
How do I use multi-parameters in my optimization problem for fminunc?
No. It won't look like that. fminunc cannot somehow magically know how you intend the inputs to be used. Computers cannot read y...

presque 5 ans il y a | 0

Charger plus