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

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

22 jours 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...

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

22 jours 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...

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

23 jours 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...

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

24 jours 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...

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

24 jours 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...

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

24 jours 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'...

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

25 jours 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...

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

25 jours 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...

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

25 jours 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...

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

26 jours 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 ...

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

26 jours 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...

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

26 jours 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...

Spliing text between characters

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

26 jours 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 ...

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

26 jours 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...

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

26 jours 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...

Summing columns of table

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

28 jours ago | 0

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

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

28 jours 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...

Match numbers with letters

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

28 jours 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...

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

29 jours 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...

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

29 jours ago | 0

Answered

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

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

29 jours ago | 0

Answered

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

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

environ un mois ago | 0

Answered

How to do discretization with variable step size ?

as simple as this : dx0 = 1; dx1 = 2; x = [(1:dx0:10) (10+dx1:dx1:20)];

How to do discretization with variable step size ?

as simple as this : dx0 = 1; dx1 = 2; x = [(1:dx0:10) (10+dx1:dx1:20)];

environ un mois ago | 0

| accepted

Answered

Remove some zeros from a cell

hello simple code below , replace zeros with NaN (example) load('Cell.mat') dd = cell2mat(Data_All_Repos); dd(dd<eps) = NaN ...

Remove some zeros from a cell

hello simple code below , replace zeros with NaN (example) load('Cell.mat') dd = cell2mat(Data_All_Repos); dd(dd<eps) = NaN ...

environ un mois ago | 0

Answered

Replace values on a column filtering with a value

hello something like that : %% some dummy data A = (1:10); In_Matrix =A'*A; %% main code %% Out_Matrix = In_Matrix; ...

Replace values on a column filtering with a value

hello something like that : %% some dummy data A = (1:10); In_Matrix =A'*A; %% main code %% Out_Matrix = In_Matrix; ...

environ un mois ago | 0

| accepted

Answered

How can I compute Trapezoidal numerical integration (Q = trapz(X,Y), while my X is a datetime-lalue vector?

hello see below , depends if integral must be done on seconds or minutes time stamps - you to choose ! T = readtable('vol...

How can I compute Trapezoidal numerical integration (Q = trapz(X,Y), while my X is a datetime-lalue vector?

hello see below , depends if integral must be done on seconds or minutes time stamps - you to choose ! T = readtable('vol...

environ un mois ago | 0

| accepted

Answered

How to fix this one? I use PI controller. please give a suggestion on this matter?

hello I put a simple regular PI and it works output (blue) tracks input (yellow) without too much delay (upper subplot) PI...

How to fix this one? I use PI controller. please give a suggestion on this matter?

hello I put a simple regular PI and it works output (blue) tracks input (yellow) without too much delay (upper subplot) PI...

environ un mois ago | 0

Answered

Creating a Seismogram record section

hello arthur this is a modified code - check it out play with "a" factor to increase / decrease vertical offset between lines...

Creating a Seismogram record section

hello arthur this is a modified code - check it out play with "a" factor to increase / decrease vertical offset between lines...

environ un mois ago | 0

| accepted

Answered

Text files data extract

hello this seems to work - even though there is maybe a better way to extract the numerical content from the table I tried wi...

Text files data extract

hello this seems to work - even though there is maybe a better way to extract the numerical content from the table I tried wi...

environ un mois ago | 0

Answered

Export doubletimeseries dataset from MATLAB to Excel

so official answer below : ------------------------------------ hey , success !! here is it ! excel output in attachement,...

Export doubletimeseries dataset from MATLAB to Excel

so official answer below : ------------------------------------ hey , success !! here is it ! excel output in attachement,...

environ un mois ago | 0

| accepted