Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

más de 7 años hace

Resuelto


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

más de 7 años hace

Pregunta


Units for Tic/Toc?
Hi all, I would just like to verify that the units for tic/toc are always in seconds. If I run something for multiple days, w...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Loading .mat file into a variable
I have a bunch of .mat files, each containing a specific variable that I would like to combine into one variable. Yes, I know th...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Remove duplicate cells from cell array of different dimensions
Hi, I have a cell array C of nx1, where each cell contains a vector of different values. Each vector has a different length, ...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Respondida
2015a help button issue
I don't know where your error comes from, but one thing you can do is google the command, Matlab has all the documentation onlin...

más de 7 años hace | 0

| aceptada

Pregunta


2D Voronoi Diagram with Periodic Boundary Conditions
Hi, Does anyone know how to create a 2D voronoi diagram with periodic boundary conditions? Thanks!

más de 7 años hace | 1 respuesta | 2

1

respuesta

Respondida
Entropy Versus Time - Random Walks
I'm not an expert on this stuff, but you should look into axis handles, here is an answer that may help- https://www.mathwork...

más de 7 años hace | 0

Respondida
Storing 2 values in one location of matrix with a space
Stephen is right, the only way to do that is with a cell array. http://www.mathworks.com/help/matlab/cell-arrays.html

más de 7 años hace | 0

Pregunta


fprintf cell array to .txt file
Hi, I have a cell Array C that contains vectors of different length. I would like to print this data to a text file in the f...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Median vs Mean averages using skewness
Hi, I would like to take the average of some data, but I'm unsure whether to use median or mean. I know of the skewness f...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Cumulative Median in place of mean
Is there a way to find a cumulative median of an array without using a loop? I know of the cummean function on the file exchange...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Subplot Titles Don't Appear
Hi, I just have a simple question about subplot titles. I have the following code- figure subplot(1,2,1) [hax1,hline1] =...

casi 8 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Creating Fit Curve/Prediction Interval for Scalar output
I have some data for which I would like to create a 95% prediction interval, where I could say that 95% of the time the next obs...

casi 8 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Using a while loop on each column in an array?
Hi all, I have a script that performs an action on each column of an array at once. I would like to set up a loop where I do ...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to copy an array with some left-over indicies also added on?
I have the following vector I would like to copy: a = [1;2;3;4;5] I would like my resulting vector to be b = [1;2;3...

casi 8 años hace | 3 respuestas | 0

3

respuestas

Pregunta


Replacing a for loop with logical indexing
If someone could help me out with this simple problem, I would really appreciate it. I'm still trying to wrap my head around ind...

casi 8 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Logical indexing 2d to 3d without a for loop
Hi, this may be a simple question, but any help would be appreciated. I have an array g = 100 x 5, and a much larger array w ...

casi 8 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Logical indexing without for loop
Hi all, This is probably a simple question, but I would love some input from those who can lend it. I have a vector [A] I wou...

casi 8 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Saving arrays in a For loop (3D array)
I am running a For loop where each loop outputs an m x n array. I would like to save these arrays into a 3D array, m x n x k, wh...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Moving Variance, variable window size
Is there a way to calculate the moving variance of a data set with a variable window size? I would like my window size to be det...

casi 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Find the First element that satisfies a condition
I have an nxn matrix and would like to find the first element in each row that satisfies a given condition, and gives me NaN if ...

alrededor de 8 años hace | 4 respuestas | 0

4

respuestas