Functions with varying number of inputs and matching them inside function
1 次查看(过去 30 天)
显示 更早的评论
I have matlab function. Were it is processing some data and generating a report based on the input to the function
Example function ds = testfunc(spec,operator)
Here in the table I process inside will have data in the form
And so on.
Now ,earlier I had only one kind of exp. In that case , I had two inputs to the function spec and operator. Were spec is the target for expression based on the operator I give (eg: < , > ).
But I am confused about how to get and process the spec and operator if the table has multiple expressions value combinations.
If I give multiple specs and operator, how can I match that to the expressions inside the function.?
Any idea is welcome.
1 个评论
Guillaume
2018-3-2
I'm afraid I'm really struggling to follow your explanation and thus don't understand what it is you're asking. Perhaps give an example of how you are currently calling your code and an example of how you would like to call it in the future (using valid matlab syntax for the examples).
As an aside we don't really like screenshots in question. We can't copy the data from your screenshot into our answer. If you put it as text, we can.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!