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!