Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by akaballa

  1. akaballa

    sed a substring out of a string

    Yes my operation is looking for 8 consecutive numbers.
  2. akaballa

    sed a substring out of a string

    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...
  3. akaballa

    FFT implementation for harmonics

    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?
  4. akaballa

    FFT implementation for harmonics

    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...
  5. akaballa

    Dimension mismatch when trying to insert array into cell

    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...
  6. akaballa

    Matlab Matrix Initialization

    Oh ok, i get it! Thanks a lot guys!
  7. akaballa

    Matlab Matrix Initialization

    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...

Part and Inventory Search