Answered
Numeric column not read as string with readtable on XLS file
The readtable function has no problems with that variable (that appears to be ‘History.UUT_ID’) and reads it as a double. I imp...

5 years ago | 0

Answered
EEGLAB Removing Line Noise 60Hz and its Harmonics
Try something like this — Fs = 1000; % Use Correct Sampling Frequ...

5 years ago | 0

Answered
matlab people helo hellp
It appears that anc are constants. Are they known and provided or are they to be estimated? Assuming they are provided — ...

5 years ago | 0

Answered
how to display the 3d graph for this problem?
Try it with these changes — hs = surf(X,Y,Z,'EdgeColor','none','FaceColor','flat','FaceAlpha',0.6); hs.ZData = hs.ZData-0.5; ...

5 years ago | 0

| accepted

Answered
error couldnt be rectfied for ztransform of equation
The quotes in: ZTY=subs(ZTY,{'ztrans(y(n),n,z)','y(0)','y(1)'},{Y,y0,y1}); are no longer necessary (they were a few versions ...

5 years ago | 0

| accepted

Answered
How do I get the transfer function from experimental step response data?
It is necessary to have the System Identification Toolbox for this. The appropriate procedure for estimating a state-space mo...

5 years ago | 0

Answered
how can i fit with using nonlinear regression?
There are two options — First, if it is truly a nonlinear funciton of something, developa mathematical model of the process th...

5 years ago | 1

| accepted

Answered
how to edit x axis and y axis values?
Use the Axis Properties, specifically XTickLabel, YTickLabel, and ZTickLabel to specify them. x = 1:10; y = rand(size(x)); ...

5 years ago | 1

| accepted

Answered
how can I plot frequency spectrum and impulse response with hold on?
Use freqz instead of fvtool to plot the transfer function of the filter, and specify the sampling frequency of the signal in the...

5 years ago | 0

| accepted

Answered
fzero returns "Too many input arguments"
Perhaps the order in the code is wrong. The functions must all be at the end of the script for included functions to work. T...

5 years ago | 0

| accepted

Answered
histogram of x and y data from a txt file
It seems to produce the correct result on its own! T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_f...

5 years ago | 0

| accepted

Answered
How can I assign a single column of a 0x10 empty table
Preallocation for table arrays is possible. myTable = table('Size',[10 1], 'VariableNames',{'firstVariable'}, 'VariableTypes'...

5 years ago | 0

| accepted

Answered
Fitting and parameter estimation of kinetic model ODE system
Optimising 14 parameters is asking a lot of fminsearch! I switched to lsqcurvefit here because fminsearch is not likely to be u...

5 years ago | 0

| accepted

Answered
How can I plot laplace transformed functions?
It might be easier to do this outside the Symbolic Math Toolbox. That aside, try this — syms x s js rs sigma omega f = sin...

5 years ago | 0

| accepted

Answered
Feedback Function Not enough input arguments error
Please do not mix Symbolic Math Toolbox and Control System Toolbox commands. It only confuses both of them! k=0.0223; thet...

5 years ago | 0

| accepted

Answered
Unable to install Signal Processing Toolbox on Linux
Contact Support Include the URL of this thread in the note to Technical Support so that it is not necessary to repeat everyth...

5 years ago | 0

Answered
Find gradient ascent for 3D surface
This code finds the maximum of the surface and then uses griddedInterpolant with the calculated ‘xv’ and ‘yv’ vectors to draw th...

5 years ago | 1

| accepted

Answered
I want to colour the area between red line and black line below the intersection point. how am i going to do it?
Use ‘logical indexing’ to identify & fill the appropriate area — c=[3,5]; A=[1,2;1,1;0,1]; b=[2000;1500;600]; y1=0:1:ma...

5 years ago | 0

Answered
Simple way to create a block-diagonal matrix from a single vector.
I don’t understand exactly what ‘z’ is or what the desired result is. One possibility is to replicate the original matrix usi...

5 years ago | 0

| accepted

Answered
Output additional vectors from ode45
Adding additional outputs is permitted, providing that they are not used in the ode45 call. Normally, this is not a problem, be...

5 years ago | 1

| accepted

Answered
Why getting NaN's and other garbage from interp1?
I am not certain what the problem is (providing the data without the code and interp1 calls is not informative), however unless ...

5 years ago | 0

| accepted

Answered
Vectors must be the same length
The number of elements in ‘Y1’ in the plot need to be the same as the number in ‘x’ so one way would be to re-define ‘x’ to be t...

5 years ago | 0

| accepted

Answered
Problem with AlphaData property
The FaceAlpha (transparency) value is set to 'interp' and it is doing exactly what it is told to do! It will likely be necess...

5 years ago | 0

Answered
system of differential equations
Use the Symbolic Math Toolbox if available. Those all appear to have analytic solutions, since they all appear to be linear. S...

5 years ago | 1

Answered
Number of line for fcontour
A somewhat different approach — syms x y z(x,y) = exp(-(x-5)^2) + cos(y) figure hfc = fcontour(z, [0 10 -2*pi 2*pi]);...

5 years ago | 0

| accepted

Answered
ho to find index at which the 50% of the sum vector is included?
A least-squared-difference approach works — a=[3 5 7 3 5 8 9 3 1 41 6]; suma = cumsum(a); suma50 = suma(end)/2; [minv,idxv]...

5 years ago | 1

Answered
How can I skip the first to lines from a text file and proceed to read the file with header lines in between the values?
Try this — C1 = readcell('https://www.mathworks.com/matlabcentral/answers/uploaded_files/814274/BSH_HBM_tracer_productgrid_f...

5 years ago | 0

| accepted

Answered
How to activate the low-pass filter on NI-6115?
It will likely be best to Contact Support for this. I did an online search and could find no previous posts regarding the NI-61...

5 years ago | 0

| accepted

Answered
Function value and YDATA sizes are not equal. Can anyone help?
The problem is the randn call. With one argument, it creates an (nxn) matrix, not a vector, so of course the sizes will not mat...

5 years ago | 1

Answered
Error with the division
Use the table2array function to convert the contents of the table to an array. Assign the arrays to new variables rather than o...

5 years ago | 0

| accepted

Load more