Functions with varying number of inputs and matching them inside function
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170915/image.jpeg)
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 comentario
Guillaume
el 2 de Mzo. de 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.
Respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!