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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

Risposto
How to filter an EEG signal from eye blinking, electrodes movement and calculate the evoked potential?
The EEG signal does not need filtering. It is not significantly noisy, and it is obvious that a 50 Hz mains interference peak h...

oltre 3 anni fa | 0

Risposto
Drift correction for geochemical data
First, plot the data — fiji = readmatrix('fiji.csv') Col1 = fiji(:,1) Col4 = fiji(:,4) % d4d1 = gradient(fiji(:,4)) ./ gr...

oltre 3 anni fa | 0

| accettato

Risposto
How to Remove the baseline wander from ECG?
I recognise my code, however that version was not intended to work with a signal such as yours. Try this instead — load sig...

oltre 3 anni fa | 0

| accettato

Risposto
Three different graph on the same figure
I am not certain from your description what you want. The subplot, tiledlayout and stackedplot functions may be appropriate. ...

oltre 3 anni fa | 0

Risposto
subplot with 1 large and 2 small figures
Perhaps something like this — x = 0:0.01:6.2; figure subplot(2,2,[1 2]) plot(x, sin(2*pi*4*x)) subplot(2,2,3) plot(x, c...

oltre 3 anni fa | 2

| accettato

Risposto
Create waterfall with separated curve
Perhaps something like this — X = 0:555; Y = 1:8; Z = X(:)*Y*1E-2 + randn(numel(X),numel(Y)); figure waterfall(X,Y,Z.') ...

oltre 3 anni fa | 0

| accettato

Carica altro