Answered
how to inser loop in equations
hello in matlab , index are starting with 1 (it's not a zero based language) - so your code will not work for i = 1 I made a...

21 days ago | 0

| accepted

Answered
How can I write a table to .csv file
hello for numerical data you can use writematrix - see example below writematrix(rand(100,5),"file.csv","Delimiter",",")

26 days ago | 0

Answered
Jacobi iterative method in matlab
hello there were quite a few bugs there - now see the correction below you should do a while and not a for loop if you sto...

27 days ago | 0

Answered
How to change the unit of magnitude from DB to m/s2 in stft plot ?
hello value_ms2 = 10.^(value_dB/20)

27 days ago | 0

| accepted

Answered
How to read this mtx file in matlab
hello this is a txt file with 3 columns and 1 header line see example below % demo clc clearvars; % % load data %...

27 days ago | 0

Answered
plotting figure ignore blank entries
hello remove first the empty cells , example below (R is the cell array) R = R(~cellfun('isempty',R)); plot(cell2mat(R))

27 days ago | 0

Answered
Denoising the sinusoidal signal
hello see my suggestion below notice that your code was wrong regarding sampling frequency (barely at 5 Hz) so this is not ...

27 days ago | 0

Answered
Applying bessel filter to raw data to reduce the noise (error)
hello here you are my friend; bessel are continuous filters that must be converted to digital (a contrario from butter that ge...

28 days ago | 0

Answered
sliding window algorithm for time-series data
HELLO see demo below - second section implement a overlap method all the best clc clearvars % dummy data data = ran...

28 days ago | 0

| accepted

Answered
Plotting the first column of each page on one plot
hello simply because your not really doing the loop from i = 1 to 8 this is wrong : for i = size(H_Amputated,3) this is r...

28 days ago | 0

| accepted

Answered
Surface Plot using excel file as a source
hello Andreas simply , you inverted x and y vectors this is correct : filename = 'PlotData.xlsx'; num = xlsread(filename) ...

28 days ago | 1

| accepted

Answered
Weighted average of lat lon data
hello my 2 cents suggestion data = rand(288,192,60); % dummy data [m,n,p] = size(data); dataw = zeros(1,p); for ...

28 days ago | 0

Answered
How to plot complicated implicit function?
hello I tried a few things to understand where the problem lies. I have to say I am not an expert in this field and I will not...

28 days ago | 0

Answered
Change the first group of 0s in each column
hello Ana here my suggestion , based on a dummy data array ; i kept the NaN unchanged (my assumption) Code is : clc clear...

28 days ago | 0

Answered
separate signals and calculate their rms at different frequencies
hello again I expanded a bit your code to try other bandpass filtering methods and also compare with my little fft code. the ...

29 days ago | 0

Answered
why when i use find command to find the index i face problem
hello no , matlab tells you that it could NOT find an exact match to value = 0.3 (there must be a very tiny numerical differen...

29 days ago | 0

Answered
Problems in reading large matrix with unintended gaps between data
hello again so this is my simple fix , retrieve the two last vectors and do this very simple mathematical fix ; your DRNRF d...

30 days ago | 0

Answered
How to use filter() if I don't have the transfer function?
hello you have a FIR filter , and in that case the numerator b is equal to the h impulse response coefficients the denominato...

1 month ago | 0

| accepted

Answered
time series data set
hello try this - there is still a bit of work depending how you want the time axis of the plot being dispalyed for the time ...

1 month ago | 0

Answered
How to read in multiple text files, each containing multiple lines/formats?
hello I have to admit that I am not a super pro of textscan , so someone else will probably make a better code than me , but t...

1 month ago | 0

Answered
Scale plots with different steps
hello my suggestion below hope it helps clearvars load('Data1.mat') measurements1 = measurements; x = linspace(-1.2,1.2...

1 month ago | 1

| accepted

Answered
Adding and generation of shot noise to a gaussian chirp signal.
hello minor bug fixed in the last lines (see comments ) - it's the time vector definition (length) was incorrect %-----------...

1 month ago | 0

Answered
Conduct the cross-correlation analysis for the two sets of the data with different time lags and find the maximum correlation coefficient and the corresponding time-lag.
hello here you are all the best T = readtable('wind data set no 3.xlsx'); C = table2cell(T); a = cell2mat(C(4:end,3)); ...

1 month ago | 0

Answered
Matrix insertion to a txt-file
hello Robert try this : clc clearvars dlmwrite('Mymatrices.txt','----------------------','delimiter','') X = randi(10...

1 month ago | 1

Answered
How can I read from a file (specific format) using Matlab?
hello here you are : T = readlines('data.txt'); for ci = 1:numel(T) Tci = T(ci); str1{ci,1} = char(extractBetwe...

1 month ago | 0

Answered
Automatically select and name variables from import file (.xlsx)
ok so that's my first trial , based on slope values (must be below a given threshold to select sections of interest) not sure ...

1 month ago | 0

| accepted

Answered
I-PD Controller
hello Chiara I tried to fix this issue and got to this solution (attached) To me and according to the documentation of the 2D...

1 month ago | 0

Answered
How to assign time on x-axis in emd?
hello if you know your sampling frequency (Fs) of the original data , and the length of the data , it's fairly straithforward ...

1 month ago | 0

Answered
time domain and frequency domain plot
hello see example to do averaged fft and spectrogram hope it helps

1 month ago | 0

| accepted

Answered
How to import a sequence of file .txt
hello Marco see below an example how to read all txt files inside a folder and do the batch processing - like here I simply do...

1 month ago | 2

| accepted

Load more