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!
i mean the "first" element (for expample) in a array
sam
2010-05-30 20:40:46
'1' is the first element, just as 'end' is the last.
Kleist
2010-05-30 21:49:42
@sam: yes, that's exactly what my solution does.
Jonas
2010-05-30 22:29:36
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
2010-05-30 21:02:49