Answered
How to Make m script run faster?
Yes. And well, No. Just wanting your code to run more quickly is not going to work. There is no magical way to just automatical...

6 years ago | 1

| accepted

Answered
How can add confidence intervals in the plot generated by the Curve Fitting Toolbox?
I lack your data. But it is simple enough to make some up. x = rand(50,1); y = 1 + 2*exp(0.75*x) + randn(size(x))/10; plot(x,...

6 years ago | 9

Answered
MATLAB have calculate difference values of eigenvectors ? (PCA) need help
It appears you do not see they are the SAME vectors? Except for a sign change, that is. And a sign change does not change a vect...

6 years ago | 0

Answered
How do I index an entire row given a randomised value?
The other answers have already suggested good ways to solve your problem. So I will comment on the problem itself. If the first...

6 years ago | 0

Answered
min- imum number of coins required to pay
Well, you did make a credible effort. More than most students seem to post. Sigh. :) First, you say that the code you wrote doe...

6 years ago | 2

Answered
How can i select correct initial points to use fsolve effectively?
You cannot magically fix this. I have often used the comparison that any nonlinear numerical optimization routine is comparable...

6 years ago | 0

Answered
How to find the probability (between 0 and 1) of an observation knowing that follow a Normal dist. and knowing its mean and variance?
You misunderstand what a PDF represents. This is a common mistake, suggesting you really want to do some reading about basic pro...

6 years ago | 0

Answered
O(h ^ 2 ) and O(^4) derivative method in order to calculate Youngs Modulus
You need to understand the difference between these two forms: dy(i) = (y(i+1)-y(i-1))/2*h; and dy(i) = (y(i+1)-y(i-1))/(2*h)...

6 years ago | 0

Answered
Curve fit or spline fit for a wavy function
If you really want help, then do several things. Provide your data, or a good example of it. Attach it in a .mat file to a comm...

6 years ago | 0

| accepted

Answered
Regression with 15000 rows and 50 variables
Trivial. Tiny fractions of a second. I assume that you mean 50 INDEPENDENT variables, as you have not provided sufficient infor...

6 years ago | 0

| accepted

Answered
infinite plane passing through four points
P=[3.089 42.22 -15.06; 2.728 39.61 -12.88; 3.329 24.87 -33.42; 0.8426 33.42 -42.55]; svd(P - P(1,:)) Unless that t...

6 years ago | 0

Answered
Add parameter (factor) to function
h = @(t) g(t).*f(t); The .* operator was used to make it vectorized.

6 years ago | 0

| accepted

Answered
Error: "Undefined function 'sortrows' for input arguments of type 'double' "
Kind of late, but just so an answer is shown. If you are missing a function that should be there... As in this case, where the ...

6 years ago | 0

Answered
plot command is not work in Gauss Seidel Method
When you tell us that something does not work, you need ot explain why you THINK it does not work. In fact, plot worked perfectl...

6 years ago | 0

| accepted

Answered
Does anyone knows if MATLAB automates the generation of the Jacobian matrix
Assuming you are asking about a tool like fsolve, then yes, it does. The computed Jacobian is created using finite differences. ...

6 years ago | 0

| accepted

Answered
Modulus Problem When Using Floating-Numbers
This is only precision problem, if you accept that means a problem of understanding a floating point arithmetic environment. ...

6 years ago | 2

| accepted

Answered
How to make Triu in reverse axis for triangular matrices ?
Are you asking to do no more than this? A = magic(6) A = flip(tril(flip(A))) That is a simple way to do it. There would be ot...

6 years ago | 0

| accepted

Answered
Zone identification on curve
Should a function automatically identify a staircase function? No. That can be quite difficult, especially if your staircase is,...

6 years ago | 1

Answered
How can I put the outputs of for loop into a matrix?
First, don't use loops at all. For example, with n==3... n = 3; ind = 1:n; a = ind.'*5/n + ind*8/n Since this is probably ho...

6 years ago | 0

| accepted

Answered
Why is it that Matlab has so many data types?
So? If you don't need them, then something you don't use has no impact on you. MATLAB is a complex, powerful language, that can ...

6 years ago | 0

| accepted

Answered
Some difference between MatLab and VS calculation
Which is more correct? Neither is correct in the bolded digits you post. In fact, the digit preceding that is also incorrect, in...

6 years ago | 0

| accepted

Answered
how to plot verticle lines?
Plot two points, connected by a line. Both points will have the same value for x. You can choose the start and end point in y to...

6 years ago | 0

| accepted

Answered
Finding min and max of an element without using builtin function
You are missing the point here. This is an exercise. The intent is for you to find a solution that does not use max or min. Doe...

6 years ago | 1

Answered
3D Printer Costs
Honestly, this is something more easily written using a spreadsheet. They are perfect for such an application. Fill out the hal...

6 years ago | 0

| accepted

Answered
The fix(x) command does not work
Fix does work. You need to understand what you asked it to do. A = [4 3 2 1;2 5 6 2;0 0 1 3;-1 -2 9 8]; format long g B = inv...

6 years ago | 0

| accepted

Answered
Solve: Unable to find explicit solution.
I spent 20 minutes writing a detailed answer to your question, only to find you appeared to have deleted the question. Now it is...

6 years ago | 0

| accepted

Answered
I'm trying to plot this equation, if anyone can help
If no value is supplied for a, then what will you plot? Perhaps you might do this: a = 0.25:0.25:2; L = cell(size(a)); for i...

6 years ago | 0

Answered
How to hinder ongoing spamming II?
I've been deleting the posts as I see them. First, get any new account ids, so I can send that info to our admin, so he can di...

6 years ago | 0

Answered
lsqcurvefit bad fitting results
Honestly, I would NOT solve it like that. Not even remotely so. Using lsqcurvefit for this just seems fraught with problems. Wh...

6 years ago | 0

Answered
understanding and converting two matlab function to c++/c code
You could read the documentation for thse functions. In there, you will find a complete explanation of what those codes do. The ...

6 years ago | 0

Load more