Question

Logical indexing of cell array

Hi all, There is a probably a very simple solution to this but my mind has gone blank. I have a matrix which I am filtering...

5 years ago | 1 answer | 0

Question

how to zoom and pan using getframe()

Hi, I am trying to make a movie by scanning around a 3D plot and then zooming in a and panning towards a part of the obj...

6 years ago | 1 answer | 0

Question

Query about data types and whos

Hi, I have a variable flights_2011 and when I run the command whos it says it is a double array of size 1x35040 however the s...

6 years ago | 1 answer | 0

Question

Possibility of using vectorisation here?

Hi there - I am currently using this bit of code but it is very slow to execute, I'm sure there is a way to speed up the process...

6 years ago | 0 answers | 0

Question

remove whitespace from cell array

I have a cell array which looks something like this; 'DS 5376' 'FR 8241' 'B 1257' 'BG 09857' 'TR 3017' ...

6 years ago | 1 answer | 0

Question

plotyy - how to change line width, colour and xaxis labels

Hi all, I am trying to use the plotyy function to plot a bar chart with a line graph on top. Generally I have managed to achi...

6 years ago | 2 answers | 0

Question

Using readxls alldata option

Hi, I am using the readxls to import data into Matlab, the third output of which reads alldata - a subset of my data is as fo...

6 years ago | 1 answer | 0

Question

Saving cell arrays efficiently

Hi Does anyone know or have an opinion on the most efficient way of saving and retrieving a cell array - my array is ~1x500 ...

6 years ago | 1 answer | 0

Question

Exracting n characters from all elements of cell array

Hi, I have some data in the following form and would like to extract separate the date and time components, therefore creatin...

6 years ago | 1 answer | 0

Question

Input arguments for functions where argument is a structure

How do you input arguments for functions where argument is a structure? The specific example i am trying to use is the MaxIter ...

7 years ago | 1 answer | 0

Question

Changing SVM options parameters

I am trying to set the options for the svmtrain function to increase the number of MaxIter from default. Rather than being the n...

7 years ago | 0 answers | 0

Question

Log axis on plots of different types

I am trying to create a plot whereby I have 4 curves made up of a number of points connected by a spline. I have managed to crea...

7 years ago | 2 answers | 0

Question

Reading binary files with fread

Hi everyone, I am trying to read a signal from a binary file. After lots of head scratching I have found a way of doing this....

7 years ago | 1 answer | 0

Answered

Noise Cancellation Without reference signal

It sounds like you are after an Adaptive Linear Enhancer (ALE) - some info given here http://www.mathworks.co.uk/help/dsp/exa...

Noise Cancellation Without reference signal

It sounds like you are after an Adaptive Linear Enhancer (ALE) - some info given here http://www.mathworks.co.uk/help/dsp/exa...

7 years ago | 0

Question

Replacing a for loop?

Hi, I've written a small script to calculate the short time energy function of a signal. However it feels a bit clunky and my...

7 years ago | 1 answer | 0

Question

Parallel loop variable query

Good morning, I am trying to run a genetic algorithm to find the best parameters for a denoising a signal using ALE. I have t...

7 years ago | 1 answer | 0

Question

Kernel density distribution where range is polar

Hi there, I am not sure if the question heading makes sense but I will try to explain my problem more clearly here. I have a ...

7 years ago | 0 answers | 0

Question

Calculate matrix from symbolic equation

Hi everyone, I have used the following code to generate a symbolic equation for a plane given 3 points. P1=[1747 444 105...

7 years ago | 1 answer | 1

Question

How to plot a line on a log plot

I am trying to plot a line on a log plot. I am using the same method as if I was to draw a line on a standard plot ie. hold on, ...

7 years ago | 1 answer | 0

Question

Help reading and cleaning data from text file

Hello everyone, I am currently having difficulties trying to read a text file in Matlab. A small example is shown below. M...

7 years ago | 1 answer | 0

Question

Replace any string in matrix with NaN

I had a previous problem where I wanted to replace any string 'Bad' with NaN. A forum member suggested the following code wh...

7 years ago | 1 answer | 0

Question

Using fscanf when some elements are not floating point

Hi there I am trying to use fscanf to read a measurement text file. The file is a matrix of (480x640) floating point numbers....

7 years ago | 1 answer | 0

Question

Very simple simultaneous eqs.

I am working on a script to pinpoint acoustic sources from differences in arrival times. This is a very basic question but I'm n...

9 years ago | 1 answer | 0