Beantwortet
How do you express the root locus for k in MATLAB
Perhaps something like this — K = 1:3; % Define: 'K' (Vector) s = tf('...

mehr als 2 Jahre vor | 0

Beantwortet
Draw the surface of a two variables function
All the variation occurs near the centre of the surface. You can begin to see that in the contour plot using surfc, however to ...

mehr als 2 Jahre vor | 0

Beantwortet
how to plot different horizontal lines over each group of bar plot
Try something like this — A = (5+rand(10))/6; figure hb = bar(A); for k = 1:numel(hb) xep(k,:) = hb(k).XEndPoints;...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting Multiple Shaded Uncertainties
That appears to be correct, although it would be necessary to provide the data to check for any errors. You can prevent the p...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Matrix dimensions do not match
Either ‘z’ or ‘jd’ has to be a (16x1) double for that to work. That discrepancy is throwing the dimension error. .

mehr als 2 Jahre vor | 0

Beantwortet
textscan syntax help converting file
Try something like this — Array = {'Item1', 2526976, 8, 14, 11, [224,224,137,80] 'Item2', 2526976, 8, 18, 15, [224,2...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Scatter Plots, for Rolling data
I am not certain that I fully understaznd what you want to do. Probably the easiest way to do that (without actually deleting a...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Having trouble with confidence bands on Kaplan-Meier curve
You have one typographical error. This assignment: lower2 =datatable.Cohort1SurvivalProbability95CILower; should instead b...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
p values equal to 0
The ‘pValue’ of 0 means that with extremely high degrees-of-freedom (estimating 4 parameters with 2229207 observations) and appa...

mehr als 2 Jahre vor | 1

Beantwortet
How do get 'plumblines' for scatterplot points?
Use the stem3 function. If you want to colour the points, use something like this — figure stem3(X, Y, Z) hold on scat...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
what's the index exceed error?
The indexing problem is that ‘sig’ is preallocated as a vector: sig = zeros(1,405); % Preallocate the array Preallocating it ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to put time column at X axis from timetable against column 2,3,4 Y axis.
Perhaps something like this — TT = readtable(path_to_file); TT.Time = datetime(TT.Time, 'InputFormat','yyyy-MM-dd''T''HH:mm:s...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Finding a definite integral
Use the 'ArrayValued' name-value pair with integral — u = [0.1600 0.1600 0.1599 0.1599 0.1597 0.1596 0.1594 ...

mehr als 2 Jahre vor | 0

Beantwortet
Removing Error Data from Table
This is definitely an interesting problem, and one I have thought about at other times. I am not certain that I have complete...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Making an irregular cylinder using surface plotting
Here is one approach — S = rand(60,12); S = S.*((0:59).*exp(-0.1*(0:59))).'; figure surf(S) colormap(turbo) axis('equal...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Voltage find maximum of data
Try this — Table_1 = readtable('noise.txt'); Table_1.Properties.VariableNames = {'Time','Voltage'}; %Filter Filtered_Vol...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Smooth 2D colormap based on non-evenly distributed data
I am not certain that I understand what result you want. Try this — data = readmatrix('Data.txt'); figure scatter3(data...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Discrete filter bode shows wrong results
The fault, if there is one, is in not understanding the Control System Toolbox conventions. Addition creates a system with the ...

mehr als 2 Jahre vor | 0

Beantwortet
two versions of filter response
The only ones that I am aware of are the time domain response (showing both the unfiltered and filtered versions of the input si...

mehr als 2 Jahre vor | 0

Beantwortet
griddedInterpolant error "Interpolation requires at least two sample points for each grid dimension."
The interpn function could be an option. You will need to experiment with the ndgrid function to determine how best to reshape ...

mehr als 2 Jahre vor | 0

Beantwortet
power of 10 problem
‘... values of for example pressure were imported as text and not as number’ Use the str2double function to convert them to n...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I open .bin file and transform data to .txt file
A ‘4-byte float’ is probably 'float32' (possibly 'real*4'), so one of those should work for the ‘precision’ argument in fread. ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
12 Lead ECG Problem
See Detecting QRS complex in ECG signal and how can I get cardioid graph from ecg QRS complex? for representative examples.

mehr als 2 Jahre vor | 0

Beantwortet
Unrecognized function or variable 'knnimpute'
If you installed the Toolboxes using the installer, MATLAB should be able to access them. Your posted code works here — dat...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How do I find the minimum between a matrix and a varying matrix function? I get "Error in fmincon (line 563) initVals.f = feval(funfcn{3},X,varargin{:});"
There is one typo (. where _ should be) in: eps_dried = eps_dried.I3.epsilon; so change that to: eps_dried = eps_dried.I3_e...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How to get data points from graph
Getting information from .fig files has changed over the years. This approach works with the most recent releases. Use the f...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
unsupervised thresholding of signal amplitudes: MLE?
I encourage you to investigate the ‘prominence’ values of the peaks. This is not a straightforward concept to define (see the f...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to set up a plot with labels but no Y-axis tick marks
Perhaps this — figure boxchart(rand(10)) yt = yticks; yline(yticks, '-k', 'Color',[1 1 1]*0.25) Ax = gca; Ax.YAxis.Visibl...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How can I obtain the difference between two data stored in workspace?
If the two variables have the same number of elements, just subtract one from the other. For example: speed_error = refere...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to find the frequency and amplitude of an oscillating signal?
One approach — T1 = readtable('book1.xlsx', 'VariableNamingRule','preserve') VN = T1.Properties.VariableNames; t = T1{:,1}; ...

mehr als 2 Jahre vor | 0

| akzeptiert

Mehr laden