Answered
Arrange average in same vector values
hello try this %% dummy data B = ([1 1 1 1 2 2 2 4 4 4 4 1 1 1 1 2]/8)'; % 2nd column data A = 100*rand(size(B))'; ...

15 dagen ago | 0

| accepted

Answered
Intergrating the data using a scalar value
hello see the doc for cumtrapz I believe you simply put the arguments in the wrong order it must be Int1 = cumtrapz(V,A1)...

15 dagen ago | 0

| accepted

Answered
easy and efficient way to create cell array or table from csvs or existing variables
hello this is my 2 cents suggestion clc clearvars %% first section : CSV file management fileDir = pwd; % Sorting ...

16 dagen ago | 0

| accepted

Answered
For looping figures creation
hello see example code below for listing and sorting filenames in natural order (what matlab does not do well by default) in ...

16 dagen ago | 1

| accepted

Answered
Reading a text file and then loop load audio files
hello again so this script will read the txt file where you have a list of wav file names then the loop will open the associ...

16 dagen ago | 0

| accepted

Answered
creating sine wave with variable frequency depending on variable
hello this is my suggestion - see attachement (R2020b) code for initialization : Fs = 1000; dt = 1/Fs; % angular table...

16 dagen ago | 0

| accepted

Answered
IIR Filter for loop Code
hello if you want to simply plot the bode diagram : Fs = 1000; % assumed for now ...sampling frequency b0 = 0.05 b1 = 0.03...

16 dagen ago | 0

| accepted

Answered
How to convert accelerometer data to find displacement graph
hello see my suggestion below clc clearvars data = csvread('data.csv',1); % time & Acceleration data t = data(:,1)...

19 dagen ago | 0

| accepted

Answered
how to read data from excel file
hello your csv file has one first row wit this header (name of 6 variables : lib,pc,ir_can,ir_us,un_can,un_us) data = csvrea...

20 dagen ago | 1

Answered
Average of data multiples excel sheets
hello so this is my suggestion as we have here 10 sheets , my demo works for either groupped 2 or 5 sheets this is driven ...

20 dagen ago | 0

Answered
Could anyone help me with my Butterworth filter?
hello your filter specs and the realized filter are matching now it seems to me you're looking for a "brick wall" filter c...

20 dagen ago | 0

| accepted

Answered
time delay between sinus signal
hello my suggestion below the time values of the crossing points are linearly interpolated between samples for maximal time ...

20 dagen ago | 1

| accepted

Answered
Count consecutive elements in an array
hello try this : A = [1 1 1 1 2 2 2 4 4 4 4 1 1 1 1 2]; % A = [1 2 2 4 4 1 1 2]; %% main code p=find(diff(A)~=0); s1 ...

21 dagen ago | 0

| accepted

Answered
How to select and read csv data file using uigetfile?
hello if you want to grad multiple files with uigetfile, you can do that : % It is important to grab the files in ascending ...

21 dagen ago | 1

| accepted

Answered
What is the best way to fixe number jumps in GPS/IMU Data Plot
hello why not apply a smoothing filter - there are many options, maybe start with smoothdata example code : clc close all ...

22 dagen ago | 0

Answered
I want to make a function of x that uses loop for (x-x(i))
hello my 2 cents suggestion : %% x = [1 3 5]; a = 2; b = 3; %%%% main loop strc = []; for i = 1:3 str = ['(x-...

22 dagen ago | 0

Answered
I use matlab to draw the curve between the ID and VDS of the transistor, but there is a jumping point in the middle. How can I smooth the curve?
hello this would be my suggestion; replacing a segment between Vds = 0.5 and 1.5 with its smoothed version Vgs=1.5; W=3*10...

22 dagen ago | 0

Answered
How to modify range of loglog scale?
hello suggestion below : x = (0.1:0.1:50); y = 0.1+0.1*exp(0.1*x); xmax= 30; dx = 5; loglog(x,y); set(gca,'XLim',[1e-...

22 dagen ago | 0

Answered
How to make a plot of iteration count vs residual error?
Hello iter was not initialized nor incremented in your loop this should work now (could not test it as variables are not init...

22 dagen ago | 0

Answered
Create functions in loop for increasing input
hello my suggestion : work with one structure S that can grow in size inside your for loop but you have only one argument (S)...

22 dagen ago | 0

Answered
Plot function behave differently when only using line versus only using markers when plotting data with NaN values
Removing the NaN data will not do any harm on the dot plot, but the solid line will not have the gap anymore % fix ? B = A; B...

22 dagen ago | 0

Answered
How to extract value from a txt file and replace it
hello again this is a first trial It will change the numerical value before BlPitch on ach of the 3 lines but I think we ha...

23 dagen ago | 0

| accepted

Answered
How to synchronise two time series data with different sampling time in MATLAB?
hello see my suggeston below the new common time vector is sampled with only N = 100 here , but you can adjust this to your ...

23 dagen ago | 0

Answered
How to fit curve using for loop?
hello again in the mean time I created this example (only 5 loops) on dummy data you can easily expand and adapt it to your o...

23 dagen ago | 0

| accepted

Answered
Converting Audio File to Sound Wave (How to Add X and Y Variables for Curve Fitting and PlotWave not being read?) It worked before, but not working right now! Help please!
hello In case of trouble , I share my own piece of audio (wav files) processing good luck clc clearvars %%%%%%%%%%%%%%%%...

23 dagen ago | 0

Answered
Could anyone help me to fit y=1/x on my data?
hello here you are my friend plot code clc close all clearvars hold on grid on set(gca,'fontweight','bold','font...

23 dagen ago | 1

| accepted

Answered
plotting exp given function with db units
here you are , my friend ! SINR_dB = (-5:20); y = 0.3*exp(-0.08*SINR_dB); plot(SINR_dB,y,'b','LineWidth',4); ylim([0 0.8]);...

26 dagen ago | 0

| accepted

Answered
LogLog Plots for Newton's and Secant Methods
hello here the first code now showing the regular linear plot and a loglog plot I changed the N to 100 and tol to 1e-20 to h...

26 dagen ago | 0

Answered
How to remove warning message when we read csv file?
hello simply add this line at the start of your code : warning off

26 dagen ago | 0

| accepted

Answered
How to draw spectrogram plot for the csv data set
hello see the attachement code - just adapt the loading of the data to you file format

26 dagen ago | 1

| accepted

Load more