Answered
Find line containing word in a mixed format txt file
hello you could do this out = readcell('Doc1.txt'); eof = size(out,1); ind1 = find(contains(out,'output')); % extract v...

4 månader ago | 0

Answered
To generate constant arc points on Archimedean Spiral
hello try this also I prefer to have R = 20; %outer radius a = 0; %inner radius instead of R = 0; %outer radius a ...

4 månader ago | 1

| accepted

Answered
How to plot contour of an xy plot with a constant value?
hello why not simply use xlim and ylim to plot the required area ? xy = readtable('xy_data.xlsx'); x1 = xy.x40; y1 = xy....

4 månader ago | 0

| accepted

Answered
Help with iterations over large file.
hello try this I choosed to store each Y array into a cell D=readlines('data.txt'); % read as string array [eof] = s...

4 månader ago | 0

Answered
Smooth 2D colormap based on non-evenly distributed data
hello why not simply this ? see Fex submission : RegularizeData3D - File Exchange - MATLAB Central (mathworks.com) da...

5 månader ago | 1

Answered
How to make an FRF with my accelerometer Data and FFT?
hello I got the correct result if I assume that your data is in g and not volts (so your analyser has already used the senso...

5 månader ago | 1

| accepted

Answered
How to draw a 3D surface with all the given discrete points?
hello of course I tried the standard solutions (surfir, griddata etc...) but as your shape is very specific , therefore also a...

5 månader ago | 0

| accepted

Answered
Dual axis plot for the same data, left = linear -1 0 +1, right side= linear in dB -0db inf +0db
hello something like that ? % dual plot (linear scale left , dB scale right) yleft_ticks = (-1:0.1:1); yleft_ticks_labels ...

5 månader ago | 0

| accepted

Answered
I want to Fourier transform the 'y' function using Euler's formulas.
here you are my friend : clc x = [-pi:pi/10:pi]; sum=0; y1=0; for k=1:100 y1=(((cos(k*pi)-1).*cos(k*x))./(-pi*(k^2)))...

5 månader ago | 1

| accepted

Answered
How can I merge different .nc files related to different time steps?
hello @bhakti here you have your u and v velcocity data stored in 4D arrays u_out and v_out as requested I tried my code with...

5 månader ago | 0

| accepted

Answered
How to get data points from graph
hello the main code is very simple (use the attached function - credits to his creator !) https://www.mathworks.com/matlabcen...

5 månader ago | 0

Answered
Finding neutral axis for arbitrary 2d shape - aerofoil
hello @Selina the equations are still valid , see below how we can use them : result code : u = readmatrix('upper.txt...

5 månader ago | 1

| accepted

Answered
how can I smooth the graph for a set of varying data points??
hello maybe this ? (I optd for a exponential fit of your lattice data) data1 = readmatrix('lattice vs time plot.xlsx'); x1...

5 månader ago | 0

| accepted

Answered
Line of Best Fit for a time series plot
hello I am not working that much with timeseries , but IMHO, you could do the polyfit first on the raw data , otherwise you ca...

5 månader ago | 0

Answered
Combine figures with subplots in new figure with subplots
hello Paul like this ? % Create first figure hf_sub(1) = figure(1); hp(1) = uipanel('Parent',hf_sub(1),'Position',[0 0 1 ...

5 månader ago | 0

| accepted

Answered
trouble making a notchfilter to remove a tone out of a wavefile
hello adapt this code to your needs you can apply multiples notches , simply create the list of frequencies here fc_no...

5 månader ago | 0

| accepted

Answered
issue during FFT of a discrete data
hello Hamid and welcome back again you can see below that fft and my home made DFT computations give the same spectrum. Also ...

5 månader ago | 0

Answered
Using output of the fit function in further calculations
hello why not use the smoothed (low pass filtered) image as a new background and you remove that from the original image. In f...

5 månader ago | 0

Answered
Can the arrow came directly following increasing OR decreasing behaviour of the curves
hello this is my suggestion the arrow generation is done after the two for loops , so it's done once instead of 6 times I ...

5 månader ago | 0

| accepted

Answered
How can I plot multiple signals separately as like mentioned figure for avoiding this three signals overlapping?
the solution is : Stacked plot of several variables with common x-axis - MATLAB stackedplot - MathWorks France

5 månader ago | 1

| accepted

Answered
How to find duration of peaks/valleys in chart
hello I have nothing against findpeaks but I prefer sometimes other solutions that are simpler and faster - therefore I usuall...

5 månader ago | 1

Answered
I have a problem with my script. I would like to extract pH data from the coast of Cameroon or the Gulf of Guinea. Can I have some ideas on what is bugging my script and a cor
hello the provided nc file contains a lot of NaN data so don't be surprised here to get most of the time NaN as a result to y...

5 månader ago | 0

| accepted

Answered
Draw angled ellipses around clusters on PCA plot
hello like this ? Plot ellipse on scattered 2D data - File Exchange - MATLAB Central (mathworks.com) see files in attachmen...

5 månader ago | 0

| accepted

Answered
plot the fundamental harmonic wave
hello again so this is it, we do a single frequency DFT (aka order extraction) at the second harmonic (as we have two period of...

5 månader ago | 0

| accepted

Answered
Linear fit in loglog plot
hello maybe this ? you can make a much more compact code , as shown below : struct_load = load('mystruct.mat'); xdata = s...

5 månader ago | 0

| accepted

Answered
How to save the result of each loop separately
hello some solutions : y = [3 4]; for k=1:length(y) % solution 1 : store as cell array x{k} =zeros(y(k),2); ...

5 månader ago | 1

Answered
Extracting portions of data using indices
hello Alexandra and welcome back ! I tried this , let me know if it's what you needed the output cell (Gait_cycles) contain ...

5 månader ago | 0

| accepted

Answered
How to detect & fitting curvature from the binary image?
hello this would be my suggestion, based on this Fex submission : smoothn - File Exchange - MATLAB Central (mathworks.com) ...

5 månader ago | 0

| accepted

Answered
I want to calculate the Moving RMS on first break pics for seismic data.
hello again see below , now you have the RMS values displayed in the legend (or you wanted to make a separate plot ? ) % De...

5 månader ago | 0

| accepted

Answered
k-means segmentation for Raman analysis
hello I get something quite different from your expectation first I looked at first group of excel files coordinates_group1....

5 månader ago | 0

| accepted

Load more