Respondida
Cross-correlation issue: how can I align two signals?
Hello, The reason (I suspect) the alignsignals is being weird is because of the huge negative spikes in your B signal. If we ...

alrededor de 9 años hace | 0

| aceptada

Respondida
Calculating moving standard deviation (bounds) for time series
Hello, I created the following code which should do as you wanted. An explanation of the code is below. % % function s...

alrededor de 9 años hace | 1

Respondida
I have an excel file ... which consists of 1st column is dates and time and other n rows and n columns data.... in this file, I have daily 1-hour data, I want day night data separate for the reference I have attached output file. Please find input an
Hello, Here is code that does what you want. You'll need to have two blank files in your directory named "outputfileDAY.csv" ...

alrededor de 9 años hace | 1

Respondida
possible to use logical indexing with an array argument ?
Hello, WhateverYouWant = (label == 1:15653); Note: assuming label is also a 15653 length vector OR a scalar. Hope thi...

alrededor de 9 años hace | 0

| aceptada

Respondida
help in adding a descending order a symetric matric
Hello, Here's a very inelegant solution, but it does the job. I'm making all values below the main diagonal -Inf so that they...

alrededor de 9 años hace | 1

| aceptada

Respondida
help in fzero function
Hello, In addition to what Walter Roberson said as good practice, it would appear that your function does not have a root. ...

alrededor de 9 años hace | 1

Respondida
How to plot a 3 dimensional matrix against its last independent variables?
Hello, A simple solution to get around your problem is: for i = 1:size(u,3) uplot(i) = u(3,5,i); end plot(z,...

alrededor de 9 años hace | 0

| aceptada

Respondida
How to get data from variables that change the name?
Hello, A simple solution would be: Days = [day1 day2 day3 ... day15]; Then call Days(:,i) for the ith days data if it...

alrededor de 9 años hace | 1

Respondida
I need to partition my plot
Hello, It seems like you could just redefine distance_error_rms at the end as: distance_error_rms = distance_error_rms(1...

alrededor de 9 años hace | 0

| aceptada

Respondida
How do I create an equation for symsum that involves multiplaction, fractions, etc?
Hello, You need a multiplication sign between 2 and k: syms k f= 1/((2*k+1)^2.*(2*k+3)^2) S_symsum= symsum(f, k,...

alrededor de 9 años hace | 0

| aceptada

Respondida
Moving window with cumulative sum less than a ref value and excluding certain windows
Hello, I tossed this together real quick so there might be unforeseen errors, but this should work: % Given A window = ...

alrededor de 9 años hace | 1

Respondida
Plotting outputs from for loops in a 3D space
Hello, This should be somewhat like you wanted: %particle vector [x,y,z] position pm= [1;1;1]; %particle mass, arbitr...

alrededor de 9 años hace | 1

| aceptada

Respondida
Adding entry to a matrix loop
Hello, You can fill in your matrix by rows with this: for i = 1:100 for j = 1:200 % Acquire your B ...

alrededor de 9 años hace | 0

| aceptada

Respondida
how does [~,I]=min(abs(strain-0.02)) work ?? (strain is a vector filled with floating point decimal numbers)
Hello, Regarding your original question about: [~,I] = min(​abs(strain ​- 0.02)) Let's talk about what you're computi...

alrededor de 9 años hace | 4

| aceptada

Respondida
Total Number of 24 matrix (3*3) but this code show only one matrix 3*3 how to see full iteration in command window
I'm not entirely sure of your problem, but if you're trying to keep all of the Pare matrices generated, try this: Arr=1...

alrededor de 9 años hace | 0

| aceptada

Respondida
Fix Error: Operands to the || and && operators must be convertible to logical scalar values. Help Please.
Hello, With investigation into the Fzero function, it seems you're producing a nonscalar fx. This leads me to believe that th...

alrededor de 9 años hace | 3

Respondida
Image correction to find circles
Hello, I would suggest trying to use some of the name-value pair arguments, the ones that seemed potentially useful for your ...

alrededor de 9 años hace | 1

Respondida
Why are the random numbers obtained by different invocations to LOGRND() the same?
Hello, This is possible because the two different invocations are running off the same initial seed, causing the same values ...

alrededor de 9 años hace | 0