Month: March 2011

C/C++ : Passing Argument

I want create program with C/C++ with passing argument feature. We can input string, integer or float from this argument input. Create a file with name main.c and paste this code : /* * main.c * * Created on: Mar 24, 2011 * Author: toto */ #include <stdlib.h> #include <stdio.h> int main(int argc, char **argv)

C/C++ : Ascii to EBCDIC Converter

Continue from my last post about Convert EBCDIC to Ascii Convert, now I try to create a program with C/C++ to convert Ascii to EBCDIC (ascii to ebcdic converter). Create a file main.c and copy this code : /* * main.c * * Created on: Mar 22, 2011 * Author: toto */ #include <stdlib.h> #include

Matlab GUI With Multiple Axes

We can create Matlab with multiple axes with command subplot.  Example : subplot(2,2,1); plot(x1,y1); subplot(2,2,2); plot(x1,y4); subplot(2,2,3); plot(x1,y4); subplot(2,2,4); plot(x1,y4); Output image from this Matlab with multiple axes code is : But when we create a gui program (with GUIDE) in matlab, we can not create Matlab GUI with multiple axes directly. This is a

Matlab : Create Random Data in Range

We can create random data in Matlab with command : rand (Uniformly distributed pseudorandom numbers) randn (Normally distributed random numbers) unifrnd (Continuous uniform random numbers) random (Random numbers) If we want to create random data in range, we can use unifrnd function. Example : unifrnd (1 , 10 , [5,1]) This command will create random