Respondida
How would you filter this data?
Your 'noise' seems systematic in the sense that it is appears to always be approximately the same amplitude and is not random. I...

alrededor de 13 años hace | 0

Respondida
derivation using command diff
velocity = diff(x); acceleration = diff(velocity); You can verify it yourself with an example such as x=cos(t), v=sin(...

alrededor de 13 años hace | 0

Respondida
plot kalman smoother output vectors with confidence interval!!!!
upper = theta*1.05; lower = theta*0.95; plot(t,lower,t,theta,t,upper);

alrededor de 13 años hace | 0

Respondida
problem with jet colormap
Have you tried, imagesc(......,'Parent',handles.axes14)

alrededor de 13 años hace | 0

Respondida
Searching a Matrix for Specific Values
For matrix A thisrow = A(row,:); result1 = (any(thisrow,1) && any(thisrow,2) && any(thisrow,3) && any(thisrow,4) && any(...

alrededor de 13 años hace | 0

Respondida
how load a different sessions files from the same subject
One way to do this is to filter the directory of files by some user input. A GUI would be a nice user friendly way, but if you d...

alrededor de 13 años hace | 0

Respondida
angle and radius of a curve
It would help if you gave some definitions, but I'll do that, hopefully correctly interpreting your question. Define the cur...

alrededor de 13 años hace | 0

| aceptada

Respondida
change filename from different folder
The first filename in a directory is the "." file which is just specifying the path to this directory... not really a file at al...

alrededor de 13 años hace | 0

Respondida
i want to store the result of 191 iterations in one variable and then i want to find the slope of those values.
gradient(y) will give you the slope at every point of the variable y.

alrededor de 13 años hace | 0

Respondida
evaluate a cubic polynomial in an interval
If you mean you want to evaluate v1 at x values between the kth and (k+1)th values of x, then define x as the interval of intere...

alrededor de 13 años hace | 0

Respondida
Easy way to clean up a plot?
Here are two ideas that should work. 1. Try a standard moving average with lead and lag data points. 2. Take small sample se...

alrededor de 13 años hace | 0

Pregunta


Specifying colors for a plot of a multidimensional array
I have a multidimensional array that I want to plot, but want to use a different color scheme than the default. I've tried ...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Respondida
how to see previous results while tabulating?
Change where you put your print statements to see running total. fprintf('\n\n%18s%18s%18s\n','it_no','x','f(x)'); while...

alrededor de 13 años hace | 0

| aceptada

Respondida
How can I show how much time is left for a script to complete?
One thing you can do is determine where the bulk of the computation time resides. Hopefully this is in a loop. You could then t...

alrededor de 13 años hace | 0

Respondida
Timing a train on a loop
toc measures the elapsed time since tic was executed. You probably want something like if a.analogRead(approach) > 300 &...

alrededor de 13 años hace | 0

Respondida
FFT of a signal
A non-zero mean will give you a large value at 0Hz in the frequency domain. If you zoom in at 20Hz, you will still see your sign...

alrededor de 13 años hace | 0

Respondida
Converting decimal to binary, help!!
See <http://kipirvine.com/asm/workbook/floating_tut.htm> for a good tutorial.

alrededor de 13 años hace | 0

Respondida
Problem when assigning vectors
the value of k must be positive and less than the size of f.

alrededor de 13 años hace | 1

Respondida
index exceeds matrix dimension
First of all, it's probably not a good idea to use reserved words for variable names, such as max and min. These are standard f...

alrededor de 13 años hace | 0

Respondida
Calling a function from within a GUI (GUIDE)
The functions in your program created by guide can be called like any other function. You just have to input the arguments it ne...

alrededor de 13 años hace | 1

Respondida
how to find a local minima for a continuous waveform ?
min(min(X))

más de 13 años hace | 0

Respondida
figure text cut off when saved
Is it cutoff because the title is too long? If so, make your figure larger so that the title fits. Or change to a smaller font.

más de 13 años hace | 0

Respondida
how can I read a text file line by line containing titles of the research papers?
The format of the file is important. The following code assumes each line is a title. fileid = fopen(filename); ind = 0...

más de 13 años hace | 0

Pregunta


Mesh plot in GUI works, but in separate figure won't plot
I have a GUI with axes defined with a Tag 'axes1' When I plot mesh(handles.axes1,x,y,z) where x and y are column vec...

más de 13 años hace | 2 respuestas | 0

2

respuestas

Respondida
Return the final x for different t
Matlab defaults to rows. So when creating a vector on the fly like you have, specify both row and column. These lines should ...

más de 13 años hace | 0

| aceptada

Respondida
Binning elements between limits
histc gives you the number of elements in the bins. Below code should give variance of the elements in the bins: % X i...

más de 13 años hace | 0

Respondida
function created for transform grayscale to binary doesn't work
If you're interested, this should be faster code if your image is very large or you're doing many of them. function BW = co...

más de 13 años hace | 0

Respondida
how to store data in a matrix
Try this: m=1; for i=1:72; for j=2:5; p1 = i+j; n=[j+1:6]; p2 = i + n; for k=1:leng...

más de 13 años hace | 0

| aceptada

Respondida
How do I put all values from for loop into one vector
Y = 0:.1:1.8; n = length(Y); u = zeros(n,1); for k=1:n; u(k)=umax/M*log(1+(exp(M)-1)*(y(k)/D)*exp(1-y(k)/D)) ...

más de 13 años hace | 3

| aceptada

Respondida
Read certain range of csv file
Try file = csvread('file.csv', 251, 0, [251 0 5351 5351+n]); where n is the number of columns you want to read

más de 13 años hace | 0

Cargar más