tags:

views:

43

answers:

2

can you please help me?, i can't explain my question clearly, I define x & y ,i can write plot(f(end,y)) ,but I want to know that how can i must type this code for f(first,y)?thank you!

+2  A: 

"f(first,y)" is f(1,y)

Jonas
i mean the "first" element (for expample) in a array
sam
'1' is the first element, just as 'end' is the last.
Kleist
@sam: yes, that's exactly what my solution does.
Jonas
A: 

Is f() a function? If so, are you wanting to pass the first element of y to f()? You can do this with f(y(1)).

Perhaps the MATLAB documentation on Matrix Indexing would help you?

gnovice
you are right!i believe that was a foolish question!
sam
@sam: Don't worry too much. The better you know a language, the better you learn to ask questions - and vice versa.
Jonas

related questions