MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Looking for help with dummy matrix 

Subject: Looking for help with dummy matrix From: Shaun Hurley Date: 7 Jul, 2010 15:53:04 Message: 1 of 8 
I'm not sure if it's a dummy matrix that I need, but if not maybe you could suggest something else. I have made a program that will find the ranges of a set of data points. If the the first range is less than or equal to the 2nd, the two data points that make up that range are removed from that set of data. Is there a way to have all of these deleted numbers collected and set up as a new matrix? My ultimate goal is to have the program give me the mean and range of each set of data points that were deleted. Here is my code and thanks in advance for any input you have! 
Subject: Looking for help with dummy matrix From: Matt Fig Date: 7 Jul, 2010 16:04:05 Message: 2 of 8 
Your explanation is a little foggy. Could you give an example of the input and what you expect the output to be? Try to come up with an example which is: 
Subject: Looking for help with dummy matrix From: Shaun Hurley Date: 7 Jul, 2010 16:33:06 Message: 3 of 8 
No problem here is each step of the program: 
Subject: Looking for help with dummy matrix From: Shaun Hurley Date: 7 Jul, 2010 16:35:19 Message: 4 of 8 
No problem here is each step of the program: 
Subject: Looking for help with dummy matrix From: Matt Fig Date: 7 Jul, 2010 17:10:19 Message: 5 of 8 
This would seem to do it as a first step. The data rewriting will kill you with very long vectors. I leave the commenting to you. 
Subject: Looking for help with dummy matrix From: Shaun Hurley Date: 7 Jul, 2010 17:26:20 Message: 6 of 8 
"Matt Fig" <spamanon@yahoo.com> wrote in message <i12cdr$3s7$1@fred.mathworks.com>... 
Subject: Looking for help with dummy matrix From: Matt Fig Date: 7 Jul, 2010 18:29:05 Message: 7 of 8 
You should be able to store your data in an array. Here is your code modified somewhat for efficiency and with the data stored in array H. H should have all the data you need to do whatever you need afterward. 
Subject: Looking for help with dummy matrix From: Shaun Hurley Date: 7 Jul, 2010 21:07:04 Message: 8 of 8 
Thank you so much!! I was able to finish my entire program today! At the rate I was going it was literally going to take at least a month. Everything works perfect, thank you again! 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.