Réponse apportée
Help with the equation
So why not try it? First, use valid variable names, not greek letters for the variables. rho = 1.025; L = 130.2608788; B = 2...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Solving the arising equation with preconditioned iteration method.
I'm not sure what you are talking about. BOTH PCG and GMRES are written in MATLAB itself. So the source code is provided to you....

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Optimization involving complex variable.
If you just need to find a new matrx B, then there is ABSOLUTELY NO reason to use optimization techniques! A is assumed to be a...

environ 2 ans il y a | 0

Réponse apportée
Finding coefficients and bias term for equation y = (x-B)*A
As my comment stated, this question is impossible to answer in any meaningful way. That is, given 1x3 vectors X and Y, can you f...

environ 2 ans il y a | 0

Réponse apportée
how can i create a smooth curve through data points
It VERY much depends on what you define as "smooth". A smooth curve would generally not have a derivative singularity in it, yet...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Is it possible to use polyfit in a way that it takes into account the errorbars?
Different people mean different things when they say error bars. But you also use the word weights, which is a bit more standard...

environ 2 ans il y a | 1

Réponse apportée
I am looking for advice on the best way to learn matlab. I am a second year PhD student trying to familiarize myself with problems or projects. Any advice?
There is no "best" way to learn. It surely depends on you and your own learning style. Ok, probably the best way would be to hir...

environ 2 ans il y a | 0

Réponse apportée
Derivative of spline with respect to y-values
Bruno is correct. Anyway, is there a good reason why he would lie? Just because something is more complicated, does not make it ...

environ 2 ans il y a | 1

Réponse apportée
How can obtain the probability density function for a random discreate set of data and fit a custom distribution function ??
Can you write custom code to fit a PDF to data? Yes. It is not that truly difficult, if you know what you are doing. HOWEVER, SH...

environ 2 ans il y a | 1

Réponse apportée
How to solve equation with several unknown variables for a specific variable?
When you pose it as you did to solve, solve assumes you are trying to solve TWO equations, one of which is the equation cos...

environ 2 ans il y a | 1

Réponse apportée
How can I plot the innermost contour?
As an aside, since @Cris LaPierre has already suggested the use of LevelList to do the job. And that arguably is the correct ans...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
why I get the error message like "Attempt to execute SCRIPT bar as a function"?
Don't use existing function names as the names of your own scripts. If you do, then eventually you will get strange errors like ...

environ 2 ans il y a | 0

Réponse apportée
Element wise multiplication of a 4D Matrix
A confusing question. MAYBE you are asking how to take the product of the elements along the 4th dimension? That is consistent w...

environ 2 ans il y a | 2

Réponse apportée
round() function does not work as expected
Sorry, but it is often the case that your vector X is not what you thought it was, or you have written a function named round. ...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
How can I cut four numbers after the decimal number without rounding using MATLAB ?
You want to truncate after the 4th decimal place? Easy peasy. You shift where the decimal place lies, then use floor. format l...

environ 2 ans il y a | 2

| A accepté

Réponse apportée
Why isn't vectorization faster than repeating loop comparing 6 about years ago.
Things change. Vectorization OFTEN is faster. But nothing says it MUST ALWAYS be faster. Remember that vectorization often trade...

environ 2 ans il y a | 1

Réponse apportée
Matlab solver for unconstrained convex optimization
Everybody wants things to be incredibly fast. Large problems can take large time. Nothing stops you from writing a simple gradi...

environ 2 ans il y a | 1

| A accepté

Réponse apportée
Non-square matrix inverse
You CANNOT do so. That is, you cannot learn the original values. You cannot go backwards. A simple example is: Choose any two n...

plus de 2 ans il y a | 0

Réponse apportée
How do i make an exponential curve graph from a vector?
You can't have a polynomial that will fit that curve shape. They simply do not have that characteristic form. So using polyfit (...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How do I get normal numerical answers using solve or vpasolve?
vpa will turn those products involving pi into more normal looking numbers. For example... x = 17*sym(pi) So x has pi in it. ...

plus de 2 ans il y a | 0

Réponse apportée
Why these two path strings are different? (manual string vs. pwd + fullfile)
LOOK AT THE STRINGS. They are just strings after all. What is different between them? pwd = "C:\Users\username\certain_path"; ...

plus de 2 ans il y a | 0

Réponse apportée
symbolic solving system of non-linear equations
Solve does not apply to over-determined problems. But it does not know there may be some exact solution that solves the entire s...

plus de 2 ans il y a | 1

Réponse apportée
Optimization problem using fminunc
Apparently, your objective function is not well defined at the initial point. I know, this is a wild guess, but that is exactly ...

plus de 2 ans il y a | 1

Réponse apportée
Interpolation of inaccurate datapoints
Interpolation does NOT allow the data to change. Essentially, that is what interpolation means. You need to do SMOOTHING, not in...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
Change variable name across code lines
Use find and replace. It will search for the next occurence of a. Then you click on either replace, or to ignore that occurenc...

plus de 2 ans il y a | 0

Réponse apportée
How can I find the determinant and transpose of a 13*13 matrix without writing all the numbers one by one?
You have many almost random looking numbers. So without knowing how they were generate, it is impossible to do better than stuff...

plus de 2 ans il y a | 0

Réponse apportée
i'd like to ask is there any function to find asymptotes of an equation y = f(x) that satisfies x = x(t) and y = y(t). I'm new to matlab.
Its an interesting question of mathematics, maybe not really a question about MATLAB in my eyes, because until you know how to s...

plus de 2 ans il y a | 0

Réponse apportée
how to suggest a name to save
Asking a computer to suggest a name is impossible. It cannot know what name might be appropriate, and more importantly, what you...

plus de 2 ans il y a | 0

Réponse apportée
solve function answer is a 2x1 matrix . how to assign it directly to 2 variables ?
For example, I'll compute the mean of an array, which here will generate a vector of length 2. A = rand(10,2); mean(A,1) Defi...

plus de 2 ans il y a | 0

Réponse apportée
How to use substitution on function handle?
ODE45 CANNOT use symbolic parameters. PERIOD. No matter how you try to trick things, you cannot pass a symbolic parameter (here ...

plus de 2 ans il y a | 0

Charger plus