Answered
Hello everyone. How to make a matrix with unequal number of rows and columns, and make the number of rows and columns the same by adding zeros. Thank you very much.
hello see example code below clearvars; load('dataA.mat') [m,n] = size(dataA); if m>=n out = zeros(m,m); out(...

5 years ago | 0

Answered
gaussian chirp signal generation
hello Maj I fixed your code and improve a bit the x axis time display (all plots are centered around t = 0 ) the major problem...

5 years ago | 0

Answered
Extracting a double from a text file
hello my 2 cents suggestion (as I still struggle with regexp !) bs = split(fileread('data.txt')); values = bs(find(strcmp(...

5 years ago | 0

| accepted

Answered
Be able to Detect Breathing
hello David yes you can clear tell that the bed is not empty and that someone is actually breathing by either saying the time ...

5 years ago | 0

| accepted

Answered
Is there a way to smoothen the function/"bridge the gap"?
hello this would be me suggestion if the idea is to replace the "faulty" data segment with a piecewise linear segment and then...

5 years ago | 0

| accepted

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

5 years 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",",")

5 years 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...

5 years ago | 0

| accepted

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

5 years 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 %...

5 years 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))

5 years 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 ...

5 years 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...

5 years 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...

5 years ago | 2

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

5 years 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) ...

5 years 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 ...

5 years 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...

5 years ago | 1

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

5 years 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 ...

5 years 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...

5 years 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...

5 years 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...

5 years 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 ...

5 years 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...

5 years 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...

5 years 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 %-----------...

5 years 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)); ...

5 years ago | 0

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

5 years 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...

5 years ago | 0

Load more