Beantwortet
How to add different texts in xline, when using arrayfun ?
Perhaps something like this — fig = figure(); ax = axes(fig); ax.XTick = 1:14; dy = ["S","S","M","T","W","T","F"]; hxl = ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Plot shows markers, but no lines, no matter what is being plotted
The code is also being run in R2023a, since that just released. If you are using the pre-release version, consider downloading ...

mehr als 3 Jahre vor | 0

Beantwortet
Compare two CDF distributions
I am not sure that either of those tests would be appropriate for these data. A1 = readmatrix('https://www.mathworks.com/matl...

mehr als 3 Jahre vor | 0

Beantwortet
Problem adding text to plot, background color doesn't work properly
The line does not through the label. However it is necessary to specify the label in the xline call — xl = xline(0.5,'-','X-L...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I get the maximum slope of a curve?
The file is not a .mat file. That problem aside, I would calculate the instantaneous slope as: m = gradient(Cell_Voltage_1...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to decide order for fir1 band pass filter. Is there any methodology on which basis I can finalize the order to be considered for filter creation.
I usually use kaiserord when I design FIR filters. It calculates the appropriate order as one if its outputs.

mehr als 3 Jahre vor | 0

Beantwortet
Resample function is not working properly and damaging the signal
I had not noticed the ‘end effect’ problem before (although I use resample relatively frequently, and that is clearly visible i...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How can I put Alaska map as a background behind my contour plots?
You have ‘lat’ and ‘lon’ reversed in the first two arguments to the contourm call. Reversing them — % clear % close all %...

mehr als 3 Jahre vor | 0

Beantwortet
How to create surface plot from vertical lines?
If you can change that to a series of cross-sections of the propeller blade at various points along its length, the approach in ...

mehr als 3 Jahre vor | 0

Beantwortet
How can I learn my lisance number
Run the ver function to find the license number. Go to the License Center for other information, and Contact Support if you h...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
xline for multiple axes in tiled layout
The ‘ax’ argument to xline has to be a scalar axes handle, so passing a vector of axes handles to it fails. Each nexttile call ...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
selection of specific data from graph and extract data
The findpeaks function has a number of name-value pair arguments that can be used to return only selected information. See if...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Fitting an equivalent circuit in EIS data (Frequency, Re Impedance, Im Impedance)
You indicated the Signal Processing Toolbox, so in that regard, see if the invfreqz function will do what you want. Beyond th...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to tilt the plot on the right to make it like the one on the left?
Tilting it is relatively straightforward with the rotate function — [X,Y,Z] = peaks(50); figure surf(X,Y,Z) xlabel('X') ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
I am trying to extract data points from an image of a graph.
See if the digitize2.m File Exchange contribution will do what you want. It seems to be highly regarded, with 14.7K downloads...

mehr als 3 Jahre vor | 0

Beantwortet
How to reverse one of the y-axis in a stackedplot?
I doubt that’s possible, since the AxesProperties property doesn’t include YDir. load outdoors outdoors(1:3,:) s = stackedp...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Plotting with arrays, no graph displayed
Plotting one point requres a marker, and plotting a line requires at least two vectors of the same size. Two options, dependi...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
How do I store the outputs of my ODEs in a structured array?
It would be easiest to use a cell array — [tout,yout]=ode45('rates',tspan,y0); Results = {t,yout}; This also works in a loop...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Standard Error of each element in matrix
‘... OLS estimate output (B) ...’ If these are regression parameter estimates, then the standard errors (or ideally the 95% c...

mehr als 3 Jahre vor | 0

Beantwortet
Plot matrix with ticks corresponding to the data points
Try something like this — LD = load(websave('M','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1321115/M.mat'...

mehr als 3 Jahre vor | 0

Beantwortet
Y double axis plot
The problem is: y1 = [1 1.273; 0.636 0.751; 0.247 0.287; 0.267 0.32; 0.268 0.311; 0.33 0.407; 0.266 0.389; 0.768 1.22; 0.21 0....

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Plot several seasonal NDVI time series data with marked transplanting time
I am not certain what you want to do with these data. I have no idea what ‘NDIV’ refers to. This creates patch objects beginn...

mehr als 3 Jahre vor | 0

Beantwortet
Convert Logical Column to Table
Use the addvars function — T1 = array2table(rand(10,4), 'VariableNames',{'A','B','C','D'}) LogicalVector = rand(10,1)>0.5; ...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
Signal Fitting with sine curve (and how to find out the phase shift?)
I initially wnated to see if I could get this to fit using fminsearch, however I wasn’t guessing the correct initial parameter e...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
fplot tolerance parameter error
Please begin to use anonymous functions rather than inline funcitons — x = @(t,e) (1/e) .* ((t>0) & (t<=e)); e = 1/100; t1...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Why do I receive the error message "Array indices must be positive integers or logical values. Error in Master (line 32)"
I am guessinmg that it could be: lambda_sq=(pir.*wr_sq.*lr_sq + pin.*wn_sq.*ln_sq) - g(pin.*wn_sq.*ln_sq.*(taux+alpha./alpha.*...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Removal of background continuum emission from a LIBS spectra
It would help to have the data, and a description of the desired result, since I do not understand ‘background continuum emmissi...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Im getting a blank graph, and alot of errors.
Use an anonymous function instead of the deprecated inline function, and since the ‘x’ function actually returns a logical resul...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Matlab: How can I specify the RGB color and line style for each curve in a waterfall plot?
It is likely easier to do this using plot3 — figure xaxis = linspace(-pi/2,3/2*pi, 200); variation = [ 0.5 1 5 10 7 3.5 8 0....

mehr als 3 Jahre vor | 0

Beantwortet
FFT analysis with window of vibration during milling
The signals have broadband noise, so any sort of frequency-selective filter will not adequately eliminate it. There are two way...

mehr als 3 Jahre vor | 1

Mehr laden