|
Last change
on this file was 25836, checked in by Mathieu Morlighem, 5 years ago |
|
merged trunk-jpl and trunk for revision 25834
|
-
Property svn:executable
set to
*
|
|
File size:
706 bytes
|
| Rev | Line | |
|---|
| [5485] | 1 | function dresp=QmuSetupResponses(md,dresp,responses)
|
|---|
| 2 |
|
|---|
| 3 | %get descriptor
|
|---|
| 4 | descriptor=responses.descriptor;
|
|---|
| 5 |
|
|---|
| 6 | %decide whether this is a distributed response, which will drive whether we expand it into npart values,
|
|---|
| 7 | %or if we just carry it forward as is.
|
|---|
| 8 |
|
|---|
| 9 | %ok, key off according to type of descriptor:
|
|---|
| 10 | if strncmp(descriptor,'scaled_',7),
|
|---|
| 11 | %we have a scaled response, expand it over the partition.
|
|---|
| 12 |
|
|---|
| 13 | %ok, dealing with semi-discrete distributed response. Distribute according to how many
|
|---|
| 14 | %partitions we want
|
|---|
| [25836] | 15 | npart=qmupart2npart(responses.partition);
|
|---|
| [5485] | 16 |
|
|---|
| [25836] | 17 | for j=1:npart,
|
|---|
| [5485] | 18 | dresp(end+1) =responses;
|
|---|
| 19 | dresp(end ).descriptor=sprintf('%s_%d',responses.descriptor,j);
|
|---|
| 20 | end
|
|---|
| 21 |
|
|---|
| 22 | else
|
|---|
| 23 | dresp(end+1)=responses;
|
|---|
| 24 | end
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.