I am new to MATLAB and I am trying to perform the task of removing redundancies from a two column vector.
One column holds the indices, the other column holds the values. I don't know how to remove the redundant values!
Any ideas? I have hear that Unique works, but I have the feeling...
I have a program for Eulers method >>
% Euler's Method for dy/dt = cost
k = 1;
y0 = 0;
npoints = 500;
dt = 0.01;
y = zeros(npoints,1); % this initializes the vector y to being all zeros
t = zeros(npoints,1);
y(1) = y0; % the initial condition
t(1) = 0.0;
I was just thinking, shouldn't hooke's law be represented with an exponential equation?
I am thinking that in class, the springs we use for the hooke's law experiment are small, but if they were very large, then the higher coils would be sustaining much more weight than the lower coils, and...
This problem is similar to a problem that appeared sometime back on this website called "last geometry challenge, very difficult!"
The problem was this: There is a circular field of grass of radius r surrounded by a fence. If aa sheep is tethered to the fence, how long should...