Answered
Stopwatch
If you get little confused with that value, Then you can replace command 'toc' with fprintf('Total time : %.2f second\n',toc...

14 years ago | 2

| accepted

Answered
how to use colorbar and colormap?
clear; clc; I = imread('cameraman.tif'); imagesc(I); colormap(jet); colorbar;

14 years ago | 1

| accepted

Answered
strings
Did you mean?? clear; clc; word = lower(input('Enter a word : ','s')); letter = input('Guess a character : ','s...

14 years ago | 1

| accepted

Answered
Splitting into function files
I will give you one more. function [complete fail] = check_win(masked, wrong) if isempty(findstr(masked,'*')) ...

14 years ago | 1

Answered
Splitting into function files
Hello, After modification, I get my code becomes shorter : clear, clc; filename = 'Hangman.txt'; data = load...

14 years ago | 1

Answered
Splitting into function files
Just call the function's name. I will give U first sample code :) Replace code below : fid = fopen('hangman.txt','r')...

14 years ago | 1

| accepted

Answered
intersection of multiple images
Hello, Sorry for waiting. Here the code : array = uint8(intersection); for row = size(intersection,1) : -1 : 1 ...

14 years ago | 2

| accepted

Answered
Extracting data from file.
Hello, Here the code. I think it is very complicated works with your data. But I have write this code. clear; clc...

14 years ago | 1

| accepted

Answered
Splitting into function files
Hello, Chris Was your professor wants to divide or split this code into multiple function files? I have tried with my own code...

14 years ago | 1

Answered
display+string
Hello, I modify my 'hangman.txt' at first line : Signature chair calculator window picture browser p...

14 years ago | 1

| accepted

Answered
String and display help
Hello, So long time you have waiting. Here I give you my code. I have 'Hangman.txt' signature chair calculator ...

14 years ago | 1

| accepted

Answered
String help!?
first_guess=char(input('Enter letter \n','s'));

14 years ago | 1

| accepted

Answered
Getappdata and setappdata
Hello, I will give you sample code for this topic. I have a .fig file (figure) that consists of 2 axes (axes1 and axes2) and ...

14 years ago | 7

| accepted

Answered
display values in a loop
Hello, Here I give you my sample code clear; clc; I = imread('pillsetc.png'); bw = im2bw(I); open = bwareao...

14 years ago | 2

| accepted

Answered
reading multiple images
Hello, In order to find the intersection of two similar image, you can do image subtraction. clear; clc; I = ...

14 years ago | 2

| accepted

Answered
Extracting data from file.
Hello, I saved your data above into 'Data01.txt'. Then I trying to combine function 'fgetl' with 'textscan' to read your da...

14 years ago | 1

Answered
How to add more images on a gui...
Hello,, Here the download link. I cannot modified your code, but I created new fig file. http://www.4shared.com/file/9ueYO...

14 years ago | 1

| accepted

Answered
How to add more images on a gui...
Hello, I think what's wrong with using 'imagesc' function to display your images? Imagesc works for all supported image ...

14 years ago | 1

Answered
getsnapshot
Hello, This is the code. This code will captures images from your webcam. clear; clc; a = imaqhwinfo; camera_n...

14 years ago | 2

| accepted

Answered
input comma separated values to a matrix
Of course it can be done. clear; clc; answers = input('Enter the numbers, separated by a comma : ','s'); str = regexp...

14 years ago | 2

| accepted

Answered
call different functions
Hello, I have 'fun1.m' function fun1(x,y) disp(x+y); I have 'fun2.m' function fun2(x2,y2) disp(x2-y2); ...

14 years ago | 1

| accepted

Answered
For-Loop Algorithm
clear; clc; A = cell(10,1); B = num2cell([1 2 3]); for x = 1 : numel(A) idk = mod(x,3); if idk == 0...

14 years ago | 2

| accepted

Answered
reading columns from a text file with errors
Hello, I think it is realy difficult to read 'cooling down' as 'cooling_down' or 'coolingdown' using textscan. But I found new...

14 years ago | 1

| accepted

Answered
noise removal without bulitin functions
Use 'median filtering' technique. clear; clc; I = imread('eight.tif'); I = imnoise(I, 'salt & pepper', 0.01); [r ...

14 years ago | 5

| accepted

Answered
problem in perimeter
Sorry. Here I modified my code clear all; clc I =[0 0 1 1 0 0; 0 1 1 1 1 0; 0 1 1 1 1 0; 0 0...

14 years ago | 1

| accepted

Answered
problem in perimeter
clear all; clc; I =[0 0 0 0 0 0; 0 0 1 1 0 0; 0 1 1 1 1 0; 0 1 1 1 1 0; 0 0 1 1 0 0...

14 years ago | 1

Answered
Combining two number to one number
a = 1; b = 2; c = 3; result = strcat(num2str(a),num2str(b),num2str(c)); result = str2num(result);

14 years ago | 6

| accepted

Answered
Load----problem in using this commad
I have 100 text file with filenames F001.txt, F002.txt, F003.txt, ... , F010.txt, F011.txt, ... F100.txt. Use this code below...

14 years ago | 1

| accepted

Answered
Remove command select file and want replace with automatic select
Just replace if nargin==0 [filen,path]=uigetfile('*.sn1;*.sn2;*.mp1;*.mp2',... 'Pick your TEQC report fil...

14 years ago | 2

| accepted

Answered
how to do convolution without commands
Hi, Omar. Do you seeking for 2D convolution code without Matlab toolbox command?? I have the code below function B = convolve...

14 years ago | 4

| accepted

Load more