jtsp
Joined: 30 Jan 2008 Posts: 1
|
27 Aug 2008 14:51 s function builder problem |
|
|
|
hi,
i'm trying to use simulink's S function builder. under data properties, the input is recd an array with 255 rows and 6 columns; however, when I try subscripting it in the code, it generates an error C2109: subscript requires array or pointer type
frame = 6;
n = 255;
int era[255];
int recdtoo[255][6];
for (frames=0;frames<frame;frames++)
{
for (bits=0;bits<n;bits++)
{
era[bits]=0;
recdtoo[bits][frames] = recd[bits][frames]; //error
}
}
when I try declaring : int recd[255][6] ,it say I cannot redefine the input.
why does it not recognize the input as an array?
many thanks in advance
|
|