- #1
majormuss
- 124
- 4
I have attached a picture of what I want Matlab to do. I basically want Matlab to show the list of independent variable 'n' and then another column showing the terms when n=0...10. Some of the outputs are in variable form and others in numerical form.
My attempt so far is stated below. I have no idea why it is not displaying all the terms I need. Any ideas?
<< Mentor Note -- code tags added >>
My attempt so far is stated below. I have no idea why it is not displaying all the terms I need. Any ideas?
Matlab:
>> n=0:10;
>> syms z n
>> S = 1/z^(n-1)
S =
z^(1 - n)
>> T = table(n,S,0:10)
T =
1×3 table
n S Var3
_________ _________ _____________
[1x1 sym] [1x1 sym] [1x11 double]
>>
<< Mentor Note -- code tags added >>
Attachments
Last edited by a moderator: