Respondida
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...

más de 5 años hace | 0

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

más de 5 años hace | 2

| aceptada

Respondida
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...

más de 5 años hace | 1

Respondida
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...

más de 5 años hace | 0

Respondida
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;...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Respondida
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] ...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 1

Respondida
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'...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

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

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

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

más de 5 años hace | 2

| aceptada

Respondida
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...

más de 5 años hace | 1

Respondida
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...

más de 5 años hace | 0

Respondida
remove points in a figure that are close to 0 vertical line
hi as simple as this : X = [0 0.5 0.12 0.54 0.21 0.21 0.12 0.32 37 30 39 50 42]' Y = [134 423 352 212 545 234 184 563 323 12...

más de 5 años hace | 0

Respondida
How to replace specific text in .csv file
hello would this work for you ? strArray = readlines('test.csv'); str = "NAN"; newString = '-9999'; newStr = strrep(strAr...

más de 5 años hace | 0

Cargar más