Respondida
Finding max peaks and full width/half max for both curves in the given plot
It would help to have the data. Calculating the statistics of the peaks depends on how the peaks are defined. This defines t...

más de 3 años hace | 1

| aceptada

Respondida
lsqcurvefit (with system of ODEs) does not iterate, it only displays the initial guess value
It is generally good practice to estimate the initial conditions as well, so I added that (not part of my original code, updated...

más de 3 años hace | 0

| aceptada

Respondida
How to understand the design of lowpass butter filter?
It is best not to use the transfer function implementation of discrete (digital) filters, because those are frequently unstable....

más de 3 años hace | 0

| aceptada

Respondida
Finding Highest Frequency Component from a Sound Recording
The audioread function has two outputs, the first being an (Nx2) matrix (the information) and the second being the sampling freq...

más de 3 años hace | 0

Respondida
Detect the boundary of signal
This is easier if you have the envelope function (introduced in R2015b) since it has options that hilbert does not — readExce...

más de 3 años hace | 0

Respondida
Breaking the axis of plots
Perhaps this — x = [linspace(0, 10, 21); linspace(40, 42.5, 21)]; % Create Da...

más de 3 años hace | 1

Respondida
How to find the intersection of two curves with the input data being two vectors?
Another approach — lambda = linspace(0, 10); arg_px = sin(2*pi*lambda/5); arg_ikTx = 1.1 - (lambda/8); L = numel(lambda);...

más de 3 años hace | 0

Respondida
How to extract specific data from a txt file
Using my code from my earlier Comment, one approach would be— % type('Niskin-Logger-Sample.txt') opts = detectImportOptions('...

más de 3 años hace | 0

Respondida
textbox doesnt like strings
The string array properties are a bit different from cell arrays in that string arrays can be grouped using square brackets [] w...

más de 3 años hace | 0

| aceptada

Respondida
Normalized Wind Rose Plot help
Perhaps something like this — LD = load('winddata.mat'); N = LD.N; N.WD_Rad = deg2rad(N.WD_Deg) ...

más de 3 años hace | 1

| aceptada

Respondida
Tiledlayout with different spacing in horizonal and vertical direction
The tiledlayout function does not offer any spacing options other than those provided, and they cannot be changed afterwards (at...

más de 3 años hace | 0

| aceptada

Respondida
How to fix such type of problem?
The firstr two appear to be exactly the same, so they are over-plotting. % the variables are present at attached file LD1 ...

más de 3 años hace | 1

| aceptada

Respondida
shaded area between 2 curves isnt showing up
There were two problems — First, the vectors are column vectors, not row vectors, so fliplr will not have any noticable effect...

más de 3 años hace | 1

| aceptada

Respondida
It says Error in matlab and also in cumtrapz
In the ‘calculateShearForceAndBendingMoment’ call, ‘shearForce’ is a scalar, so the following cumtrapz call throws the error, si...

más de 3 años hace | 0

Respondida
I would like know the code for FIR filter respose
I have no idea what an ‘asteroid’ filter is, at least iin the context of signal processing. There are several ways to design ...

más de 3 años hace | 0

| aceptada

Respondida
Removing noise peaks on 3D surface reconstruction
See if the filloutliers function (introduced in R2017b) will do what you want. The documentation indicates that it will work o...

más de 3 años hace | 0

| aceptada

Respondida
Filter Only Data Meeting Certain Criteria out of Excel Spreadsheet
Use ‘logical indexing’ to return the desired values — Lat = 90*rand(10,1); Angle = pi*rand(size(Lat)); Data = table(Lat,An...

más de 3 años hace | 0

Respondida
fitting "K" paremeter in a adsorption breakthrough curve data
Estimating ‘K’ is likely straightforward, and requires creating an objective function similar to the ‘kinetics’ function here, d...

más de 3 años hace | 0

Respondida
Problem to read the number of characters in a line
Try something like this — Unz = unzip('SGC2023aiexsm_BLMC_10.zip') type(Unz{1}) ...

más de 3 años hace | 0

| aceptada

Respondida
How color fill grid squares in plot?
The patch function would be appropriate here. Perhaps something like this — x = 0:5:20; y = 0:7; figure patch([5 10 10...

más de 3 años hace | 0

Respondida
How to plot discrete array with colors
One approach — status = randi([0 1], 1, 9) % 'Waiting' = 0, 'Busy' = 1 status = flip(status...

más de 3 años hace | 0

Respondida
Adding error bars to a grouped bar plot
An example using properties available in prior and recent MATLAB releases is provided in Putting error bars on bar plot? One ...

más de 3 años hace | 0

Respondida
Aplly average to a set of data
This seems to be a slightly different version of your earlier Question: Plot data from txt file. This does the same thing,, e...

más de 3 años hace | 0

| aceptada

Respondida
Alternating between if conditions in a loop.
I am not dertain what you want to do. I would use either findpeaks (with normal and negated arguments to get the peaks and trou...

más de 3 años hace | 0

Respondida
How to calculate FWHM on the graph
Try this — LD1 = load('xstats.mat'); xstats = LD1.xstats LD2 = load('ystats.mat'); ystats = LD2.ystats F = openfig('gr...

más de 3 años hace | 0

| aceptada

Respondida
How to calculate FWHM on the point
Those fields do not exist in ‘stats.mat’ so those are empty vectors and the error is obvious. This works — LD = load('stats...

más de 3 años hace | 0

Respondida
Apply apodization to NMR spectra
I am not certain what you want to do. (I had to look up ‘Apodization’ and discovered that in the context of Fourier transforms,...

más de 3 años hace | 0

Respondida
fmindnd problem doesnt run
It runs here — g=9.81;zo=50;vo=15;m=50;c=13; z=@(t) -(zo+m/c*(vo+m*g/c)*(1-exp(-c/m*t))-m*g/c*t); [xmin fval]=fminbnd(z,0,8)...

más de 3 años hace | 0

Respondida
How to enter multiple parameter estimations in a single genetic algorithm (GA)
This works. I will let you tweak it to give the appropriate results, since I have no idea what system you are modeling. I ha...

más de 3 años hace | 0

| aceptada

Respondida
organize the inside of the .txt file
Define the delimiter in your writetable call to be the tab '\t' character — type('data.txt') type('data_new.txt') T1 = rea...

más de 3 años hace | 0

| aceptada

Cargar más