Answered
Plotting a function with 2 dependent variables
Use the mesh or surf functions. Other options are contour, and waterfall, depending on the result you want.

6 years ago | 0

| accepted

Answered
How to resolve "not enough input arguments" error
A guess: [X,iter,erroX,erroF] = newtgen(@FXJV, ... ); ↑ ← DENOTES FUNCTION HANDLE It is prob...

6 years ago | 0

Answered
Simplifying output involving symbolic variables
Try this: evec = simplify(evec, 'Steps',500) eval = simplify(eval, 'Steps',500) producing: evec = [((4*wp^4 + ws^4)^(1/2)...

6 years ago | 0

| accepted

Answered
How to solve a data length error in the function "filtfilt"?
From the filtfilt documentation: x — Input signal vector | matrix | N-D array Input signal, specified...

6 years ago | 0

| accepted

Answered
How make create 3D plots using piece wise functions?
... rest of your sentence is missing! Try this: x = linspace(-5, 5, 50); y = linspace(0, 10, 50); [X,Y] = ndgrid(x,y); Z...

6 years ago | 1

Answered
How do I extract a certain datapoint from a curve?
Try this: x = linspace(0, 100); % Create Vector y = 25 - 10*sin(2*pi*x/100); % C...

6 years ago | 0

| accepted

Answered
assigning values to a matrix
This: a(4,:) = 4 produces: a = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

6 years ago | 0

Answered
Matrix dimensions must agree error
The eye matrices are (699x699) because of the subtraction by 2 from the size argument. So the vectors all need to be shortened ...

6 years ago | 0

| accepted

Answered
quantifing goodness of fit between two data sets
If ‘Q’ are your data and ‘Qest’ are the model values, one option is to compute the Coefficient of determination () value: RMSE...

6 years ago | 0

| accepted

Answered
@findall in an arrayfun?
The cellfun function is likely a better option. Experiment with something like this: Out = cellfun(@(x)findall(0,'Tag','img...

6 years ago | 0

| accepted

Answered
How to create a function as sum of some sine functions?
A loop is not necessary. If you have R2016b or later, try this (using your own variable vectors): t = linspace(0, 2, 750); ...

6 years ago | 1

| accepted

Answered
Error in Ode 45
The problem here: [T,Y ]=ode45(@(t,y) vdp1(C,y,A),t_span,y_0); is that one of the input arguments to ‘vdp1’ needs to be ‘t’. ...

6 years ago | 0

| accepted

Answered
I need help with files of signals of ecm
See: How can i visualize ecg contain 12 leads in 12 different figures It has everything, including the ‘.mat’ files and my ...

6 years ago | 1

| accepted

Answered
3D surface plot
It depends what your data are. If you are currently using scatter3 or plot3, and your data are reasonably ordered, instead us...

6 years ago | 1

| accepted

Answered
Sensitivity and specificity graph
See the Wikipedia article on Sensitivity and specificity. It would not be difficult to write MATLAB code to do what you want. ...

6 years ago | 0

Answered
how to solve the error: Undefined function 'ecg' for input arguments of type 'double'. in the next code
Apparently, ‘ecg’ does not exist in your workspace. I see no specific call to load (or any similar function) that would import ...

6 years ago | 0

Answered
How can I smooth out this data?
I have no idea what result you want. One option would be the smoothdata function.

6 years ago | 0

Answered
extract decimal number from a file name
Try this: filnam = {'2C2C', '2.5C3.5C'}; nrs = cellfun(@(x)sscanf(x, '%fC%fC'), filnam, 'Unif',0) Result = cell2mat(nrs).' ...

6 years ago | 0

| accepted

Answered
Efficient pass filters for EEG signals
The lowpass function (and those like it) have 2 outputs, the second being a digital filter object. Save the digital filter obje...

6 years ago | 1

| accepted

Answered
3d plot from scalar values- how to
Try this: wn=500; t = linspace(0, 0.02, 100); zeta = 0.5; zetav = 0.5:0.01:2; for k = 1:numel(zetav) sys = tf([2*zeta...

6 years ago | 0

Answered
Definite intergral with one variable trying to solve for constant
There is no closed-form, analytic expression fot the integral. In order to solve for the value of ‘P’, it will be necessary to ...

6 years ago | 0

| accepted

Answered
How to plot FFT in MATLAB by executing Vibration data recorded in Excel?
Use the fft function. The documentation will tell you how best to implement it for your signal. Note that the sampling inter...

6 years ago | 1

| accepted

Answered
im trying to chop my signal so it only plots 1 second but any second I have choosen as the length of the signal is 10 seconds
First, please do not name the variable ‘sin’ since that makes the sin() function useless. This is called ‘overshadowing’ and is...

6 years ago | 0

Answered
How can I calculate Kurtosis of Sound data?
Not certain what you want. Try this: startidx = [2239 19576 ...

6 years ago | 0

| accepted

Answered
Undefined function 'upfirdn' for input arguments of type 'double'
‘Is there anyway to verify that I have the signal processing toolbox?’ Run this in a script or the Command Window: ver('signa...

6 years ago | 0

Answered
symbolic function to numeric value
First, ‘f1’ has to appear somewhere before it is used. With that correction, try this: syms j1(t) f1 Dj1=diff(j1); ode =...

6 years ago | 0

Answered
Problem to use spectrogram on audio file
You need to actually call the spectrgram or pspectrum functions! I do not see that you have called either one in your code. ...

6 years ago | 0

Answered
Issue with creating a plot from two for loops
Neither of the loops are necessary. Use element-wise operations (here, exponentiation (.^ instead of ^) and division (./ instea...

6 years ago | 1

| accepted

Answered
Mean and Median Frequency
If you have R2015a or later, use the medfreq and meanfreq functions.

6 years ago | 0

Answered
legend with multiple axes using yyaxis
Try this: A = rand(1,10); B = rand(1,15); C = rand(1,20); D = rand(1,30); figure hold on yyaxis left ha = plot(A); y...

6 years ago | 6

| accepted

Load more