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!