Answered
imshow and GUI axis handles
axes(handles.axis1); imshow(YourImage) And you can get handles to different axis using findobj: hAxes = finobj(gcf, '...

12 years ago | 3

Answered
how do i crop an image using its matrix data?
I = imread('ImageName'); I = imcrop(I)

12 years ago | 0

Answered
How do I convert displacement to velocity and acceleration when given displacement
v = diff(d)./diff(t) diff gives the approximate derivate.

12 years ago | 1

| accepted

Answered
how can i plot these signals
a) t=0:.001:1; f=f(0)+k*t; // f(0)=initial frequency and K some arbitrary constant y=sin(2*pi*f.*t); p...

12 years ago | 0

| accepted

Answered
How do tranfer data from one GUI uitable to another GUI uitable?
Go through this <http://blogs.mathworks.com/videos/2005/10/03/guide-video-part-two/>. This tutorial shows how to pass data...

12 years ago | 0

| accepted

Answered
How to display an image,that a user selects during runtime, in a panel ??
Filename=uigetfile('*.jpg'); imshow(imread(Filename)); You need to go through Doug's GUI tutorial. That's really helpful. ...

12 years ago | 0

| accepted

Question


How to detect particular letters in a binary text image?
I have a binary image like this: <<http://oi49.tinypic.com/33xhc8x.jpg>> I want to detect lower case 'e'/ or some other le...

13 years ago | 3 answers | 0

3

answers

Answered
Sorting the variable by comparing
[~ ~ k]=unique(A); B=unique(B); C=B(k);

13 years ago | 0

| accepted

Answered
Replacing String Values By Position
str([output])='r'; %or whatevr you want to replace with

13 years ago | 0

Answered
How to fuse R,G,B Components?
cat(3,Re,Be,Ge);

13 years ago | 1

| accepted

Answered
how to randomize the column position of a matrix?
ind=randperm(size(A,2)); C=zeros(size(A)); C=A(:,ind); ind preserves the order of randomization.

13 years ago | 1

| accepted

Answered
Compare 2 vectors together
intersect(a,b);

13 years ago | 0

| accepted

Answered
Local histogram equalization - Using the function 'histeq' in nlfilter/colfilt
g=colfilt(fp,[m n],'sliding',@fun); here fun operates on individual columns(neighbourhood of a pixel) and must return a row...

13 years ago | 1

| accepted

Answered
A(I) = B, number of elements must be the same. I'm new and can't figure out what it wants me to do!!!
minVelocity = 10; % minimum exit velocity maxCost = 600; % maximum cost of pipe price1 = 25; % price per meter for fir...

13 years ago | 0

| accepted

Answered
how to plot a wave propagation using surface plot.
you can add phase angle to get the desired result. f=1.0e6; n=3; t=linspace(0,f,100); phi=linspace(-pi,pi,100); y=15*(...

13 years ago | 0

| accepted

Answered
How To Calculate Double Summation In Matlb
first thing is, how would you define a middle element in a 10*10 array. Sum(i=1 to 10)Sum(j=1 to 10){I(i,j)-I(m)}*H(i,j)} ...

13 years ago | 0

| accepted

Answered
New to Matlab, need help on first script
s = input('What is the s-value? '); e = input('What is the e-value? '); f = input('What is the f-value? '); s1=bin2dec(n...

13 years ago | 0

Solved


Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

13 years ago

Solved


Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

13 years ago

Solved


Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

13 years ago

Solved


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

13 years ago

Solved


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

13 years ago

Solved


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

13 years ago

Solved


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

13 years ago

Solved


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

13 years ago

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

13 years ago

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

13 years ago

Answered
Error using fprintf , not defined for cell inputs
t=[0:30]; %Infection I=0.05*exp(-t); %Loosening L=0.01*exp(0.15*t); %Fracture F=0.01*exp(0.01*t); %Wear W=0.01*ex...

13 years ago | 0

Answered
how to plot a wave propagation using surface plot.
f=1.0e6; fs=f*100; n=3; t=0:1/fs:n/f; T=meshgrid(t); y=15*(1-cos(2*pi*f*T/n)).*sin(2*pi*f*T); surf(T,y); ylabel('amplit...

13 years ago | 0

Load more