Answered
Hello, Quadratic and power curve fitting
What do you expect? As you generated it, we see: f_exp f_exp = Columns 1 through 13 6360.5 10567 ...

8 years ago | 0

Answered
symbolic equation Empty sym: 0-by-1
Being new is irrelevant. This is just a question of mathematics. Sym produces an empty result because there is no analytical sol...

8 years ago | 0

Answered
why is my plot shows nothing?
Because you need to read the getting started tutorials for MATLAB? In 3 simple (truly basic) lines of code, I see 4 significant ...

8 years ago | 3

| accepted

Answered
how to convert logical into charactor
To answer the question you insist on asking multiple times. L is a logical vector. C a character array. L = rand(10,1) <...

8 years ago | 2

Answered
how do I make a temperature data matrix as sparse matrix
data = [1901 22.4 24.14 29.07 31.91 33.41 33.18 31.21 30.39 30.47 29.97 27.31 24.49 1902 24.93 26.58 29.77 31.78 33.73 32.9...

8 years ago | 2

Answered
Regarding Matrix row subtraction! Please Help, Urgent
Works for me. A=[6 5 6;2 4 1]; A(2,2)-A(1,2) ans = -1 I would suggest that A is probably of class uint8....

8 years ago | 0

| accepted

Answered
Sparse Matirx
From what existing matrix? In what form? If you already have a matrix, then the sparse function will convert it to sparse for...

8 years ago | 0

Answered
How can I plot a function of 2 variables which are dependent on another one?
So this is really a function of ONE variable, not two. Yes. There are intermediates in the computation. So what? t = 0:...

8 years ago | 0

Answered
orthogonal matrix with different size of rows and columns
So can you do what you want? If your goal is to find a set of n vectors of length d, such that they are orthogonal to each other...

8 years ago | 0

Answered
Passing predefined variables into matlab's fit function
Lots of ways I guess. To make it all explicit, here is an example of one way: % a fixed parameter: E = 1.25; % some...

8 years ago | 3

| accepted

Answered
is this a scam
This is the internet. NEVER trust anyone that willing to offer to do your work, and all you need to do is pay them for the servi...

8 years ago | 1

Answered
Surface Roughness of 3D Scatter Plot
Despite the little information you have given us, conspicuous in its absence is what we are not told. So while KSSV MIGHT be on ...

8 years ago | 1

Answered
Getting vertcat error, not using vertcat
Your code: ID=5415; K=ID/1000; uts=1; uph=0.5; a=0.05; b=1.5; for n=1:100 k5(n)=a+(b-a)*ra...

8 years ago | 0

| accepted

Answered
Function lsgnonneg - I have used this function, but the results are not good.
ARGH! For a matrix of this size, save it using the save command!!!!!! Saving the array as a text file, with file type .mat is NO...

8 years ago | 0

Answered
Find plane equations given two parametric line equations
The biggest trick here is to learn to use MATLAB! MATLAB is a vector & array language. So learn to use those capabilities. Fi...

8 years ago | 1

| accepted

Answered
Curve fitting 3d closed surface
Not completely trivial. Yes, you can use regression tools to try to estimate the parameters of a conic form etc., but you would ...

8 years ago | 0

Answered
fsolve stopped because the problem appears regular
Why in the name of god and little green apples would you use fsolve to solve for the roots of a 1-d polynomial problem? Oh. Yes....

8 years ago | 3

Answered
how can i generate real random numbers?
First, they are not truly random if you use a computer and an algorithm. They will only be pseudo-random. So they will at best h...

8 years ago | 0

Answered
How to find u value at a point on cubic curve
So you have 4 points on a parametric curve, thus (x(u),y(u)), for 4 values of u? Just use polyfit, getting a cubic for x(u), ...

8 years ago | 0

Answered
Inaccurate roots found using Newton Raphson method for 2 variables
One of the first things I ALWAYS tell people to do, especially when they see something confusing to them, is to plot EVERYTHING....

8 years ago | 1

| accepted

Answered
Logical Vectors and &
The & operator works on the elements of the two variables element-wise. Since All elements of B are 0 (false) and it is true ...

8 years ago | 0

| accepted

Answered
how can I write a multiplication of variables to graph?
MATLAB does not know that you have decided that xy is the product of two variables. Mind reading is not a strong point for compu...

8 years ago | 0

Answered
5th root with Newton-Raphson code
What is wrong? I'd start by pointing out that this is NOT Newton's method as you wrote it. https://en.wikipedia.org/wiki/Newt...

8 years ago | 0

Answered
Function inside function - generating Random Walks
As far as why that error occurs, LOOK AT YOUR CODE! READ THE ERROR MESSAGE! "Output argument "p" (and maybe others) not ass...

8 years ago | 2

| accepted

Answered
Hide random values from matrix
There are lots of ways you could "hide" something. Simplest would be to make a copy of your matrix. Then choose some subset o...

8 years ago | 0

| accepted

Submitted


Partitions of an integer
List all partitions of an integer

8 years ago | 6193 downloads |

4.9 / 5

Answered
Why it is not fitted? How i can plot exponential fit?
Never write basic code to solve a problem that has already been solved and written by people who are experts at it. In the case ...

8 years ago | 1

Answered
trying to optimize three functions simultaneously
You cannot do it in general, to get a simultaneous optimum, so a point that is optimum for all three at once. However, if you...

8 years ago | 2

| accepted

Answered
Matlab floating point precision.
Never trust the least significant bits of a floating point number, at least unless you know enough about the extent that you can...

8 years ago | 0

| accepted

Answered
How can I fix this?
I'm not going to debug that confusing mess of code. Sorry. And it looks as if my statement about the solution being an oscillato...

8 years ago | 2

Load more