본문 바로가기

Programming399

[C] Strunct, Pointer, Pointer /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 28-03-2017Modified : 28-03-2017Language/ver : C in MSVS2015 Description : Practice : TelPhone1.c KEYWORD : Struct, Pointer(Pointer)------------------------------------------------------------------------------------------*/ #include struct person {char name[20];ch.. 2017. 3. 28.
[C] Struct, Pointer /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 28-03-2017Modified : 28-03-2017Language/ver : C in MSVS2015 Description : Practice : TelPhone1.c KEYWORD : Struct, Pointer------------------------------------------------------------------------------------------*/ #includestruct person {char name[20];char phone[2.. 2017. 3. 28.
[C] Struct storing name and number at the same time /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 28-03-2017Modified : 28-03-2017Language/ver : C in MSVS2015 Description : Practice : TelPhone1.c Showing sturct can including array also.------------------------------------------------------------------------------------------*/ #include #include struct person {c.. 2017. 3. 28.
[C] Struct distance example /*------------------------------------------------------------------------------------------@ Pratice C laguage Author : SAMCreated : 28-03-2017Modified : 28-03-2017Language/ver : C in MSVS2015 Description : Practice : distance1.c------------------------------------------------------------------------------------------*/ #include #include struct point {int x;int y;}; int main(void) {struct point.. 2017. 3. 28.
Median, Moving average, 7segment 1. Matlab NI6009 연동 device detection -> session -> channel port -> data acquisition -> clear session 2. Median, Moving average데이터, 배열, 인덱싱 자유롭게 해야 실시간 데이터 사용가능. Background를 쓰는 의미가 생김. 3. 함수 활용하는 방법 지역 변수, 글로벌 변수 4. sort 하는 방법여러가지 sort 이 있고, heap, quit sort 에 대해 다시 할 수 있는 시간이 있기를... 5. 에러 사항. 화요일에 최대한 많이 풀고 다음 금요일 밤에 마무리 할 수 있기를. 토요일이 너무 조마조마 했고, 지금도 너무 찝찝하다 못끝냈기 때문에. 하지만 수치해석이 더욱 큰 파도이므로 이것에 투자할.. 2017. 3. 26.
Mathematical Modeling by using Matlab Try basic mathematical modeling using Matlab and NI6009 1. Connet NI6009, variable resistor, and bread board. 2. Take davantage of the simulink of Matlab. Adjust the handle of the variable resistor to 0, 90, and 150 degree with respect to the horizontal line, and measure the voltage value at that time. Figure 1. data 3. Use the cftool function to find the mathematical modeling value of the linea.. 2017. 3. 19.
OpenCV...searching... openCV 관려 프로젝트 찾아보는 중...1. OpenCV>_ 벤치마킹 할 수 있는 프로젝트 찾아내기... 나무 컴퓨터 그래픽스 수학 사용 관련 동영상.https://namu.wiki/w/%EC%BB%B4%ED%93%A8%ED%84%B0%20%EA%B7%B8%EB%9E%98%ED%94%BD%EC%8A%A4 컴퓨터 그래픽스 -> 렌더링 -> OpenGL -> 존 카맥 -> 이드 소프트웨어 -> NVIDIA -> OpenCL -> 크로마 키 -> 모션 캡쳐 -> 프레임 캡쳐 -> 시그 그래프 -> DOT -> 디스플레이 -> OLED -> AMOLED -> 삼성디스플레이 -> LG디스플레이 -> 레티나 디스플레이 -> 구글 픽셀 시리즈 -> GIF -> PNG -> 도량형 -> 길이 -> 넓이 ->.. 2017. 3. 17.
Setting Up OpenCV in Visual Studio 2015 출처 https://www.youtube.com/watch?v=l4372qtZ4dc 1. OpenCV 다운로드2. 환경설정 : path 설정해주기 3. 프로젝트 생성 C++ 콘솔4. Debug x64 로 변경하기5. 제공되는 예제 코드 복붙6. C++ General Additional Include Directories : D:\DragoniteGO\opencv\build\include (인클루드) 7. Linker General Additional Library Directories : D:\DragoniteGO\opencv\build\x64\vc14\lib (라이브러리)8. Linker Input Additional Dependencies : opencv_world320d.lib (라이브러리 중 하나.. 2017. 3. 14.
[C] 2 by 2 Matrix /*2차원 배열 선언과 초기화 연습하기.컴퓨터 그래픽 3D 작업에 사용된다고 하니 재미있겠다 > 2바이2로 고정해보고 하기. 쉽게2. 그거 받아서 그에 맞는 2차원 어레이 만들기3. 초기화 하기4. 값 받기5. 받은 값 잘 입력되었나 출력해보기6. 그 다음에 연산하면 된다네... */ #include #include int main(void) {int InputArray1[2][2], InputArray2[2][2];int i, j; for (i = 0; i < 2; i++){for (j = 0; j < 2; j++){printf("Matrix [%d] [%d] ", i, j);scanf_s("%d", &InputArray1[i][j], sizeof(InputArray1));}} for (i = 0; i.. 2017. 3. 10.
헤더파일 연결하는 시도...성공 /* calculator.h : 추가된 파일이라고 합니다 한번 시험 삼아서 그대로 실행 보도록 할게용*/ extern int cal_num; double add(double a, double b);double minus(double a, double b);double multiple(double a, double b);double divide(double a, double b); /* calculator.c : 변경없음이라고 합니다. 이것은 뭔가요. 그대로 해보고 제발 돌아가길...보아하니 음 대략적으로 헤더파일에는 함수 프로토타입만 기입하고 c 파일에는 몸통까지 기입하고 메인에서 불러서 사용하는 듯 합니다.헤더의 하나 변수 선언 한 것은 무엇이지..?*/ int cal_num = 0; double ad.. 2017. 3. 10.