解決済み


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

7年以上 前

解決済み


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

7年以上 前

質問


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

7年以上 前 | 1 件の回答 | 0

1

回答

質問


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

7年以上 前 | 1 件の回答 | 0

1

回答

質問


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

8年弱 前 | 1 件の回答 | 0

1

回答

回答済み
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...

8年弱 前 | 0

| 採用済み

質問


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

8年弱 前 | 1 件の回答 | 2

1

回答

回答済み
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...

8年弱 前 | 0

回答済み
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

8年弱 前 | 0

質問


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

8年弱 前 | 1 件の回答 | 0

1

回答

質問


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

8年弱 前 | 1 件の回答 | 0

1

回答

質問


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

8年弱 前 | 1 件の回答 | 0

1

回答

質問


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

8年弱 前 | 2 件の回答 | 0

2

回答

質問


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

8年弱 前 | 0 件の回答 | 0

0

回答

質問


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

8年弱 前 | 1 件の回答 | 0

1

回答

質問


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

8年弱 前 | 3 件の回答 | 0

3

回答

質問


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

8年弱 前 | 2 件の回答 | 0

2

回答

質問


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

8年弱 前 | 0 件の回答 | 0

0

回答

質問


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

約8年 前 | 2 件の回答 | 0

2

回答

質問


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

約8年 前 | 1 件の回答 | 0

1

回答

質問


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

約8年 前 | 1 件の回答 | 0

1

回答

質問


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

約8年 前 | 4 件の回答 | 0

4

回答