Define input types to 1x:inf in test script.
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Testing Frameworks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!