3GPP Cell ID and Cell Type - lte

I was going through the 3GPP documents, different Cell IDs and Cell Types.
CellType Format
CGI MCC+MNC+LAC+CI
ECGI MCC+MNC+ECI
SAI PLMN-ID+LAC+SAC
TAI MCC+MNC+TAC
For Eg:
ECGI Value = 310-260-328290210
TAI Value = 310-260-44615
Was just curious, whether we can find the Cell Type given the Cell ID.
If we can, can anyone point me to any resources?

Related

Use the number in one cell to define another cell

I have a cell whose entry is a variable integer.
I'd like to use this number to define another cell.
For example, if the number is 5, then I want Excel to automatically return the whatever's in cell E5; similarly, if the number is 100, I want Excel to return whatever's in cell E100.
How do I do this?
=INDIRECT("E" & C2)
C2 = 5
INDIRECT returns a value from a cell that is referenced using a string i.e.
"E2", "A1", etc.
The and sign("&") concatenates two strings together.
Use INDIRECT()
Assume you have variable number in cell "F3" and values in column "E"..
Write formula like - =INDIRECT("E"&F3)

Matlab - sort cell array of objects by property

Suppose I had a class named Foo, with a datenum property named DateTime. If I had a cell array collection of Foo objects, how would I sort that according to each object's DateTime property?
I have seen references to overloading the sort method and working with arrays of objects, however I'm using a cell array due to dynamic sizing and those instructions aren't holding up. Anybody got some suggestions? Cheers
The simplest approach is to extract the time-values into a vector, sort that, and use the new order to sort the original array.
%# extract DateTime from the cell array fooCell
dateTime = cellfun(#(x)x.DateTime, fooCell);
[~,sortIdx] = sort(dateTime);
%# reorder fooCell
fooCell = fooCell(sortIdx);

iphone - Create NSMutableDictionary filled with NSMutableArrays dynamically

I have an array of objects. Each object has property "date" and "title".
I want to populate sectioned UITableView with those items like:
Section 1 - 2012.06.12 (taken from object.date)
Cell 1.1: Title 1 (taken from object.name)
Cell 1.2: Title 2
Cell 1.3: Title 3
...
Section 2 - 2012.06.13
Cell 2.1: Title 1
Cell 2.2: Title 2
..
Section 3 ..
I can do that by manually creating 1..n NSMutableArrays for all date combinations and filling them with object.name values. But the problem is I do not know how many date combinations there are, so it should be done dynamically. Also, the date property can repeat in different objects
My object structure is:
Object
-NSDate - date
-NSString - title
UPD:
I was thinking if it is possible to create NSDictionary, where the key would be my date and the object would be NSArray, which contains all my items for the key-date. But I do not know how to do that dynamically.
I hope I explained my question clearly enough.
Thank you in advance!
You can create arrays based on date.You have array of objects, so iterate through this array of objects to get distinct dates, as follows:
for(int i =0;i<[objectsArr count];i++)
{
if(![newDateArr containsObject:[objectsArr objectAtIndex:i].date])
{
[newDateArr addObject:[objectsArr objectAtIndex:i].date];
}
NSMutableArray *newTitleArray = [newTitleDictionary objectForKey:#"[objectsArr objectAtIndex:i].date"];
if(newTitleArray != nil)
{
[newTitleArray addObject:[objectsArr objectAtIndex:i].title];
}
else
{
newTitleArray = [[[NSMutableArray alloc] init] autorelease];
[newTitleArray addObject:[objectsArr objectAtIndex:i].title];
}
[newTitleDictionary setValue:newTitleArray forKey:#"[objectsArr objectAtIndex:i].date"];
}
where newTitleDictionary and newDateArr are declare outside this method.Now you can use both is newTitleDictionary and newDateArr to populate tableview.
If I understand you correctly, you want to put an object into an array and then use that array to populate a table view?
Just add the date object each time to the NSMutableArray.
[myArray addObject:dateObject];
Then when it comes to populating the table view..
DateObject *newDateObj = [myArray objectAtIndex:index];
I hope this helps and I understood your question
EDIT To answer now I understand a bit more.
Step 1
Check through the existing array of dates and see if there are any that match maybe by iterating through it using a for loop. Search online for how to compare NSDate.
Step 2 If it doesn't match any then insert it into the array as an array with just that date on it's own so the array count will be one. If it does match then insert it into the array along with that one making the array count 2 or more.
Step 3 When it comes to declaring the section amount for the table just return the dateHolderArray count.
Step 4 When declaring the amount of rows in each section, return the array count for the array thats inside the dateHolderArray.
Step 5 Display the content when it comes to populating the cells with information. It becomes just a task of getting the dates from the arrays using the section ids and row ids.
This is how I would do it, there are probably many other methods. Any questions just ask

how to pass two array variable in one another array variable for searching in iphone

i have two array and i am inserting this two array another one array for displaying data on tableview cell but how to fetch name from first array and report from second array
for eg:
i am doing this
NSMutableArray *myArray = [[NSMutableArray alloc] initWithObjects:self.ListOfname,self.ListOfpeople,nil];
[self.list addObjectsFromArray:myArray];
In myArray i am passing two array first listofname and second listofpeople here i getting
proper but how to display two diffrent array value from one array variable on tableview cell
And my self.ListOfname array variable value is coming from this class Namecontrooler.m
And my self.ListOfpeople array variable value coming from this class Peoplecontroller.m
so my question is how to retrive this class value and print on tableview cell by one array
i am doing this on cell for row at indexpath this is right for display value
Namecontrooler*Name=(Namecontrooler*)[self.list objectAtIndex:indexPath.row];
Peoplecontroller*people=(Peoplecontroller*)[self.list objectAtIndex:indexPath.row];
here i not getting how to display both class value in on tableview cell please help me here how to do this
I think your self.list contains only two objects 1>ListOfName 2>ListOfPeople .So before accessing object at index of indexPath.row,First take out which object u want out of two and then with reference to indexPath.row take out object at particular object.

How to load a specially formatted data file into matlab?

I need to load a data file, test.dat, into Matlab. The contents of data file are like
*a682 1233~0.2
*a2345 233~0.8 345~0.2 4567~0.3
*a3457 345~0.9 34557~1.2 34578~0.2 9809~0.1 2345~2.9 23452~0.9 334557~1.2 234578~0.2 19809~0.1 23452~2.9 3452~0.9 4557~1.2 3578~0.2 92809~0.1 12345~2.9 232452~0.9 33557~1.6 23478~0.6 198099~2.1 234532~2.9 …
How to read this type of file into matlab, and use the terms, such as *2345 to identify a row, which links to corresponding terms, including 233~0.8 345~0.2 4567~0.3
Thanks.
Because each of the rows is a different size, you either have to make a cell array, a structure, or deal with adding NaN or zero to a matrix. I chose to use a cell array, hope it is ok! If someone is better with regexp than me please comment, the output cells are now not perfect (i.e. show 345~ instead of 345~0.9) but I am sure it is a minor fix. Here is the code:
datfile = 'test.dat';
text = fileread(datfile);
row1 = regexp(text,'*[a-z]?\d+','match');
data(:,1) = row1';
row2 = regexp(text,'*[a-z]?\d+','split');
row2 = [row2(:,2:end)'];
for i = 1:size(row2,1)
data{i,2} = regexp(row2{i},'\d+\S\d+\s','split');
end
What this creates is a cell array called data where the first column of every row is your *a682 id and the second column of each row is a cell with your data values. To get them you could use:
data{1}
to show the id
data{1,2}
to show the cell contents
data{1,2}{1}
to show the specific data point
This should work and is relatively simple!