Beantwortet
how to extract coordinates from g code files
hello tried a few things , this is my suggestion for the time being . Not 100% sure it's the best code , maybe someone else wi...

mehr als 3 Jahre vor | 1

Beantwortet
Impedance calculation using FFT from time, voltage and current battery data
hello should be possible using tfestimate function alternative (older) code : x and y are your time domain data (x = inpu...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I convert an .xls spreadsheet to FFT format?
hello try this code . It will do averaged FFT (with overlap) and time / frequency spectrogram a few mods need still to be do...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Error in using eval with num2str
hello your method works only for integers otherwise you have to round your numbers with a given number of decimals befoe it h...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to get xticklabels from xticks by merging cells?
hello here you are my friend : Xticks = [1,2,3]; tmp = num2str(Xticks); Xtickslabels{1} = tmp;

mehr als 3 Jahre vor | 0

Beantwortet
Divide and plot signal parts
finally, decided to give it a try .... your neg data in red (added for fun the positive segments as well in green) %% dum...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Audios doesn't looping right
hello I a not sure what you mean by "download " audio files I interpreted your post as simply looping over a folder and stor...

mehr als 3 Jahre vor | 0

Beantwortet
Trying to identify certain peaks in a plot
hello I have reworked your code check this : %% Plot of Undamaged Specimen % na=readmatrix('Default Dataset (4).csv');...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
changing frequency of an existing audio
hello the question is not 100 % clear to me if you want to play the same signal to a different pitch , you can simply do ne...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
fourier Transformation of the signal from a motor
hello this is my suggestion for your application (the fft is done one multiple data chuncks of NFFT length with overlapping , ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to cut data after defined number of peaks?
hello Hannah here you are - blue start / end points defined by your preferred peakseek function NB : the blue points are not a...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Question about using the "fit_mutiple_gaussians" from File Exchange
here the code a bit simplified but the results with a 4 gaussian model does not really fit well. I think this come mostly from...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can I find the angle (from the vertical) between two points?
hello jeremy small typo in your code the angle is given by : atand((x1-x2)/(y1-y2)) and not atand((x1-x2)-(y1-y2)) so...

fast 4 Jahre vor | 0

Beantwortet
filtering data inside a table and storing multiple tables in one big table
hello you can probably make the all process much simpler with only one main for loop (iteration over the files) and one if con...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
getting the index after comparing two logicals
hello see code below : a = logical([1 0 0 0 1]) b = logical([0 0 0 0 1]) c = a & b col_c_is_one = find(c) gives the fol...

fast 4 Jahre vor | 0

Beantwortet
How to plot these types of plot?
hello see my demo below. Change the profile and data scaling accorsing to your needs hope it helps figure(3) plot : code ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Interpolating(or averaging) Time series curves
hello in your case it's fairly simple as both blue and red curves have exactly the same y values (but for different x) so yo...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
signal processing of real time signal
hello again !! FYI this is simple code for time domain acceleration to velocity / displacement integration (data file attached)...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Assign custom interval to the color map z axis of a surf plot
hello try my little demo the colorbar is "frozen" so that ticks / tickslabels do not vary acccording to data range. In other...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to filter breath noise in audio?
hello i opted for a strategy based on the spectrogram content. I noticed that the "breathing" sections are characterized by a ...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
How to plot it?
hello simply replace the negative values of b by NaN so the vector size remains the same a=[1;2;3;4;5]; b= [-10;10;0;20;-20]...

fast 4 Jahre vor | 1

Beantwortet
Count impulses into sequence of impulses and segments of sequences of impulses from signal
hello again so this is my attempt... not maybe the shortest and most efficienct code , but seems to do what I wanted so we ca...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
How I could solve the for loop problem?
hello tried to fix quite a large amount of bugs still don't understand why you need a second for loop as obviously it could ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to create structs with text data
hello check my demo code below : clc clearvars mylines = readlines('exampledata.txt'); % [m,n] = size(mylines); % gr...

fast 4 Jahre vor | 0

Beantwortet
I need to read a specific column from 30 files in a folder (read the same column from each of them) and plot each column as a line. How can I go about it?
hello Agustina see code below : % use the structure returned by DIR: P = cd; % working directory S = dir(fullfile(P, 'Powe...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
Create a better plot
hello maybe you want to make an animated line demo : %% create animatedline object / handle figure h1 = animatedline; ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
how to calculate fast Fourier transform with a 128-point window on these data with non-uniform sampling frequency
hello see my suggestion below the result is in Area clc clearvars load('DATA3.mat'); t3 = data3(:,1); %% uniform re...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to cut ASCII file with matlab ?
hello Mathieu this would be my suggestion - create a structure with field names taken from your data file - See the function...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to extract the maximum value of an area of a figure?
hello so your data is a matrix (hrms) what is the dimension of hrms ? you are probably confused between the range of that y...

fast 4 Jahre vor | 0

Beantwortet
Find maximum in graphic
hello following this example : A = [1 2 3; 4 5 6] [M,ind] = max(A,[],'all','linear') % max value of matrix [row,col] = in...

fast 4 Jahre vor | 0

| akzeptiert

Mehr laden