Answered
How do i make a GUI function that outputs results to a new text window rather than the workspace?
Create a text box (either edit or static) and set its _string_ property to be the text you want. And we always recommend gettin...

14 years ago | 0

Answered
dividing out smaller matrices bracketed by columns of just 0's
One of many ways: x = [0 1 1 0 1 0 1 1 1;ones(1,9)]; %sample dcdr = diff([0 x(1,:) 0]); %1st deriv blow = find(...

14 years ago | 0

Answered
I cannot make a calculation with the command int
When _x = 4752731968273649/18014398509481984_ or 0.26ish, the denominator is zero, the numerator is not zero and the value is in...

14 years ago | 0

Answered
integral2 in matlab 2010
If your company/university/employer is current on their SMS subscription, you can download the latest versions from: <http://...

14 years ago | 0

| accepted

Answered
How do I assign values of 0 or 1 to numbers greater or lesser than a value?
mgt37 = m > 37 where _m_ is your matrix. You did not specify what you want to do if an element of _m_ equals 37.

14 years ago | 0

Answered
Generation of a matrix
Not possible in MATLAB and not possible in the Universe as we know it :)

14 years ago | 0

Answered
Surface Normal
doc cross and, more importantly for you: doc surfnorm %You might escape wheel reinvention

14 years ago | 1

Answered
Count number of specific values in matrix
This could be done easily with |histc()| and |unique()| to get the number of each value: uv = unique(x); n = histc(x,uv);...

14 years ago | 9

Answered
Small Problem with + sign
A and B apparently aren't what you think they are! size(A); size(B); or if this is burried somewhere - dbstop if ...

14 years ago | 0

Answered
cp2tform / tformfwd - are points outside controlpoints correctly transformed ?
How colinear are your control points? If the points are relatively colinear then the contraints in the perpendicular dimension ...

14 years ago | 0

Answered
Problem with the mean function
If you have the Stats Toolbox, take a peak at: doc nanmean Also this FEX submission: <http://www.mathworks.com/matlab...

14 years ago | 0

Solved


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

14 years ago

Answered
stream3: how to use it
If x,y,z are not on a uniform grid, you will need to interpolate to a uniform grid ( |TriScatteredInterp| will be your friend). ...

14 years ago | 0

Answered
How to get a consistent calibrated scale on a colourbar, despite changes in figure window size
Manually set the colorbar's _units_ property to _'pixels'_ and _position_ to where you want it in pixels. E.g: h = color...

14 years ago | 0

Answered
Generating Random (x y z) Coordinates Constrained by Euclidean Distance
Let's assume for this example that you want three points 1.5 away from the origin: goal = 1.5; %our goal, fixed at 1.5 to ...

14 years ago | 0

Solved


Solve the Sudoku Row
*Description* A simple yet tedious task occurs near the end of most Sudoku-solving algorithms, computerized or manual. The ta...

14 years ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

14 years ago

Answered
Euclidean Distance (huge number of vectors)
Break it into a bunch of smaller problems and solve each one (based on what you want as an end result). Some questions to a...

14 years ago | 0

Answered
Multidimensional Indices of Multiple pages
perhaps I'm not clear but if: A = bsxfun(@times,ones(5,7),reshape(1:50,1,1,50)) %each slice is its index and you want t...

14 years ago | 0

Answered
Any quick way to generate coordinates (by 3or more independent variables) and plot them?
Yes: If you have a function, f, that accepts (x,y,z) and returns V, you can plot this using: |isosurface()| or |slice()| amon...

14 years ago | 0

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!...

14 years ago

Solved


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

14 years ago

Answered
Global Optimization Toolbox Vs. GEATBX (Genetic and Evolutionary Algorithm )
I am not familiar with the GEATBX programs. The Global Optim Toolbox has genetic algorithms for single and multiobjective funct...

14 years ago | 0

Answered
Literal Variables
|conv| isn't defined for symbolic inputs. Fortunately, |sum/prod/diff| are! doc sym>sum doc sym>prod doc sym>diff

14 years ago | 1

| accepted

Answered
waitforbuttonpress & 'windowbuttondownfcn' callback for mouse clicks
I would guess the callback is operating but the variables are deleted at the end of the callback. This is typical. When a func...

14 years ago | 0

Answered
convert CT slice to 3d array
Each slice is one plane of a three-dimensional array. Of course each slice can be a one voxel thick three-dimensional array if i...

14 years ago | 0

| accepted

Answered
matlab serial read too slow?
It looks rather like MATLAB is too fast and is trying to pull the data before it arrives (hence size of zero available).

14 years ago | 0

Answered
Diplaying values in GUI
_Rmax, Gmax_ and _Bmax_ have to be strings. If the are represented as numbers, use |num2str()| to convert to string: doc n...

14 years ago | 0

| accepted

Answered
3 images alignment
R2012a gems: doc imregister doc imshowpair doc imfuse showdemo('ipexknee')

14 years ago | 1

Answered
Homework help on fitting
doc semilogy doc lsqcruvefit doc nlinfit Some places to look...

14 years ago | 0

Load more