Community Profile

photo

Jose Rego Terol


Last seen: 3 years ago Active since 2019

Statistics

  • Explorer
  • Thankful Level 3
  • First Answer
  • First Review

View badges

Content Feed

View by

Question


Plot segments of an array with NaN using a for loop
Hi, I got an array with NaN. I want to plot, step-by-step, those segments of integers, that exceed a threshold and flanked by N...

3 years ago | 1 answer | 0

1

answer

Question


low-pass filtering a signal within a range determined by signal amplitude
Hi all, I have this problem (see the picture attached). The baseline is noisy, so I have applied a lowpass filter (1 Hz, y=lo...

3 years ago | 1 answer | 0

1

answer

Question


Is uicontextmenu working for R2020a? // Answer: NO. Use R2019b instead.
Hi all, So I have this function to zoom and pan the plot by clicking the right mouse button. function zoom_pan hCM = uicont...

3 years ago | 0 answers | 0

0

answers

Question


Build App. No matching files were found: Android app with simulink
Hi all, I want to install the Simulink Support Package for Android Devices. At this step (see the picture attached), my comp...

3 years ago | 0 answers | 0

0

answers

Answered
Mirror bar chart: 2 bar charts, 2 y axes, 1 x axis. Is it possible?
Nearly done figure ax1 = axes('Position',[0.138095238095238 0.529474812433012 0.791904761904761 0.400525187566988]); bar(ax1,...

3 years ago | 1

Question


Mirror bar chart: 2 bar charts, 2 y axes, 1 x axis. Is it possible?
Hi all! I want to get this mirror bar chart. Tried everything but nothing works. Any idea?

3 years ago | 1 answer | 0

1

answer

Question


How can I set one lsline using gscatter?
Hi, So, I got 4 groups. By using gscatter I can colour each group. Now I want one lsline but I got 4 differnet lsline, one per...

3 years ago | 1 answer | 0

1

answer

Question


How to call a function within ax=gca format
Hi, I got a plot I want to colour the X Tick labels using cmu matlab package (http://matlab.cheme.cmu.edu/2011/09/13/check-out...

3 years ago | 1 answer | 0

1

answer

Question


Operations in structure with N fields named sequencially.
Hi, I created this structure (S) with 26 fields named sequencially. Each field has only one column and N number of rows (e.g....

4 years ago | 1 answer | 0

1

answer

Question


The ecdf(x) always starts from the origin of the axis
Hi, The curve of ecdf starts at f(x)=0.2, x=0.04, but MatLab doesn´t feel it is a good beginning, so the curve always starts fr...

4 years ago | 1 answer | 0

1

answer

Question


Problems including a new KeyPressFcn to call a function in axdrag file
Hi all, I am using this file (axdrag) with my plot. I included new lines to call a function when the key 'g' is pressed but it ...

4 years ago | 0 answers | 0

0

answers

Question


How can I get the SD of baseline noise?
Hi all, This current signal was filtered at 3 kHz, and digitized gap-free signal was filtered at 6.25 kHz (160 microseconds). T...

4 years ago | 0 answers | 0

0

answers

Question


How to filter a signal with lowpass/highpass?
Hi all, I am completely new in this field. Therefore, I need some help from the scratch. According to a protocol, I have to f...

4 years ago | 1 answer | 0

1

answer

Question


How to set a scale in a figure (similiar to Google Maps)
Hi all, I have the following set of data, time versus Intensity. When I plot them want to draw a scale that changes accordingly...

4 years ago | 1 answer | 0

1

answer

Question


Assign the space bar to ginput.
Hi all, I want to assign the key32 (spacebar) to ginput. I have a figure with spikes and I want to select manually each spike. ...

4 years ago | 0 answers | 0

0

answers

Answered
How to load two different variables, one after the other, in a nested for-loop with N number of variables for each type.
for j = 1 : length(theFiles_natSort_fs) fullFileName_fs = theFiles_natSort_fs{j}; [~, baseFileName_fs, ext] = filepart...

4 years ago | 0

Question


How to load two different variables, one after the other, in a nested for-loop with N number of variables for each type.
Hi all, I have two different files, "Spike No" and "Foot Spike". The number of each file is equal. Let's say 100 files for Spik...

4 years ago | 1 answer | 0

1

answer

Question


for loop in an array to substract the values of the array and find a specific value
I have an array of 200 values. This is the operation I need to program: The value in the position X minus the value in the posi...

4 years ago | 3 answers | 0

3

answers

Answered
How to add newline to x label of a plot ?
I tried this but I got an error. xlabel({'Time (s)';'foot-Spike:' num2str(fs)}) Error using vertcat Dimensions of arrays be...

4 years ago | 0

Question


How can I save the total number of each selection from a listdlg using num2str?
Hi all, I want to display how many times each choice of a list has been selected in the xlabel plot. This is the code for the ...

4 years ago | 1 answer | 0

1

answer

Answered
Problem finding the nearest value to specific number
I've tried with this, but I got an empty box for my parameter "ini_amp". So, the reasoning behind this code was to use "size" in...

4 years ago | 0

Question


Problem finding the nearest value to specific number
Hello, I am using this code seen in this thread: https://es.mathworks.com/matlabcentral/answers/375710-find-nearest-value-to-s...

4 years ago | 1 answer | 0

1

answer

Answered
Load concatenated .mat files in a for loop
Hi Kevin, "pad the filenames with 0's programatically and re-sort. " I tried this option "Spike Nr_01, Spike Nr_02 ... Spike N...

4 years ago | 0

| accepted

Question


Load concatenated .mat files in a for loop
Hello all. I have this code. The problem is that, when I have 11 files, the for loop takes the file "spike 11.mat" before the f...

4 years ago | 1 answer | 0

1

answer

Question


Two questdlg with two switch
Hi all, I have this code to analyze spikes. I want to include a second question dialog that is prompted when the user selects ´...

4 years ago | 0 answers | 0

0

answers

Answered
How to store two tables resulting from a for loop
Hi! This thread is being very useful but I cannot find the way to save my tables in a excel file. Here is the code for jj = 1...

4 years ago | 0

Answered
How can Ido the same operations with multiples files using for-loop
Hi Adam, Thanks for your comment. Here I attached the functions as m-files and the files I want to load both to the for-loop an...

4 years ago | 0

Question


Problem calling multiple files through for-loop
This is the for-loop function, named spike_analysis_wrapper: function spike_analysis_wrapper() filepairs = { 'spi...

4 years ago | 1 answer | 0

1

answer

Question


How can Ido the same operations with multiples files using for-loop
I developed the a code for one specific file (spike1.mat). Now I want to run this code for n files (spike1.mat, spike2.mat, spik...

4 years ago | 2 answers | 0

2

answers