Réponse apportée
I think I need a for loop,
[x,y] = meshgrid(1:3,[2 3 5]) z = x+y If you need it as a 9x1 array, then just unroll the arrays into vectors. z = z(:) Star...

plus de 3 ans il y a | 1

Réponse apportée
Maximum of 2D data interpolation
You will NEED to use a spline based method of interpolation here, specifically spline or cubic. NOT makima, or pchip. Those inte...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to use if/then to assign a year to a set of dates?
Easy peasy. :) data = [8 7 2000 12 9 8 2000 14 9 9 2000 13 3 11 2001 11 8 3 2001 17 12 15 2001 14 2 2 2002 10 5 1 2002 9...

plus de 3 ans il y a | 2

Réponse apportée
invalid use of operator
Looks great. Except, what you have written is not valid MATLAB syntax. Why do you think you needed to include the :end in there...

plus de 3 ans il y a | 0

Réponse apportée
I need help to determine the distribution type for my set of data
You CANNOT know what distribution any set of nummbers were generated from. That is provably imposssible. For example: x = 0.432...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Unable to solve nonlinear equation using fsolve as the message shows No solution found
I would not be at all surprised if it was poor starting values that might cause the problem. syms x y F1 = -9.135789053E+00-lo...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Deconvolution results a single value
Convolution of two vectors yields a new vector that is longer than either of them. So if the vectors have length N and M, then t...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Files added to path won't run unless I rename them first.
Never use the directory structure that comes with MATLAB to store your own files. Why not? MATLAB caches those directories at s...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
manipulation of yearly, quarterly, monthly, weekly and daily dates using datenum
I don't see the problem. It mainly looks like you need to understand the concept of leap years. That would be crucially importan...

plus de 3 ans il y a | 0

Réponse apportée
Cubic Spline not printing
It has been a month since you asked the question, so I'll post an answer. Note that your data has x=[1 2 6 3 5 6 7 8 9 7 6 5 ...

plus de 3 ans il y a | 0

Réponse apportée
Does the built in function singular value decomposition (svd) do the correlation matrix for you?
The SVD does NOT perform the re-scaling involved in a correlation matrix. It just uses the array you give it, with no preemptive...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
finding fold curve in 3D surface
You have a surface, generated using meshgrid. I would split that surface into a triangulated mesh. So two triangles per rect in ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Difference fit result form nlinfit and lsqcurvefit
And, so? Many problems will have multiple locally optimal solutions. Neither of those tools even hopes to be a globally optimal...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Define a family of functions
DON'T DO IT THAT WAY. Instead, define ONE function. One function to rule them all. (Sorry. That last part just slipped out.) Se...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Draw the sphere to find the radius of the sphere
Estimation of the sphere parameters is not too difficult. First, since you have shown no data, I'll make some up. XYZ = randn(5...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I generate a trigonometric formula for the following case?
Theta= [39.8414239035357 38.0423831220740 35.9925962696569 33.6629179282453 31.0086860615562 27.9576609766453 24.3833553424339...

plus de 3 ans il y a | 2

Réponse apportée
Randomize vector avoiding consecutive values
Typically, rejection would be necessary. Of course, if your initial vector were composed only of two elements, then there are on...

plus de 3 ans il y a | 0

Réponse apportée
What does this plot mean? Can an equation be made of it?
Can you get an "equation" for it? No. At least not any more than what you already have. Anyway, an equation involves an equality...

plus de 3 ans il y a | 0

Réponse apportée
is that really necessary to measure and put the weakness of the thesis if it is not scope of the work?
This is totally inappropriate to Answers, since it has nothing to do with MATLAB. Even if MATLAB would be involved with your the...

plus de 3 ans il y a | 0

Réponse apportée
Data fitting using thin-plate spline/interpolation
This is a common problem people have with splines in any form. They hope to see some nice simple function they can write down. M...

plus de 3 ans il y a | 2

Réponse apportée
How to display a message as flashing and in my desired color and font size?
You can do that, but since disp is not written to accept those extra arguments, it might not work. Wanting code to do what you w...

plus de 3 ans il y a | 1

Réponse apportée
3d plot of Tridimensional parabolic motion
It should look strange. Why? g=9.8; z0= 14325; x0=0; y0=0; V_0= 200*0.3048; gamma=0.78; V_0x=V_0*cos(gamma); V_0y=V_0*co...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Can I define or change the direction of 'reshape'?
No. You cannot do so. You cannnot change how reshape works. HOWEVER. Nothing stops you from changing that afterwards. For examp...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Isolate horizonal part of curve
What part of this curve is horizontal? syms x F = exp(-10*x) fplot(F,[0,3]) Well, clearly, ithe horizontal part lies above x...

plus de 3 ans il y a | 1

Réponse apportée
A way to write "if x is in y matrix do this"
You CANNOT use ismember to test if a number is in an interval. Even ismembertol does not do that. Using code to do something it ...

plus de 3 ans il y a | 0

Réponse apportée
numerical integration inf to inf
You cannot use trapezoidal rule to do the integration exactly fully to the endpoints, since the shape of that function is too ex...

plus de 3 ans il y a | 0

Réponse apportée
What is the maximum size of *.mat file?
There is no maximum size of either file. It would be strictly dependent on the memory you have available. Well, you could say ...

plus de 3 ans il y a | 0

Réponse apportée
Upper bound curve that passes through the extreme (highest) points
I would argue a convex hull is probably at least close to what is wanted. That it works here because the envelope is roughly a c...

plus de 3 ans il y a | 1

Réponse apportée
How to find number of bit change between binary numbers?
Read what @Jan said. xor followed by sum is the simple way to go, of course. And we really have not been given enough informatio...

plus de 3 ans il y a | 1

Réponse apportée
infinity recursion with in the program
What do you expect? Look carefully at your code. I've extracted the only lines that matter below. function stabil = punktStabil...

plus de 3 ans il y a | 0

| A accepté

Charger plus