답변 있음
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); ...

약 1달 전 | 1

답변 있음
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...

약 1달 전 | 0

답변 있음
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 ...

약 1달 전 | 0

| 수락됨

답변 있음
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 ...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

| 수락됨

답변 있음
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 ...

약 1달 전 | 0

| 수락됨

답변 있음
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=...

약 1달 전 | 0

| 수락됨

답변 있음
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...

약 1달 전 | 0

답변 있음
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; ...

약 1달 전 | 0

답변 있음
How to Find value inside a matrix that satisfies a condition and store that value in column 1 its corresponding row in column 2 and its column in column 3
hello sounds bit like a homework..? here your are : A = rand(5,5) [r,c] = find(A>=0.25 & A <= 0.5); for ci = 1:numel(...

약 1달 전 | 0

| 수락됨

답변 있음
how to calculate sum between cell
hello see example below : % example data for ci = 1:3 A{ci} = rand(1,7); end % do a horizontal sum B = sum(cell2m...

약 1달 전 | 0

| 수락됨

답변 있음
How to normalize signal to have mean=0 and amplitude 0 to 1
hello if you are not confident how to use normalize , you can do the same thing by x = x - mean(x); % remove mean value (you...

약 1달 전 | 0

답변 있음
how to write a loop that finds the best fit value for each given input pair and plot all the resulted points?
hello Anitha so yes there was a small bug in your equations when you do the computation of A, you fliiped the terms (vs1.^2...

약 1달 전 | 0

| 수락됨

답변 있음
How to plot a marked point in a graph and connect it with other points?
hello this is a first attempt the outer lines was fairly easy to plot the two inner lines , it's a bit coded just to show ...

약 2달 전 | 0

| 수락됨

답변 있음
hello try this : data_all = []; for ci = 1:10 filename = ['P' num2str(ci-1) '.mat']; data = load(filena...

약 2달 전 | 0

답변 있음
how to solve error using integral
hello integral works on function (handles) not arrays f is an array , not a function handle so use trapz to do numerical int...

약 2달 전 | 0

답변 있음
I have m*n matrix. I want keep only those rows whose atleast one element is greater than any specific value such as 1.
hello try this m = 3; n = 5; A= 1.15*rand(m,n); threshold = 1; a = A>threshold; rows = find(any(a, 2));

약 2달 전 | 0

| 수락됨

답변 있음
Sum specific elements of an array without using loop
hello Alex try this A = [1;0;0;0;0;1;1;1;0;0;0;1;1;0;0;0;0;0;0;1;1;1;0;0;1;0;0;1;0;0]; % 30x1 Array tic res = zeros(1,10);...

약 2달 전 | 0

| 수락됨

답변 있음
Half Power Method for Vibroacoustic Dataset
hello Daniel the frequency vector is missing the half power method is described here : Microsoft Word - 41FC527E-54FA-00270...

약 2달 전 | 1

답변 있음
How to calculate the response time of an instrument based on a second?
hello Kofial I did a few mods in your code ... but the response data of the instruments has little to do with the graph of the...

약 2달 전 | 0

| 수락됨

답변 있음
There is an apparent error in line 4, and this code only ran once
hello simply b and m are not yet defined when you do in line 4 : c2 = b*exp(t2*m); the code should be organized like this ...

약 2달 전 | 0

답변 있음
How do I output the values of a function in a vector string to plot a graph?
hello maybe this ? (tested OK on my side) clc clearvars A = 1; df = 100000; F = df/4; % n = 2^3; n = 2 ^ 3: 2^ 4 : 2 ^...

약 2달 전 | 0

답변 있음
Curve Fitting Tool - Power Fit
hello even without the curve fitting toolbox you can get a good match using fminsearch : sol = 1.4912 0.2802 clc...

약 2달 전 | 0

답변 있음
hello again Amit i think I recognize this line of code... :) I believe readcell was introduced around R2018 - so if you have...

약 2달 전 | 0

| 수락됨

답변 있음
how to find the sample space of two or more peaks within a power delay profile
hello again this would be my suggestion to pic the two highest peaks inside each data bins , which are distant at least by 4 sa...

약 2달 전 | 0

| 수락됨

답변 있음
How to plot my sine waves in one graph, one right after another with 100ms in between and not on top of each other?
hello Kristin I fixed your code I prefered to use a constant fixed time increment for all frequencies instead of keeping the s...

약 2달 전 | 0

| 수락됨