a guest Aug 8th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- % Generating an raw unsigned char file with a sinus.
- % open file sample.raw for writing, generate values
- % write file and close (incedentaly plot)
- myfile = fopen ("sine.raw", "w");
- x = linspace(0, 2*pi, 64);
- y = 128*sin(x)+128;
- plot(x, y);
RAW Paste Data