Matlab Coder entering varying size input

조회 수: 1 (최근 30일)
dan berkowitz
dan berkowitz 2012년 2월 28일
hi, i'm using Matlab Coder to create a static c library. i have a function, L1 which has one input. (output = L1(input)) L1 is an array that can be (2:n,1). that is, the input can be from a 2x1 array to an nx1 array. How do i enter this into the compiler, as it asks for a specific size of the input? any help would be appreciated. thanks db

채택된 답변

Titus Edelhofer
Titus Edelhofer 2012년 2월 28일
Hi Dan,
if you use the MATLAB Coder tool for compiling, you specify the size of input either e.g. as :10 x 1 (if n always smaller or equal to 10) or :inf x 1 to have the number of rows "unlimited".
Titus

추가 답변 (1개)

dan berkowitz
dan berkowitz 2012년 2월 28일
thank you. appreciate your help! db

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by