Hi I am not sure if I am in the right forum.
I have a quick concern with the sed command.
I am trying to extract a substring from a string in shell script.
This is my code so far:
cmdRun="-vs LAST_BUS_DAY=20111005"
time_stamp=`echo "$cmdRun" | sed 's/.*([0-9])+.*/\\\\1/'`
echo $time_stamp...
I divided by L/2 and worked fine..the harmonic amplitude lowers as frequency increases. However, the harmonics are not displaying on the correct frequencies. I tried increasing the sampling to more than 2000 ( 10000) but increasing doesnt seem to improve it. Any suggestions?
Hi I am trying to run the fft command on my matlab waveform that I generated.
I created a superimposed waveform of to generate harmonics. The fundamental frequency is 60 Hz and the high frequency is 900 Hz. I want to be able to show each of the harmonics in the FFT spectrum
a = 1; % alitude...
Hi I am trying to assign a vector into a cell of another vector
this is what I have so far:
Population = zeros(20,1);
A = ceil(8 * rand(10,1));
Population(1,1) = A
I get the following error:
Subscripted assignment dimension mismatch.
I am only trying to assign A to the cell with row 1 and...
Hi,
I am a newbie in matlab. I am trying to initialize an empty matrix with certain dimensions.
X = 1:5;
Y = 1:1;
[X, Y] = ndgrid(x, y);
tabuList = [X,Y];
for i = 1:5
tabuList(i,1) = 'EMPTY';
end
However, I get the following error
??? Undefined function or...