A résolu


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

environ 8 ans il y a

A résolu


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...

environ 8 ans il y a

Question


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...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


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...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


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, ...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 8 ans il y a | 0

| A accepté

Question


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

plus de 8 ans il y a | 1 réponse | 2

1

réponse

Réponse apportée
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...

plus de 8 ans il y a | 0

Réponse apportée
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

plus de 8 ans il y a | 0

Question


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...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


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...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


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...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


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] =...

plus de 8 ans il y a | 2 réponses | 0

2

réponses

Question


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...

plus de 8 ans il y a | 1 réponse | 0

0

réponse

Question


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 ...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


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...

plus de 8 ans il y a | 3 réponses | 0

3

réponses

Question


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...

plus de 8 ans il y a | 2 réponses | 0

2

réponses

Question


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 ...

plus de 8 ans il y a | 1 réponse | 0

0

réponse

Question


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...

plus de 8 ans il y a | 2 réponses | 0

2

réponses

Question


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...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


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...

plus de 8 ans il y a | 1 réponse | 0

1

réponse

Question


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 ...

plus de 8 ans il y a | 4 réponses | 0

4

réponses