compare and store information of different length into an array

4 次查看(过去 30 天)
I am taking out information from arrays by doing something like this from a for loop distance(ID == x) , where x = [ 1:9 ]
This gives me data of different lengths.
I want to save all that data in an array and get delta range between all the comparisons with a certain frequency and store that information later to plot a histogram. How do I do that?
Delta range between: column 1 with column 2 3 4 5 6 7 8 9 column 2 with column 1 3 4 5 6 7 8 9 column 3 with column 1 2 4 5 6 7 8 9 column 4 with column 1 2 3 5 6 7 8 9 ... column 9 with column 1 2 3 4 5 6 7 8
Please let me know if more clarification is needed.
Thought: Since I know that the lengths are not the same, I can't store them in an array and I tried to create a matrix with zeros and tried to only store the information of all the arrays in there and I get an error. I think I might be starting this problem wrong.

回答(1 个)

Image Analyst
Image Analyst 2017-3-1

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by