Long time acoustics signal processor.

Answered

Reading csv files that have mixed string and numbers, with inconsistent columns and rows

I think the way I'd approach this is with something like the following. fid = fopen('myfile.csv'); myline = fgetl(fi...

Reading csv files that have mixed string and numbers, with inconsistent columns and rows

I think the way I'd approach this is with something like the following. fid = fopen('myfile.csv'); myline = fgetl(fi...

3 years ago | 0

| accepted

Question

Report Generator suddenly stopped working... Undefined function or variable 'report'.

We purchased the report generator add on a few weeks ago. I've been using it regularly. This morning I went to start it up a...

3 years ago | 0 answers | 0

Answered

interpolate only between columns

Can you just transpose the matrix before you interpolate? Y = Y';

interpolate only between columns

Can you just transpose the matrix before you interpolate? Y = Y';

3 years ago | 0

Answered

Convert Minutes to Seconds

no idea why it behaves that way. However, you should check out <http://www.mathworks.com/help/matlab/ref/datetick.html dateti...

Convert Minutes to Seconds

no idea why it behaves that way. However, you should check out <http://www.mathworks.com/help/matlab/ref/datetick.html dateti...

3 years ago | 0

Question

Having trouble with fonts and centering a plot using Report Generator

Currently using the Report Generator app on Linux to generate pdf reports. When I use the Direct PDF (Default Template) forma...

3 years ago | 1 answer | 0

Answered

How to see the time difference of the same day for different time zones?

also look at tzoffset. Not sure what versions it's in http://www.mathworks.com/help/matlab/ref/tzoffset.html

How to see the time difference of the same day for different time zones?

also look at tzoffset. Not sure what versions it's in http://www.mathworks.com/help/matlab/ref/tzoffset.html

3 years ago | 0

Answered

line thickness issue, LineWidth acts as an integer

as far as I know the only available line widths are 0.5, 1.0, 2.0, 3.0, 4.0 etc...I suspect it's a floating point to accommodat...

line thickness issue, LineWidth acts as an integer

as far as I know the only available line widths are 0.5, 1.0, 2.0, 3.0, 4.0 etc...I suspect it's a floating point to accommodat...

3 years ago | 0

Answered

Plot the signals y(t)=sin(8πt) and g(t)=sin(18πt). Then sample both with a sampling period of 1/13s. Sketch the discrete signals. What do you observe?

Since t is an array, and you want y and g to be arrays, you need to use the . notation for operations... so for example, repl...

Plot the signals y(t)=sin(8πt) and g(t)=sin(18πt). Then sample both with a sampling period of 1/13s. Sketch the discrete signals. What do you observe?

Since t is an array, and you want y and g to be arrays, you need to use the . notation for operations... so for example, repl...

3 years ago | 0

Answered

How can I make a title/label bold and large in LaTeX?

I don't have superlabel installed, but you might try something like this... [a,h]=suplabel('super Title' ,'t'); set(h,...

How can I make a title/label bold and large in LaTeX?

I don't have superlabel installed, but you might try something like this... [a,h]=suplabel('super Title' ,'t'); set(h,...

3 years ago | 1

Answered

Extracting a sub-hertz modulating wave.

Why not just use a low pass filter?

Extracting a sub-hertz modulating wave.

Why not just use a low pass filter?

3 years ago | 0

Answered

transfer function frequency response

Take the fourier transform of both signals, then the transfer function will be the FFT of the cavity divided by the FFT of the r...

transfer function frequency response

Take the fourier transform of both signals, then the transfer function will be the FFT of the cavity divided by the FFT of the r...

3 years ago | 0

Answered

Level of noise in fft

This looks like you aren't windowing your data properly before you take the fft of it. Try applying a Hamming or Hanning window...

Level of noise in fft

This looks like you aren't windowing your data properly before you take the fft of it. Try applying a Hamming or Hanning window...

3 years ago | 0

| accepted

Question

question about when a callback function is supposed to be called.

In my program, which is written in App Designer, I have a Text Edit Field which contains the path to my data directory. One c...

3 years ago | 1 answer | 0

Answered

Programmatically add AppDesigner uicontrol

Instead of generating buttons, I think it would be better to populate a Drop Down with the names of the files, and open them tha...

Programmatically add AppDesigner uicontrol

Instead of generating buttons, I think it would be better to populate a Drop Down with the names of the files, and open them tha...

3 years ago | 0

Answered

Table won't sort?

One way to do this is to add another column in your table made up of datenums generated by your dates. Then sort your table bas...

Table won't sort?

