Réponse apportée
Determine adjacent points in a logical matrix
Trivial. Learn to think in terms of MATLAB operations. I've added another 1 in there, just to make it clear what the problem is....

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to automatically find the function that linearizes another function.
If, given the function f(x), your problem is simply to find a new function g(x), such that f(x)*g(x) is linear, then it is absol...

plus de 2 ans il y a | 0

Réponse apportée
Attempt to execute SCRIPT interp2 as a function:
Did you mistakenly edit interp2, and then save it, after deleting the function header? Are you POSITIVE there is no script by ...

plus de 2 ans il y a | 0

Réponse apportée
Replacing segmented equations within equation with variables
Literally trivial. For example... syms x y z EQ = y/x + sin(x^2/y^2) simplify(subs(EQ,x,y*z))

plus de 2 ans il y a | 0

Réponse apportée
fit accuracy using custom equation
First, the model you show is not even a valid expression. The parens don't match up. y=a*log(1+exp(x/b))-c) 2 left parens,...

plus de 2 ans il y a | 0

Réponse apportée
I do not understand exit message given by lsqnonlin,
Note that when you have problems that are more than just bounded variables, so any other set of constraints, then it appears lsq...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Getting imaginary values as solutions to equations using solve function
P_l=50; v=0.1; k=15; Tm=1375; T0=300; alpha=3.75*10^(-6); E= 190*10^9; h= 100*10^9; G= 150*10^9; nu=0.3; psi= 1- exp(-...

plus de 2 ans il y a | 0

Réponse apportée
I am struggling with integrating a function.
Don't use inline functions. They are slow, inefficient things, introduced long ago, in a galaxy far, far away. Instead use funct...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Finding the first 1 in a binary set using optimization
If V is given, then find(V,1) is perfect, and it will not be improved upon. And you say that V is given! So what is your questio...

plus de 2 ans il y a | 0

Réponse apportée
computational complexity of svds
Sorry, but no, we can't tell you why a choice was made. MathWorks does not give out that information. You MIGHT be able to lear...

plus de 2 ans il y a | 0

Réponse apportée
Numbers prediction using advanced matlab code
A neural net will use a random start point in the training. Start from a different set of parameters for the net, and you will g...

plus de 2 ans il y a | 0

Réponse apportée
Kindly help me understand this code, it is a user defined function for multiplying two polynomials
I'm sorry, but that code is complete crapola. Better code might look something like that below. Test it out. p1 = [2 5 3]; p2...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Interpolation between 3D data sets. Neural Networks or Other Methods?
What is the "best" method? Impossible to say. To know what defines best, we would need to know EXACTLY what your requirements a...

plus de 2 ans il y a | 0

Réponse apportée
elements >0 are present in matrix only once
Count the number of non-zero unique elements. Count the number of non-zero elements. Are those two numbers the same? In either...

plus de 2 ans il y a | 0

Réponse apportée
How to make contour smooth
As others have pointed out, you don't want to try to make the contours smooth AFTER the fact. Instead you want to smooth the sur...

plus de 2 ans il y a | 0

Réponse apportée
Creating AlphaShape from triangulation dataset
Is there any way? Trivially, yes. Ok, maybe trivial is in the eyes of the writer. I can say this because I have written both 2d ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to constrain a polynomial fit in MATLAB so that the resulting fit is rotationally symmetric?
No. It is not directly possible to do so, that is, to force the fit to be rotationally symmetric for a general polynomial. Howev...

plus de 2 ans il y a | 2

Réponse apportée
How to split a irregular polgon into different parts having specific area for each part?
There is no magical, trivial solution, based on a single call to any function. Why would someone write that anyway? But it woul...

plus de 2 ans il y a | 0

Réponse apportée
Solving a system of equations using Symbolic Matlab
You CANNOT use fsolve, though you said you tried it. This is not a numerical problem, but a symbolic one. t is an unknown there....

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
very similar dataset and yet 'TRAPZ' function gives very different answers
"Very" different? "VERY"? Lets be serious. xy1 = [1.43155281315397 0.00255865851191916 1.35675838019809 0.0145131910703132 1....

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
How would I perform a weighted least-squares regression analysis with x and y error?
Let me see what I can explain. (I think some have missed the point of your question.) These problems are always simpler than yo...

plus de 2 ans il y a | 1

Réponse apportée
why does conv2 increase z height?
Easier to just see what is happening with a 1-d problem. First, some data. t = linspace(0,10,200); y0 = sin(t); % about as sim...

plus de 2 ans il y a | 0

Réponse apportée
please complete the time series code
It looks complete to me. What do we see? We see uncommented, virtually undocumented code, that does something we are not told ab...

plus de 2 ans il y a | 0

Réponse apportée
Plotting variables from an implicit function
fimplicit plots the lines where your function is ZERO in that region. Is it ever zero? Probably not. dmin=0.2; fs=250e3; Vo=40;...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Apparent distance conservation in Matlab plot window while rotating 3D objects
I'm confused. If you plot two things in 3-d, you change the view using the function view. But OF COURSE things change when you ...

plus de 2 ans il y a | 0

Réponse apportée
Generate random integers that sums to a specific number within a specific range
I had to put in my 2 cents here. I saw @Matt J and @Bruno Luong both claim uniformity, or at least close to approximate uniformi...

plus de 2 ans il y a | 1

Réponse apportée
Is it possible to restore all the variables from the previous session?
Sure. Just don't exit MATLAB. Or, save your results periodically. Why would you not do that on a long run that takes a week of r...

plus de 2 ans il y a | 0

Réponse apportée
find the position of a value in a "Double-precision array"
-10.1333 the EXACT VALUE? NO. All you see is that number written with 4 digits after the decimal point. You need to learn to use...

plus de 2 ans il y a | 0

Réponse apportée
Caluclating an integral over a rectangle, with a singularity point.
As is often the case, this is FAR simpler than you think. And, yeah, sometimes things are far more difficult. They never seem to...

plus de 2 ans il y a | 0

Réponse apportée
Fill the big gaps in data series
The big probem is, your series has little information content in it. :( And of course, you don't give us any data. So I'll make ...

plus de 2 ans il y a | 4

| A accepté

Charger plus