photo

David J. Mack


UniversityHospital Zurich

Last seen: presque 2 ans il y a Actif depuis 2012

Followers: 0   Following: 0

Message

Statistiques

All
  • Knowledgeable Level 3
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 2
  • First Review
  • First Submission
  • 3 Month Streak
  • Thankful Level 1
  • Revival Level 1
  • Knowledgeable Level 2
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

Réponse apportée
how to compute running correlation coefficient
And again... Have a look at <https://ch.mathworks.com/matlabcentral/fileexchange/65342 MOVCORR> Greetings, David

plus de 6 ans il y a | 1

Réponse apportée
How to compute sliding or running window correlation coefficient?
If someone encounters this problem, I have written a function in analogy to the MOVSUM function, which compute the moving Pearso...

plus de 6 ans il y a | 0

Réponse apportée
Rolling correlation / moving correlation
Hey Mate, I have written a function in analogy to the MOVSUM function, which does exactly that: <https://ch.mathworks.com/...

plus de 6 ans il y a | 0

Réponse apportée
How to find next number divisible by n
How about b = n * ceil(a / n) Greetings, David

plus de 6 ans il y a | 0

Réponse apportée
Find RR Interval in seconds
The obvious solution would be: rrInSec = rrInSamples / samplingRateInHz

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Change legend width after reisze of legend line length
Hey Simon, this is an issue which pops up regularly, since the customization options of legends are currentyl (when I last ch...

presque 7 ans il y a | 0

Réponse apportée
How to delete a plot in UIAxes?
You could store the handle to the fitted line in the UserData of the figure and then retrieve it every time the button is hit an...

presque 7 ans il y a | 1

| A accepté

Réponse apportée
Grouping multivariant data for Andrewsplot
Hey! So |andrewsplot| states that "The rows of X correspond to observations, the columns to variables". It seems that you hav...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How changing the loglog scale x and y axis?
Have you tried to use <https://ch.mathworks.com/help/matlab/ref/semilogy.html semilogy> instead of |loglog|, e.g.: semilogy...

presque 7 ans il y a | 1

Réponse apportée
Increase nonzero values without deleting zeros
Hey monmatlab, simply use logical indexing: Y = X; isNonzero = X~=0; Y(isNonzero) = 10*Y(isNonzero); or the more ...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
A very quick question
Hey Radoslav, In general, to convert a logical array to ids use |<http://www.mathworks.com/help/matlab/ref/find.html find>|. ...

plus de 7 ans il y a | 0

Réponse apportée
How to create a new matrix adding vectors of different size based on time
Hey Robert! First, a conceptual question: Can you make sure you have the same sampling interval & phase across all your signa...

plus de 7 ans il y a | 1

| A accepté

Réponse apportée
Plotting a lattice with color coded nodes
Hey Bill! % Generate the random values on the 50x50, 2-dimensional lattice directly % using X = randi(imax,sz1,...,szN)...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How can I adjust the labels on contour lines in a 'meshc' 3D-plot?
Hey Ibrahim, have a look at <https://ch.mathworks.com/help/matlab/ref/contour-properties.html |Contour Properties|> - the |La...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
how to reduce dimensionality of features by usin pca?
To get a simply answer (whitout really adressing the problem), have a look as <https://ch.mathworks.com/help/stats/pcares.html |...

plus de 7 ans il y a | 0

Réponse apportée
Replication factors must be a row vector of integers or integer scalars.
nFilters/16 is probably not an integer. Depending on your needs, try round(nFilters/16) instead or use a number of filters which...

plus de 7 ans il y a | 1

Réponse apportée
TEXTSCAN is my personal nemesis: Quotes strings with commas
Thanks Stephen for staying with me (you where right in the first place; reading the doc carefully helps)! I finally found my ...

plus de 7 ans il y a | 0

Question


TEXTSCAN is my personal nemesis: Quotes strings with commas
Dear all, I thought I acquired some Matlab knowledge over the years. But |textscan| really makes me feel dumb. I can not fi...

plus de 7 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
Replace elements in a SxS matrix with zero, in each column but in different rows
Hey Miroslav, have you looked at the |<http://www.mathworks.com/help/matlab/ref/sub2ind.html sub2ind>| function? Should be so...

plus de 7 ans il y a | 1

Réponse apportée
What does "something = cell (size(session,1),1" mean/look like?
Hey Marie, the above creates a column cell with n elements, where n are the number of rows of session. Cheers, David

plus de 7 ans il y a | 1

Réponse apportée
Import and find a specific number from a text file
Try use regexp: file='c:\Users\David J. Mack\Desktop\test.txt'; numFormat1 = {'[ ]{1,7}(\-?\d+\.\d{3})'}; %e.g. %12.3f ...

plus de 7 ans il y a | 0

Réponse apportée
how to plot auto correlation and cross correlation function in a single figure?
The negative autocorrelation is the same as the positive as you use the same signal for the correlation. So if you want to pret...

plus de 7 ans il y a | 0

Réponse apportée
3D plot of an equation with 3 variables
Hey Amruth, have a look at |<https://www.mathworks.com/help/matlab/ref/surf.html surf>|. Use the surf(x,y,z,c) syntax. Gre...

plus de 7 ans il y a | 0

Réponse apportée
Creating an arbitrary number of displaced Gaussian
Hey Jason, <https://www.mathworks.com/help/matlab/ref/bsxfun.html BSXFUN> is your friend (and your enemy w.r.t. readability): ...

plus de 7 ans il y a | 0

Réponse apportée
interp1 - rant
If its only about the 1x1xN array not working, simply use <https://www.mathworks.com/help/matlab/ref/squeeze.html squeeze>. E.g....

plus de 7 ans il y a | 1

Réponse apportée
How can I label my EEG-data plotting in gui?
Is your data all in the same |axes| or in separate |subplot| s? In the first case use the |text| function and set its |'Unit'| p...

plus de 7 ans il y a | 0

Réponse apportée
Counting Plotted Coordinates in image
If you have your 2xN dot matrix |dots| which presumably contain the x (row 1) and y (row 2) coordinates, then N is the number of...

plus de 7 ans il y a | 0

Réponse apportée
No dublicates in for loop.
Hey Kian, I am not sure if I really understood your problem, but maybe the following solution helps: %Assuming NumeriskD...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
I have a datafile contains data sets (size 200* 15) .how can I apply on all the data a lowpass butterworth filter of 2-order with cutoff fre 10 HZ
Hey Rahul, use <http://www.mathworks.com/help/matlab/ref/filter.html FILTER> with the coefficients created with <http://www.m...

plus de 7 ans il y a | 0

| A accepté

Réponse apportée
How to get Ones along the diagonal
The built-in function <http://www.mathworks.com/help/matlab/ref/diag.html DIAG> is your friend: X = diag(ones(5,1)) Gree...

plus de 7 ans il y a | 2

Charger plus