Answered
FFT from CSV data files
hello your csv file looks more like a xls file - csvread does not work on this one so I went for xlsread had also to change ...

5 years ago | 0

Answered
Drawing a hyperboloid with polar coordinates
hello you have to start from z and then compute r and not vice versa also square root function is sqrt and not square z = l...

5 years ago | 1

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 1

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

5 years ago | 0

| accepted

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

5 years ago | 1

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

5 years ago | 0

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

5 years ago | 1

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 1

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

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

5 years ago | 0

| accepted

Load more