char *b;
b=malloc(100);
free(b);
Tuesday, November 8, 2011
Monday, November 7, 2011
MATLAB GUI Edit Text and Static Text Objects Example
%Assume there is text_edit object which is called editext1.
%Assume there is a static_text object which is called statext1.
%Get the string in the text_edit object and convert it into a number n
n=str2num(get(handles.editext1,'string'));
%Do some thing with n
y=n*n;
%Convert y back into a string stry
stry=num2str(y);
%Set the 'string' field of the static_text object the string stry.
set(handles.statext1,'string',stry);
UNESCO's 'Four Pillars for the 21st Century Education'
- Learning to know
- Learning to live with
- Learning to be
- Learning to do
Sunday, November 6, 2011
Image processing with MATLAB
- Find and tracking a green ball from images/frames in a video in a MATLAB demo.
- Creating a GUI with GUIDE
- Open and display an image file in the GUI
- Save a current image
- MATLAB GUI for changing image brightness
- MATLAB GUI for measuring image quality using PSNR and RMSE metrics
im = imread(filename);
imagesc(im);
%Create a handle to manage the image im
handles.im = im;
%Update handles structure/Save the change made to the structure
guidata(hObject, handles);
%Get the image im for manipulation
im = handles.im;
%Save the image im
[filename,pathname] = uiputfile( ...
{'*.jpg', 'JPEG Image File'; ...
'*.*', 'All Files (*.*)'}, ...
'Save current image as');
if (filename~=0)
var=strcat(pathname,filename);
imwrite(im,var);
end
im = handles.im;
%Save the image im
[filename,pathname] = uiputfile( ...
{'*.jpg', 'JPEG Image File'; ...
'*.*', 'All Files (*.*)'}, ...
'Save current image as');
if (filename~=0)
var=strcat(pathname,filename);
imwrite(im,var);
end
Saturday, November 5, 2011
Topics in my head
- Science
- Business
- Invention
- Magazine
- Ebooks
- Programming languages
- MATLAB
- WEKA
- SQL
- PHP
- Applied mathematics
- Jobs
- Career
- Money
- Intelligence
- Smart
- New scientist
- Simulation
- Modelling
- Internet retailer
- Internet retailing
- Research
- Entrepreneur
- Optimization
- Data mining
- Quadratic programming
- SVM
- Canon EOS 550D
- Canon EOS 600D
- Artificial intelligence
- Database
- Android/IOS apps
- R and data mining
- Statistics
- Signal processing
- Octave
Friday, November 4, 2011
How to choose a home loan agent
The following helps us to select a home loan agent
1. Loan to home value ratio: 80% up to 100%
2. Exit fee
3. Evaluation fee
4. Minimum and maximum term (e.g. 1 year to 30 years)
5. Application fee
6. Fixed interest or variable interests
7. Different payment period options (e.g. monthly, fortnightly, weekly)
8. Payment options: principle and interest or interest only
9. Options to redraw
10. Options to make extra payment
11. Account transfer fee
Source from infochoice.com.au
1. Loan to home value ratio: 80% up to 100%
2. Exit fee
3. Evaluation fee
4. Minimum and maximum term (e.g. 1 year to 30 years)
5. Application fee
6. Fixed interest or variable interests
7. Different payment period options (e.g. monthly, fortnightly, weekly)
8. Payment options: principle and interest or interest only
9. Options to redraw
10. Options to make extra payment
11. Account transfer fee
Source from infochoice.com.au
Perspectives
1. One object to another object
2. One thing to another thing
3. One idea to another idea
4. One image to another image
5. One situation to another situation
2. One thing to another thing
3. One idea to another idea
4. One image to another image
5. One situation to another situation
Subscribe to:
Posts (Atom)
Mounting USB drives in Windows Subsystem for Linux
Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives form...
-
Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives form...
-
1. Judging chocolate cookies [1] 2. Judging group work [2] 2.1 Features of a good rubric Clearly worded and easy to understand fr...