Functions with varying number of inputs and matching them inside function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Guillaume
am 2 Mär. 2018
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.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!