One way to do this is to add another column in your table made up of datenums generated by your dates. Then sort your table bas...

3 years ago | 0

Answered

scaling down 0x axis coordinates of a graphic

Is this what you're looking for? x = 1:.5:56; %example initial array with spacing of 1/2 from 1 to 56 %subtract the...

scaling down 0x axis coordinates of a graphic

Is this what you're looking for? x = 1:.5:56; %example initial array with spacing of 1/2 from 1 to 56 %subtract the...

3 years ago | 0

Answered

Anyone know where I can find the source code for conv2.m?

I found this. Though I couldn't tell you if its the one that works for you or not. <http://freesourcecode.net/matlabprojects...

Anyone know where I can find the source code for conv2.m?

I found this. Though I couldn't tell you if its the one that works for you or not. <http://freesourcecode.net/matlabprojects...

3 years ago | 0

Answered

How to read Multiple CSV files in multiple sub folders

Not sure exactly how you want to merge the csvs, but the basic way to run through all the directories is this... inp...

How to read Multiple CSV files in multiple sub folders

Not sure exactly how you want to merge the csvs, but the basic way to run through all the directories is this... inp...

3 years ago | 0

Answered

Double exponential fits, but single curves away from the data- why?

very steep power laws can be notoriously difficult to fit, since small changes in x lead to big changes in y, it makes it hard o...

Double exponential fits, but single curves away from the data- why?

very steep power laws can be notoriously difficult to fit, since small changes in x lead to big changes in y, it makes it hard o...

3 years ago | 0

| accepted

Answered

A moving point along a graph.

You put the plot inside of a loop and update the position of the point each time... x = 0:.01:6; y = sin(x); px =...

A moving point along a graph.

You put the plot inside of a loop and update the position of the point each time... x = 0:.01:6; y = sin(x); px =...

3 years ago | 0

Question

How can I save a figure within app designer?

I've developed an application using the new App Designer. I'd like to have users be able to click a button and save a figure to...

3 years ago | 13 answers | 6

Answered

Where is SPI simulink block for raspberry ?

This question should be asked on a raspberry pi board, but... I believe it depends on which raspberry pi you're using... <ht...

Where is SPI simulink block for raspberry ?

This question should be asked on a raspberry pi board, but... I believe it depends on which raspberry pi you're using... <ht...

3 years ago | 0

Answered

How to save values as one variable from a for loop

save them in an array. Say you process the loop N times... myArray = zeros(1,N); %initialize array to all zeros for i...

How to save values as one variable from a for loop

save them in an array. Say you process the loop N times... myArray = zeros(1,N); %initialize array to all zeros for i...

3 years ago | 0

| accepted

Answered

I am getting Subscripted assignment dimension mismatch in the following code.

Gonna be hard to troubleshoot this without seeing what hog_features_vector() returns, or what the dimensions of T are. my gue...

I am getting Subscripted assignment dimension mismatch in the following code.

Gonna be hard to troubleshoot this without seeing what hog_features_vector() returns, or what the dimensions of T are. my gue...

3 years ago | 0

Answered

I am getting this error:

I don't get an error, are you sure the code above is what you have in your program?

I am getting this error:

I don't get an error, are you sure the code above is what you have in your program?

3 years ago | 0

Answered

plotting points with different colors

something like this maybe? RegionsMap = randi([1 4],10,10); x = rand(1,10); y = rand(1,10); figure(10); ...

plotting points with different colors

something like this maybe? RegionsMap = randi([1 4],10,10); x = rand(1,10); y = rand(1,10); figure(10); ...

3 years ago | 1

Answered

How can i convert multiples lines into 1 text string (big block)

file = textread('text.txt', '%s', 'whitespace',''); file will be a cell array containing the string you want.

How can i convert multiples lines into 1 text string (big block)

file = textread('text.txt', '%s', 'whitespace',''); file will be a cell array containing the string you want.

3 years ago | 0

Answered

Why are the results of my spectrogram sinusoidal?

You don't want just the real part of the fft, you want the magnitude of it. change s_real = real(s) to s_mag =...

Why are the results of my spectrogram sinusoidal?

You don't want just the real part of the fft, you want the magnitude of it. change s_real = real(s) to s_mag =...

3 years ago | 0

| accepted

Answered

Why doesn't my for loop work?

The method you are using...remove all elements in the array that aren't matchValue, then when done, counting the number of eleme...

Why doesn't my for loop work?

The method you are using...remove all elements in the array that aren't matchValue, then when done, counting the number of eleme...

3 years ago | 0