Digital Signal Processing Reference
In-Depth Information
1
2
3
4
5
6
What if you want to add another row onto d? This is easy, just give it a value:
d(4,:)=[7 8]. Notice the colon \:" in the place of the column specier. This is
intentional, it is a little trick to specify the whole range. We could have used the
command d(4,1:2)=[7 8] to say the same thing, but the rst version is easier (and
less typing).
>> d(4,:)=[7 8]
d =
1
2
3
4
5
6
7
8
What if we want to select column 1 only? The following code does this.
>> d(:,1)
ans =
1
3
5
7
Compare the previous output to the following command.
>> d(1,:)
ans =
1
2
Search WWH ::




Custom Search