Risposto
Concatenate the index i within the loop
Use the compose function — num_labels = 10; labels = compose('Node %d',1:num_labels) .

oltre 2 anni fa | 0

| accettato

Risposto
How to solve equation with several unknown variables for a specific variable?
The isolate function is helpful here — syms w0 g l r l a m eqn = m*g*l*(1-cos(a))==1/2*1/2*m*(r^2+2*l^2)*((r^2/(r^2+2*l^2))*w...

oltre 2 anni fa | 0

| accettato

Risposto
Eliminating specific data from a file
There are functions like fillmissing to interpolate the NaN entries and rmmissing to delete them (the entire row with a NaN entr...

oltre 2 anni fa | 0

| accettato

Risposto
Default output for ps in the spectrogram function
Apparently the default for spectrumtype is 'psd'. At least that’s how I read it.

oltre 2 anni fa | 0

| accettato

Risposto
Can we generate best fitted nonlinear equation between 4 inputs and 1 output, if we dont know the equation initially
Ideally, the nonlinear objective function is a mathematical model of the process that created the data. Otherwise, there are ...

oltre 2 anni fa | 0

Risposto
Loading variables to a specifc workspace
One option to transfer specific variables to your script (calling) workspace would be to include them as outputs of your functio...

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 1

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

| accettato

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

oltre 2 anni fa | 0

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

oltre 2 anni fa | 0

| accettato

Carica altro