I have three questions:
1)
I want to compute the following using MATLAB:
11^2 + 13^2 + 15^2 + ... + 109^2 + 111^2
I have tried using:
x = [11^2 13^2 15^2 ... 109^2 111^2]
z = cum(single(x))
but I got an error...
2)
I want to display '2 sin/pix'... I tried:
tittle('2 sin/pix')
Can I represent the display without displaying it in figure?
3)
The Fibonacci series is given as follow:
1, 2, 3, 5, 8, 13, 21, ...
How can I write a script file to calculate and print out the n-th Fibonacci term for n>2, where n is input by the user.
This is what I've tried:
input('n: ')
z = cumsum(n)
fprintf('the series=%d')
but I received an error...