Respondida
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"; ...

más de 2 años hace | 0

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

más de 2 años hace | 1

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

más de 2 años hace | 1

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

más de 2 años hace | 1

| aceptada

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

Respondida
Coefficents of piecewise polynomial in matlab
Do you understand the result will not be some simple polynomial like you are used to seeing? plot([1 0 -1 0 1],[0 1 0 -1 0...

más de 2 años hace | 0

Respondida
need source code for voronoi
Sorry. MathWorks does not give out source code for compiled functions. So unless you are employed there, you don't get the sourc...

más de 2 años hace | 0

Respondida
Find zeropoints with interpolation
Almost trivial. LEARN TO USE MATLAB! I'll start with a long vector. x = linspace(0,20,1e7)'; y = cos(x); Yes, we know where t...

más de 2 años hace | 1

Respondida
I need help with cubic splines containing pre existing conditions
Easy enough. And ... also somewhat useless, because this is not how you will have been asked to solve the problem. But it might ...

más de 2 años hace | 0

Respondida
I have a problem with the convergence of fsolve ?
Solve simpler problems. Choose even better starting values. Yes, you think yours are reasonable, but they are not as good as yo...

más de 2 años hace | 3

Respondida
Indexing with min and numel
vector1 = 1:5 vector2 = 2:7 N = max(numel(vector1), numel(vector2)) I'm not sure what you mean by indexing. But the above see...

más de 2 años hace | 1

Respondida
Dsolve gives extra term
Why do you care? Note that C1 is completely arbirtrary! C1 is an unknown constant! So you can trivially add or subtract any c...

más de 2 años hace | 3

Respondida
How to find the best combinations of calculation of function with 36 input constants, each constant is possible to calculate in 3 ways
Brute force is NEVER going to be a good idea. Instead, if you have the global optimization toolbox... help ga

más de 2 años hace | 0

Respondida
which method is usied to solve the Determinant in Matlab
JUST READ THE HELP! (Actually, doc det.) In there, you will see this statement: det computes the determinant from the triangula...

más de 2 años hace | 3

Discussion


Should the AI apply to all questions posted on Answers?
I saw this post on Answers. https://www.mathworks.com/matlabcentral/answers/2046770-explaining-a-matlab-code/?s_tid=ans_lp_feed...

más de 2 años hace | 3

Respondida
Alternate function of gdivide
help gdivide As you should see, gdivide provides a great deal of very general functionality. And that means it will also includ...

más de 2 años hace | 0

| aceptada

Respondida
how create cell 1:10 vertical
There are always many ways to solve a problem. An easy way to create the cell array directly is to do this: C1 = {1;2;3;4;5;6;7...

más de 2 años hace | 0

Respondida
How can I fill the area under a curve with different colors?
Simple. Just use fill (or patch) to fill THREE patches, each with the desired color. How can it be any simpler? Or, you could ...

más de 2 años hace | 2

Respondida
How to use MATLAB to complete the rank of a matrix?
Trivial. Replace the offending columns with vectors of random numbers. DONE. With probability 1, the result will be full rank. ...

más de 2 años hace | 0

| aceptada

Respondida
how to solve a simplified 2D trajectory problem with defined points and derivatives
I think what you are missing is the time required to perform this movement between points. You have specified the start locati...

más de 2 años hace | 1

| aceptada

Respondida
How to count the occurrence of numbers in certain value range (show 0 if no occurrence)
The simple answer is you want to use the wrong tool. Yes, it looks like you want to use groupcounts. But you don't. P=[1 1 3 4 ...

más de 2 años hace | 0

| aceptada

Respondida
How to extrapolate the first 5 points
load points.mat x = points(:,1); y = points(:,2); i1 = 1:5; i2 = 6:336; plot(x(i1),y(i1),'ro',x(i2),y(i2),'g.') I have no ...

más de 2 años hace | 0

Respondida
What is the mechanism or math behind the function islocalmax(A)?
Someone who is not an employee of TMW cannot see the code. (I can't, as I am not an employee.) And if someone is an employee, th...

más de 2 años hace | 1

| aceptada

Respondida
how to find data points of function passed through a distorted "pipe"?
A difficult question to answer, since so much is left to guess. And the vaguesness of your question suggests all you want is a r...

más de 2 años hace | 0

| aceptada

Respondida
How can we solve an equation if it has infinite number of solutions?
Can you ALWAYS find all solutions to a problem in some interval? NO. Sometimes, the use of returnconditions will help, since it ...

más de 2 años hace | 0

Cargar más