Answered
what's wrong with the symbolic solve function?
syms h v S=solve('U1=h','U2=h*v',h,v) Works fine for me on 10a. What other variables are in your workspace? What does |w...

14 years ago | 0

Answered
How to find pixels's neighbours?
doc intersect And specifically: intersect(A,B); or |ismember| C = A(ismember(A,B))

14 years ago | 2

Answered
Getting more information from addNewPositionCallback()?
*Major Edit* function playing_with_impoint imshow('cameraman.tif'); h(1) = impoint; h(2) = impoint; add...

14 years ago | 1

| accepted

Answered
How do I reconstruct a DICOM image and then re-slice it along a different axis?
# <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F How do I process a Sequence of Files?> # Use the a...

14 years ago | 0

Answered
How to crop arrays using a vector? (reverse of padarray)
So something along the lines of: x = rand(10,6,8,9); nd = ndims(x); c = repmat({':'},nd-1,1); for ii = 1:nd; x = sh...

14 years ago | 2

| accepted

Answered
registration of pictures using intensities
What size is the image you are writing and how are you writing it? Using *.tif does not add two extra channels for me. Consi...

14 years ago | 0

| accepted

Answered
Pass data to an instance of a class outside the constructor
obj = object_of_some_class(pi,exp(1)); obj.some_property = that_value; %set that other property here

14 years ago | 1

Answered
Would you use Matlab Central in a job search?
Certainly not inappropriate. It's how I got my job here :) If you want to get ahold of someone on here, why not ask a question...

14 years ago | 5

Answered
accumarray not working! unique values
*Newest* It sounds like what you really want to do is create a matrix of yoru subs as you have and then do a |unique| _'rows'...

14 years ago | 1

Answered
Opening stored figures directly in GUI
This is not possible. An |axes| cannot be a container for a |figure|. You could load the |figure|, take a snapshot of it ( |ge...

14 years ago | 1

Answered
Adding elements of 3D matrices
B = sum(A,3);

14 years ago | 0

| accepted

Answered
How do you know that "p" has a dimension of 4 columns for the code given under "Body" herein below?
You don't know what it has! It does not necessarily have four dimensions either, just four columns. You can find out its si...

14 years ago | 0

Answered
treating NaN as a unique value (instead of as a distinct)
Replace the NaNs with an obscure number that you check to make sure is not present first. This will give you the full functiona...

14 years ago | 1

Answered
select labeled object in image
Here, your very own Blob remover: function removeBlob I = bwlabel(imfill(imread('coins.png')>100,'holes')); h = i...

14 years ago | 6

| accepted

Answered
How to maximize this function: x1^2+x2^2+...+xn^2 ?
|fmincon|

14 years ago | 1

Answered
Help understanding the following errors
Well I would guess the first line of the ASCII file does not have the same number of columns as the rest of the lines...

14 years ago | 1

Answered
Error while using curve fitting toolbox
Do you by any chance have another function shadowing fit? which -all fit If you run: dbstop if error at the comm...

14 years ago | 0

| accepted

Answered
What do the colon and number 4 represent in the following argument - loglog(f,abs(p(:,4))),grid;?
all rows (:) in the fourth (4) column of p.

14 years ago | 3

Solved


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

14 years ago

Answered
Replace repetitive values in a matrix with another value?
x = [1 2 3 3 3 3 3 4 5 3 3 3 6 3 7] data idxrep = ~diff([-inf,x]) %pad with -inf and identify areas of zero change (~) x...

14 years ago | 0

| accepted

Solved


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

14 years ago

Answered
How can I keep my GUI invisible while plotting?
In the opening function set(handles.figure1,'visible','off'); Then when you're done with all of that plotting stuff: ...

14 years ago | 0

| accepted

Answered
drawing on an image in loop
You are literally overwriting the same file each time? If so, then you absolutely don't need to save it on each iteration. ...

14 years ago | 0

Answered
How to display a running timer in MATLAB GUI
<http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples FEX:Matt's Guis> Gui 17.

14 years ago | 0

Answered
How can I change the color of zero or nan Zdata in BAR3 plot?
You will have to set the surface's _'cdata'_ and _'zdata'_ to nan. For example: x = magic(4); bar3(x) h = get(gca,'chi...

14 years ago | 0

| accepted

Answered
Making a 2D color map
What you need to have is directly colormapped image that each pixel value point to a row of an nx3 colormap. Here is a simple e...

14 years ago | 0

Answered
[DISCONTINUED] MATLAB Answers Wish-list #2 (and bug reports)
There should be a grace period of a few minutes before something shows up as edited. For example, if you answer a question and ...

14 years ago | 0

Answered
'WHO' function doesnt give expected result when called within GUI
Use |evalin| in the _'base'_ workspace with |who|.

14 years ago | 0

| accepted

Answered
How can I vary a value in both the main script and a function file?
You could create a simple handle class that has some value. Then pass the handle into the function and whenever the property is...

14 years ago | 1

Answered
How to create a GUI with different tab options?
It is not documented and thus likely to change in the future, but you can use |uitab|. Or one of these: <http://www.mathwork...

14 years ago | 1

| accepted

Load more