Réponse apportée
How do i quantize data with N levels?
hello here an example of code and results N = 1000; x = 1:N-1; signal = sin(x*2*pi/N); nbits = 3; % 3 bits = 8 qant...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How do I find initial point of an exponential graph given a set of data points?
hello sorry, i'm coming late in the show this is my result and the code below , using the second derivative, smoothing and t...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
Shifting one curve to a reference curve using error minimization (fmincon from the Minimization Toolbox)
hello again as we look at data plotted in log log scale, a x shift is in fact a multiplicative coefficient on the Y amplitude ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to use exponential function to fit my data?
hello try this clc clearvars load('x axis.mat') load('y axis.mat') x = linspace(0,128,80); y = center_voxel'; f = ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Could anyone help me how to get the result as desired in the following code.
hello after so guess work, I finally change the code to this clc A=1:20; B=reshape(A,[],2); B(:,end)=B(end:-1:1,end); ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Load all mat files to Workspace and plot
hello this is one example how to load all mat files and sort them in natural order (what matlab does not do by default) you n...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
my inverse fft is different from the original signal
hello Renee I made some corrections in your code and tested on my own data Y = fft(acc,N); n2 = floor(N/2) + 1; h=Y(1:n2)...

plus de 4 ans il y a | 1

Réponse apportée
How to convert frequency response data from .unv file into time domain and save into another data file?
hello the time data are here : % Test for reading and writing of UFF files. close all; clear; clc % First, let's read all...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
period for the expression
hello this post lacks a bit of explanation, and the mathematical expression is not clear either i am not sure I translated t...

plus de 4 ans il y a | 1

Réponse apportée
Why does the amplitude of a signal change when the sampling frequency is changed?
hello try this code - there should not be any amplitude change if you record your data with a different frequency - as soon as...

plus de 4 ans il y a | 0

Réponse apportée
Find two positive numbers whose sum is 300 and whose product is a maximum
hello simply write the mathematical equations given in the task description and solve it like this : % equations are % 1/ ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
My low pass filter is too much delayed than I wish.
hello again a simple test on Joint4 data with a butterworth filter order 2 and fc = 1 Hz the first and second derivatives are o...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How can I plot this with two different colors?
hello here you are : code : load('giulia_year') ind1 =find(giulia_year.DateA <= datetime('31-Dec-2010')); ind2 =fi...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
how can i calculate the bandwidth of this voice signal
hello I guess that what you want to know is the frequency extension of the signal here I take an averaged fft spectrum, then...

plus de 4 ans il y a | 0

Réponse apportée
Convert dataset from angle domain to speed domain.
hello look at the code below , that search for crossing point betwwen a horizontal line (threshold value) and your data now ...

plus de 4 ans il y a | 0

Réponse apportée
code to run multiple times in for loop
hello I guess you want something like that... here it's for laoding excel file but you can easily adapt it for mat files if ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Outlining values of Stem FFT plot to create a trace profile.
hello FYI, this is a linear averaged FFT spectrum (one sidded) + enveloppe in red hope its helps clc %%%%%%%%%%%%%%%%%...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
looping through 2 .mat files
hello had to modify a bit your code to make it work try this : clc clearvars % timestep = height(vel); % are not yet d...

plus de 4 ans il y a | 0

Réponse apportée
How to correct X and Y matrix to plot a curve that start at (0,0) as a original point?
hello try this clc clearvars skip = 1; data = csvread('highstrain(0.1s^-1).csv',skip); X = data(:,1); Y = data(:,2); ...

plus de 4 ans il y a | 1

Réponse apportée
how to identify and read positive and negative data from excel?
Hello try this - it also only need one call to readxls data = xlsread('Abb73at100.xlsx'); X = data(:,1); Y = data(:,2); X1...

plus de 4 ans il y a | 0

Réponse apportée
How to split data into cell
hello could not load your excel file , so I created a dummy one (attached FYI) the table is splitted into cells according to ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Integration drift with numerical simulations
here one possible solution we want to have the signal not time distorted so we must keep with filtfilt even with the "bad" IC ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
sorting in linaire descending order
hello I generated some dummy data and tried to fit a linear curve , then searched for the data points closest to the mean curv...

plus de 4 ans il y a | 0

Réponse apportée
Break the for loop
hello I modified a bit your code so the condition were the two successive identical random r : n = 10; limitf = 0.1; F = z...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Detect main part of signal
hello If I were you I would do an envelop of your signal and use then the code below to detect the start and stop of the usefu...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Integration of the acceleration signal to obtain cumulate displacement
hello Federico check my code version : clc; clear all; close all; data=load("accelerogramma.txt");%carico i dati time=data...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to group specific values i several vectors following a condition?
hello IMHO, according to the rules , the result should be : res1 = [13,43,54], res2=[18,19,17,25.2] and res3=[59] and this ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How can i know the best sampling rate to use in a ADC using Fourier
hello Fs is the inverse of the time increment dt clc; clear all; close all; dt = 0.0001; t1=0:dt:0.0025; VS= 5000; R1=...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to identify when a continuous signal crosses a threshold value?
hello you can work from this example : clc clearvars n=1000; x=(1:n)/n; y = abs(sin(7*x))-0.5; threshold = 0; % you...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
iir filter for loop code
helo here you are clc clearvars c1 = 8; c2 = 2; c3 = 7; b0 = 0.05 * c1; b1 = 0.03 * c2; b2 = 0.02 * c3; a1 = 0.5; ...

plus de 4 ans il y a | 0

Charger plus