Answered
Concatenated Segmentation using Overlapping Windows
hello example below : % dummy data data = rand(80,5); shift = 5; % nb of samples for averaging buffer = 50; % nb o...

6 years ago | 1

Answered
How to circ_mean every 5 elements?
hello demo code below : % dummy data data = rand(320,15); buffer = 5; % nb of samples for averaging % zero overlap ...

6 years ago | 0

| accepted

Answered
how to import the result into excel file
hello see 2 methods example below : for k=1:10 xlswrite('Result.xlsx',rand(k),k); % option 1 writematrix(rand(k...

6 years ago | 0

Answered
Extract numeric data from cell
hello A = {'position: [0.5418702363967896, 0.0005752428551204503, -3.834952076431364e-05, 0.0, 0.0, 0.0]'}; A1 = regexp(char(...

6 years ago | 2

| accepted

Answered
Signal segmentation error: how to select a specific number of points before and after the ECG signal?
hello Ioana I modified a bit your code , hope it works before=100; after=140; nn = length(qrs_i_raw); % first and last bu...

6 years ago | 1

Answered
Excel reading all columns with a loop
hello again... based on my previous suggestion, this will do the trick : [filename, pathname] = uigetfile('*.xlsx', 'Bitte D...

6 years ago | 0

Answered
2D line plot xy with color from z variable
hello my 2 cents suggestion %___Read data___% data = readtable("Classeur1.xlsx"); %___Define variable___% %DAY = data.DAY;...

6 years ago | 0

Answered
Animated magnitude spectrum (windowed fft)
hello Joshua this is my suggestion / code below. It shows how to update the contents of a plot without (re)creating the entire...

6 years ago | 0

| accepted

Answered
How do I generate sound with durations and pause in between?
hello this is a demo to generate beeps with pause between % file = 'test.wav' ; f = 500; % f is the fundamental frequenc...

6 years ago | 0

Answered
Exponential decay, rate constant
hello this is a plain matlab example - i am not using the curve fitting tool here % generate some dummy noisy data x = 0:100...

6 years ago | 0

Answered
Zero Crossing Rate plotting
hello again this is an improved code - no inner for loop needed clear all; clc; close all; %% Read the input signal [y, fs] ...

6 years ago | 1

| accepted

Answered
Zero Crossing Rate plotting
hello I am not aware of a function sgn in matlab , I believe this must be sign ? so this is modified and somehow I introduce...

6 years ago | 0

Answered
FFT Based Order Tracking
hello I was not able to understand the second part of your code If the target was to compute the RPM value vs time , look her...

6 years ago | 0

Answered
Steady state from data
hello Matthew see below : %Import data load('DCMotor_OL_Data_4.5V_A02.mat') % smoothin a bit the derivative theta_dot...

6 years ago | 0

| accepted

Answered
How do I extract the firing threshold value from an action potential phase plot?
hello again.... so my second submission for you today ! attached also 2 subfunction for crossing points computation and a be...

6 years ago | 0

| accepted

Answered
How do I set the threshold value on the action potential on the upward and downward slope to define width?
this is my first attempt to make it fully automatic based on this excellent submission (attached function) : Piecewise linea...

6 years ago | 1

Answered
Exporting simulation data in Multiple sheets in excel file.
hello see example below : for k=1:10 xlswrite('Result.xlsx',rand(k),k); writematrix(rand(k),'myData.xlsx','Sheet'...

6 years ago | 0

| accepted

Answered
Reading numerical data from text fles with string
hello my suggestion for the second part of your code , assuming you specify the lines to be read : n_lines = [10 11]; % defi...

6 years ago | 0

| accepted

Answered
How to create siren sound using makesound
hello You have to remember that the output is the sinus of an angle, which is the integral of frequency over time; so when f...

6 years ago | 0

| accepted

Answered
How to do discontinuous piecewise linear model fitting?
hello I combined : Piecewise linear least square fit - File Exchange - MATLAB Central (mathworks.com) and fminsearch to c...

6 years ago | 0

Answered
FInding the breakpoint of a frequency spectra and its associated error
hello I combinde this Piecewise linear least square fit - File Exchange - MATLAB Central (mathworks.com) and fminsearch to ...

6 years ago | 0

| accepted

Answered
How do I find specific values in a .txt file?
hello this code will extract the searched items and stote them in a table (taht you can save to excel if needed) hope it hel...

6 years ago | 1

| accepted

Answered
Spliing text between characters
hello Ongun I created a small txt file containing these lines (as example) : "640. En selektif etkili antibiyotik...Penisilin...

6 years ago | 0

Answered
Decrease a size of matrix using interpolation
hello demo with a simple for loop : % dummy data VectorTime = rand(5000,2); buffer = 64; % nb of samples for averaging ...

6 years ago | 0

Answered
for loop and plotting 3 functions
hello mu suggestion below : for ci = 1:3 % nb of functions to be displayed if ci == 1 x=0:0.1:3; %first rang...

6 years ago | 0

Answered
Summing columns of table
hello see doc Calculations on Tables - MATLAB & Simulink (mathworks.com) see example for taking mean values : Find the A...

6 years ago | 1

| accepted

Answered
how to apply filter on .CSV data file
hello I assume you have a code to load the csv from there you have to do signal frequency (fft) analysis and then decide whic...

6 years ago | 0

Answered
Match numbers with letters
hello this code does the trick : ascii_value = uint32(yourstring); % convert your char / string into corresponding ASCII val...

6 years ago | 2

| accepted

Answered
Stuck in demodulation of AM
hello you should use a bandpass filter to remove the DC value of the rectified signal clear all; close all; Fs = 1000; dt...

6 years ago | 1

Answered
creating a loop to input photos into the code
hello this code example reads all tif files in the current directory the for loop will open each individual file and do a few...

6 years ago | 0

Load more