문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

질문


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

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 답변 수: 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, ...

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 0

| 수락됨

질문


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

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 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

9년 초과 전 | 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...

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 답변 수: 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] =...

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 답변 수: 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 ...

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 답변 수: 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 ...

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 답변 수: 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...

9년 초과 전 | 답변 수: 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...

거의 10년 전 | 답변 수: 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 ...

거의 10년 전 | 답변 수: 4 | 0

4

답변