Frage


How to adjust plot?
How can I adjust my x axis to start from 0 in the figures. When I set xlim then the figures become totally changed. Please help ...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find the time between two spikes?
Please help me to to find the time between two spikes i.e. inter-spike interval T in matlab. Below is the code for spike generat...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


The end operator must be used within an array index expression.
Can anybody please help me to plot minf which is defined at the end. Below is my code clear all; close all; clc; Vrest =...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Unrecognized function or variable 'm_equations'
Please help me to resolve the following error. Error in untitled (line 38) [alphaM, betaM] = m_equations(V(1), Vrest) Th...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Move all statements after the function definition to before the first local function definition
Please help me to resolve this error. Below is my code. clear all; close all; clc; % calculate alpha m and beta m based on Tab...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Not enough input arguments.
I want to build a graph of this equation where phi0=pi/3. and it's graph is like but I am getting an error " not enough i...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to create a distance between labels in plot?
How to separate the mixed labels? As show in figure. Below is my code. clear all; close all; clc; data=[0.0245,0.1200,0 ...

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to change the position of labels on plot?
I want to create a distance (a little bit upward) between the data points and the labels as indicated in figure attached. Please...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find the minimum Error when the position is known?
I know the position at which the value of Error is minimum. Is their a command to know the value of Error also? clear all; cl...

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to get a single value after an iteration?
I need a single value of Error that I am measuring. How can I get a single value of error instead of iterated values? clear al...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Euler's method in matlab
If I write the model using Euler's method. Like this clear all; close all; clc; %value of constants a_n=0.1; omega_0=2; dt=...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to convert an array of exponential numbers to am array of whole numbers?
Is there a command that gives answer like 1.0e+03 is automatically multiplied to each number in an array? r = 1.0e+03 * ...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Left and right sides have a different number of elements
I have to changed the x timeseries in the program I have been provided as a sample but I am getting an error. Please help me to ...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to find the C=corresponding x axis values of a peak on Y-axis?
I have to find the 'x' values at which the peak is maximum. How can I find that? Please help. x=[11500.2 11477.9 11417.3 114...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to convert a graph into spiral in MATLAB?
Is their a way to convert the graph of x to spiral shape? Below is my code clear all; close all; clc; x=[11500.2 11477.9 11417...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to plot two different signals like an orbit on the same graph?
I have to plot X1 and it's hilbert transformation on the same plot like an orbit as shown in picture. But it is giving an error....

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to find the exact value of the frequency by MATLAB?
I want to find the exact value of the frequency at which the peak is highest (represented by purple circle in the figure)on the ...

mehr als 3 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


Plotting the absolute value.
How can I plot the absolute value of x? which is also the norm, of the complex variable after fft. Please help. x=[11500.2 114...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to apply fourier analysis on the data given?
I have to apply the fourier analysis on the vector x given below. How to apply the fourier transform and find the optimal freque...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Prediction error of the signal
I have to measure the error btw the x1_t1 and x1rec_t1, x1_t2 and x1rec_t2,x1_t3 and x1rec_t3 by the formula given below. There ...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Index exceeds the number of array elements (60).
I have to measure the error btw the x1_t1 and x1rec_t1, x1_t2 and x1rec_t2,x1_t3 and x1rec_t3 by the formula given below. Am I m...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting a time step response
How to fill the gap (as shown in image)while plotting? clear all; close all; clc; c1=1; d11=0.0100; d12=-0.1421; X1=[11500....

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Vectors must of same length while plotting
I have to plot the time step response of x1 and x1_rec. I am unable to find why my vectors are not of equal length. How to resol...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Please Help: How can I plot the system of equations?
I have to plot this system of equations as shown in the picture. Did I write the code for LHS of the equation correctly? How t...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to measure difference at different times?
I have two arrays X1 and X2. I want to calculate this. X1(t1)-X1(t0)=c1+d11*X1(t0)+d12*X2(t0) Where t0 and t1 are different ti...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to make make the vectors the same length using different values of time?
How can I make x1_0 and x1_1 equals to the length og X1 i.e 1200? The values of t_0 and t_1 should be different. clear all;...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Help in plot while plotting a time step response.
I need to plot the response of r1 at different time steps. But i am getting these gaps in plot. Please help me to resolve this p...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to write an equation with time dependent parameters in MATLAB?
Hello, I'm quite new to MATLAB and I'm having a problem when trying to solve the equation r1 for the case when X1 and X2 vary wi...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to plot an array effectively?
clear all; close all; clc; h=0.05; t=0:h:599.5; X1=[11500.2 11477.9 11417.3 11426.4 11413 11382.9 11375.1 11347.9 11351.1 113...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Mean and Norm of a time series.
I have calculated the mean and norm of a time series. But i am confused because the code gives different values when run in edit...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden