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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

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

casi 5 años hace | 1

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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 0

| aceptada

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

casi 5 años hace | 1

| aceptada

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

casi 5 años hace | 0

Cargar más