Beantwortet
Need to count projections from a graph
It depends on what information you want. The red line appears to interpret the results of the image behind it, so it would like...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Calculate SNR from sampled real signal
The Signal Processing Toolbox snr function (introduced in R2013b) has a number of different ways to calculate it. If you only h...

etwa 3 Jahre vor | 0

Beantwortet
I want to calculate the moving rms of accelerometer data.
Try something like this — Fs = 5000; T = 100; t = linspace(0, T*Fs, T*Fs-1)/Fs; s = sin(2*pi*t*25); xrms = @(s, n) sqrt(...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
lsqcurvefit Fitting kinetic model to estimate kinetic parameter.
That does not appear to me to be the same data. I get decent results except for and , leading me to believe that there is so...

etwa 3 Jahre vor | 2

| akzeptiert

Beantwortet
Accessing local variables in a function.
One option would be to return it as an output. I am not certain which one you want to return, however assuming that it is ‘No...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to get rid of spikes from the attached graph
It would help to know what the data represent. Try this — LD = load('batterycellhighvoltage.mat') M = LD.BMC_PACK1_CellHig...

etwa 3 Jahre vor | 0

Beantwortet
Help interpreting Fast Fourier Transform.
My analysis — M1 = readmatrix('fftpoop') t = M1(:,1); s = M1(:,2); L = size(M1,1) Ts = mean(diff(t)); Fs = 1/Ts; Fn = ...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can I plot transfer function?
You can use the transfer function that you posted, if you define ‘s’ first, using the tf function. If you want the magnitude ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
dlmread error when performing fourier transform (FFT)
You could use the deprecated csvread function, however readmatrix is preferred, since the data are numeric and the variable name...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
Creating 3d surf from 2d map
It would help to have the data. That aside, the plot would go something like this (I got tired of all that typing, so there a...

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 1

Beantwortet
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);...

etwa 3 Jahre vor | 0

Beantwortet
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('...

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

Mehr laden