Answered
How to find vectors that are multiple of other vectors inside a matrix
This is way easier than it has been made to be. F = [0 1 2; 1 2 3; 0 2 4; 5 6 8; 2 4 6]; Assuming you have a recent rele...

8 years ago | 5

| accepted

Answered
Taylor serie limitation??
To make this into an answer, I'll compute the first few terms of a series, expanded around lam = 1.03e-6. n=8 is as far as I bot...

8 years ago | 0

Answered
I'm trying to make an algorithm for Lagreange Interpolation Equation but the result won't show up, what did I do wrong?
High order Lagrange interpolation will produce numerical garbage. xArr = xlsread('TUGAS FISKOM.xlsx','Dataset','A2:A33'); ...

8 years ago | 0

Answered
How to integrate anonymous functions
It seems you understand how to form A(x), from D(x). That is, you knew to use D(x) in there, when you wrote the function handle ...

8 years ago | 0

Answered
How to solve polyfit(x,y,1) by hand?
To solve it without MATLAB, just read ANY of hundreds of books or websites about linear regression modeling. Start here: ...

8 years ago | 0

Answered
Increase MATLAB precision without using vpa or sym
No. Well, you could use my HPF toolbox, but that too would require mods to your code. You cannot simply tell MATLAB to use...

8 years ago | 1

Answered
ODE solvers for non-unique data
ode45 does not use "data", so this is not really relevant to ode45. However, interp1 does do interpolation. And interpolation...

8 years ago | 0

| accepted

Answered
exponential and polynomial equation
Don't use solve. If all the other variables are known, then just use fzero. Is Rut a variable? Or a function? If you think th...

8 years ago | 0

| accepted

Answered
Plot graph of roots versus coefficient of polynomial
The problem with your code as you wrote it is you put the plot INSIDE the loop, plotting a new point each time. But that is N...

8 years ago | 0

| accepted

Answered
why mincx is slow for high number of variables?
One thing you should have learned in class at some point is that larger problems do not always take the same amount of time to s...

8 years ago | 0

Answered
I want to do this:2.38987696573583658648235686+5.6387649837698237687649879932 and i need all digits,vpa dosen't work properly.Is there any function to do it?
First, when you do this: vpa(0.123456789123456789123456789) MATLAB stores the input to VPA as a DOUBLE. MATLAB does all...

8 years ago | 1

| accepted

Answered
symbolic equation system solving with a lot of simple equations
People seem to think that shorthand that makes sense to them is always going ot make sense to a computer. syms f1 f2 f3 f4 ...

8 years ago | 0

| accepted

Answered
LU decomposition and updating vectors in a for loop
Does A stay fixed. Or does it vary each time in the loop? I cannot imagine why you are asking this question if A does not stay f...

8 years ago | 0

Answered
Combination of diffrenet matrixes
Of course you got an error. Did you write code for what you wanted? No. This is what you wrote: M =[A, B; B, C] But w...

8 years ago | 1

| accepted

Answered
how can I solve two equations with two unknown variable using matlab?
point_x = 2; point_y = 4; length_tang = 1 r = 5; syms x y E = [(-x)*(point_x - x) + (r - y)*(point_y - y) == ...

8 years ago | 0

| accepted

Answered
Normal distribution for a given range of numbers.
A normal distribution does not have limits. In theory it is possible to see generated points that lie all the way out to infinit...

8 years ago | 8

Answered
Most efficent way of finding submatrices of a matrix
Might I suggest you are doing this the wrong way? And fairly massively so? A = [ 0 1 1 1 0 0 0 ...

8 years ago | 2

| accepted

Answered
Optimizing a calculation. Try matrix values to meet a condition.
Why not just use some basic algebra? I'll do it in MATLAB, as it will be faster that way. By the way, using eps as a varia...

8 years ago | 1

Answered
Is it possible to change the interpolation methods used in a function?
No. You cannot somehow magically change the way code is written. Just wanting it to be different is not sufficient. A quick read...

8 years ago | 0

Answered
How do you order the vertices of a non-convex polygon?
Simplest is to use a traveling salesman solver. theta = linspace(pi/2,-pi/2,10)'; xy = [0 0; 1 1; 0 1; 1 0;1 - cos(theta...

8 years ago | 0

Answered
Where do I start on this Price vs Profit problem?
Can you generate a vector of prices? Of LINEARLY SPACED possible prices? What function would you use for this? (If you have n...

8 years ago | 0

Answered
Limit divergence of polynomial fitting
The simple answer for this is to ask a question. WHY IN THE NAME OF GOD AND LITTLE GREEN APPLES ARE YOU USING A POLYNOMIAL????? ...

8 years ago | 1

| accepted

Answered
Matlab can graph a surface and in vector in R3 at the same time?
Time to read about the hold command. hold on Use it between the two plotting operations.

8 years ago | 0

Answered
How I solve equation which contain variables of two different vector
Works for me. Funny. a=[1 2 3]; b=[4 5 6]; c=4; d=(c*a)./(2*pi*b) d = 0.15915 0.25465 0.318...

8 years ago | 0

Answered
Trouble with error from polyfit
The pixels in an image are stored as uint8 (apparently in this case). Is that not what the error message effectively told you? ...

8 years ago | 1

| accepted

Answered
Reconstruct grid from partial data
The points are not on a regular lattice. They seem to be on a skewed lattice, but even at that, they are not perfectly in straig...

8 years ago | 0

Answered
Solve two equations simultaneously
NO. NO. NO. It is NOT true that the intersection of two surfaces is the same as solving two equations simultaneously!!!!!!!!! ...

8 years ago | 0

Answered
this code is giving same values of x irrespective of change in the power of xdata in fun???i am changing power 0.5 to 0.9 no change in output??
The answer is always to think clearly about what you did. Look at the numbers. xdata =[10.^(-5) 10.^(-4) 10.^(-3) 10.^(-2) ...

8 years ago | 0

Answered
How do i get fminsearch to fit for my psychometric data?
A better fit can be achieved using a spline. My SLM toolbox did this on your data: mdl = slmengine(lux,brightper,'plot','on...

8 years ago | 1

| accepted

Answered
No performance improvement with preallocating for object arrays
First. There are many ways of pre-allocating a matrix!!!!!! Ones pre-allocates with ones, not zeros, for example: x = o...

8 years ago | 0

Load more