assigning a vector to a function
2 次查看(过去 30 天)
显示 更早的评论
I made a function that returns a vector as a response. I noticed that this vector is not 'stored' as I check the workspace. So I attempted to say A = FUNCTION(X,Y). But it returned 'ERROR USING FUNCTION. TOO MANY OUTPUT ARGUMENTS'.
I want to store the response given by the function in a vector so I can use it in the future. How do i do this?
Thanks
0 个评论
采纳的回答
更多回答(1 个)
Ingrid
2015-10-29
you do not have enough information in your question, why do you not add the relevant code?
if in your function file you have started it with
function A = FUNCTION(X,Y)
...
you should be able to use it as such. Your error message seems to indicate that your function is not returning a vector as a response although you have indicated this is the case
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!