Answered
how to extract certain lines from a csv file
hello Giuseppe ! here you are ... I converted the prova.xlsx into csv file first to be coherent with the assumption we are wo...

6 years ago | 0

| accepted

Answered
Correlating values from a table using a for loop
hello hope my code can further help you - you don't need any for loop to find the max value (and the corresponding time index...

6 years ago | 0

Answered
Creating a time input dialog and plotting in the time period.
hello I think there is some input dialog window missing for the start and end time inputs I suggest the following code : ans...

6 years ago | 1

Answered
Plotting 1st derivative and 2nd derivative graph from a set of values
hello FYI, you have plotted time vs speed (and not speed vs time) in your excel spreadsheet in your first plot , also it is n...

6 years ago | 0

Answered
Trying to build an 11x9 matrix from another 11x9 matrix and other elements
hello there were only a few minor indexing issues in your main code. also I recommend not using i or j as index var names as ...

6 years ago | 0

| accepted

Answered
How can I read csv file data correctly? I tried multiple ways
hello seems matlab has an issue with the format of your data (especially with ) I could not make it work whatever the option...

6 years ago | 1

Answered
Plotting 1st derivative and 2nd derivative graph from a set of values
hello below a useful code for first and second derivative - to apply directlty on your raw data or on fitted / interpolated da...

6 years ago | 1

Answered
Filtering noise from an audio signal
hi again this is the code, now expanded with the notch filter. You can see in the second round of spectral analysis how the ton...

6 years ago | 0

| accepted

Answered
Filtering noise from an audio signal
hello my findings : this is a voice signal corrupted by a fixed frequency tone (clearly audible) at ~ 900 Hz if you want to...

6 years ago | 0

Answered
Understanding SNR matlab syntax
hi I agree that without a "clean" reference signal , the built in snr function of matlab is of little help so I decided to do ...

6 years ago | 0

Answered
Writematrix error exceeds sheet boundaries error
hi again the proof is here you're trying to save in older xls format which is limited to 2^16 = 65536 rows try with xlsx f...

6 years ago | 3

| accepted

Answered
How to find Frequencies to filter?
hi seems you need a low pass filter with a cut off frequency around 2.5 kHz - order to be defined / tested you should apply it...

6 years ago | 1

| accepted

Answered
Query about variation of two signals in time domain (MATLAB)
hi you can simply compare the average abs value of the slope (using diff) so average_abs_slope = mean(abs(diff(x)))

6 years ago | 0

Answered
Filtering noise from an audio signal
hello I couldn't really figure out how to read your graphs . I prefer log scale (dB) for the y axis. Also maybe a time frequ...

6 years ago | 0

Answered
How to do different scaling in x in maltab plot (multiple scales in X axis)?
hello forget my first attempt (deleted) here hopefully a better code. % let's generate some data X= [0:1:90]; Y = 2*X; %...

6 years ago | 0

Answered
Index exceeds the number of array elements (1) PID controller
hi it works for me (R 2020a) maybe you have an older matlab version try the other syntax for tf : % set up motor with init...

6 years ago | 0

Answered
How to find b spline values?
hi basically same code with different input data and 7th order polynomial interpolation so the second derivative plot looks n...

6 years ago | 0

Answered
How to find b spline values?
hello my suggestion below % test data x = cumsum(rand(1,10)); y = randn(size(x)); pp = spline(x,y); % fine grid points...

6 years ago | 0

Answered
Subset data within time range
hello my 2 cents suggestion [num,txt,raw] = xlsread('time_data.xlsx') ; timeday = num(:,1); % time expressed in ...

6 years ago | 0

Answered
Problems with Plotting discrete signals - Nyquist Sampling
seems i have already answered this question in another post ! %Time Base Fs = 1000; dt = 1/Fs; t = 0:dt:1.8; samples = l...

6 years ago | 0

| accepted

Answered
Creating matrix inside indexed for loop
hi as far as I understand U,V,W have 2 rows , so if I am right, this is the way to modifiy your code %% Dimensions VAWT R = ...

6 years ago | 0

| accepted

Answered
How I can get a cutoff frequency. Also, I wonder how LPF can be applied.
hello see below some LPF examples suing butterworth and sliding averaging techniques [num,txt,raw] = xlsread('joint_angular_a...

6 years ago | 0

| accepted

Answered
Not sure of how I can sample this Nyquist wave? Combining data problems
hi to be honest with you, I rewrote the entire code, simply because the idea is to have one signal at Fs that will be then deci...

6 years ago | 1

| accepted

Answered
reading a file name from a list of files in a text file line by line and open the files one at a time
hi you can try this - I tested it on dummys file. just found that my matlab is pretty slow for such simple tasks.... % re...

6 years ago | 0

| accepted

Answered
Write an image processing algorithm that measures the surface area of the green pills in pixels
hi this is my 2 cents suggestion - but I am not truly an image processing expert For what I know your "green" definition must...

6 years ago | 0

Answered
Looking at the graph, there should be 3 graphs in the legend, but why are there 5?
hi i guess the legend will be messed up with hold on / hold off afterwards i put it at the end and I could get the expected 3...

6 years ago | 0

| accepted

Answered
Segment audio file using time
hi this is waht i suggest to do on one single wav file if it matches your request , the main code can be converted to a func...

6 years ago | 0

Answered
Segment audio file using time
hello Melissa you have to do the computation on samples , and you have to know the sampling frequency FS for each wav file y...

6 years ago | 0

| accepted

Answered
include calculated data into csv file
hi I think the solution already exist : help writetable "WriteMode" : - "append": Append to the bo...

6 years ago | 0

Answered
How do I perform fft for each column in a matrix?
hi may I Jump in the conversation ? there are so many questions in this forum dealing with fft , and many times it is not al...

6 years ago | 0

Load more