2
ILSurface에서 서페이스를 플로팅 할 때 밀려났습니다. 시나리오는 다음과 같다 :ILSurface 플롯 매개 변수
플롯 불규칙한 그리드 : 그것은 ILSurface
에 플롯 될 수 있도록
float[] x = new float[sizeX]; // filled with timestamps
float[] y = new float[sizeY]; // filled with values
float[,] z = new float[sizeX, sizeY]; // filled with values mapped by [x,y]
ILInArray<float> inX = ILMath.array(x);
ILInArray<float> inY = ILMath.array(y);
ILInArray<float> inZ = ILMath.meshgrid(inX * inY, inX, inY);
// how do i fill the inZ with z[,]?
ILRetArray<float> outMesh = ILMath.meshgrid(inX, inY, inZ, null, null);
plotCube.Add(new ILSurface(outMesh, null, null, null, null));
// plotCube already attached to the scene, and the scene with the ILPanel
ilPanel1.Refresh();
가 배열이를 매핑 할.
ILInArray<double> ZXYArray
을 성공적으로 채우기 위해 ILMath.meshgrid
을 사용해 보았습니다.
희망은 분명했습니다. 도움을 환영합니다.
감사합니다.
지금까지의 모든 소스 코드? 예상 결과? 결과를 얻었습니까? –
예상 : 시간 (x)로 분할 된 일련의 fft가있는 표면. 여기서 y (주파수) 및 z (진폭). 획득 : 단지 플롯 큐브가 비어 있습니다. 현재 : ILInArray에 [,] 구문을 어떻게 파싱해야할지 모르겠습니다. 주제에 대한 연구를하고 있습니다. 그 (코드) 올바른 방법인가요? – plac88