开发者

how can i write f(first,y) in matlab?

开发者 https://www.devze.com 2023-01-01 08:27 出处:网络
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 cod开发者_高级运维e for f(first,y)?thank

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 cod开发者_高级运维e for f(first,y)?thank you!


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


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消