Define input types to 1x:inf in test script.

1 view (last 30 days)
Peter B
Peter B on 29 Jun 2016
I'm a fairly new user to matlab, and chances are i might be approaching this wrong. In that case please corret me.
My case is i want to create a C lib for my matlab code using Coder. But i'm growing more and more anoyed with having to redo all definitions of input variables every time i add a new entry point, this task is getting more and more cumbersom as the project grows.
My wish is to be able to define the input in my test script using something like.
inputA = [100 10000];
coder.varsize('inputA ',[1,inf],[false,true]);
EntryPoingMethod(inputA);
When i use the Coder Gui, i run my test function and the inputA is set to double ( 1x2 ) and not 1x:inf as im looking for. I then manually have to correct each and every variable in every entrypoint afterwards.
Is there a way out of this, or am i just doing it wrong in the first place.

Answers (0)

Categories

Find more on Testing Frameworks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!