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!