Answered
XLim equivalent in Mapping toolbox
Perhaps you could provide us with a small example/screenshot of what you mean? It sounds to me like you might want to feed t...

13 years ago | 0

Solved


Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

13 years ago

Answered
Panel will not "bring to front"
The way I would go about this is by setting the textbox |uicontrol|'s _'Parent'_ to be another |uipanel|. Then when you turn th...

13 years ago | 0

| accepted

Answered
How to find out the distance between the inner and outer edge of the image using the Matlab command [x,y]=ginput(1)?
I would just use <http://www.mathworks.com/help/releases/R2012b/images/ref/imdistline.html |imdistline()|>

13 years ago | 0

Answered
Updating Handles in WindowKeyPressFcn
* Stick a break point on the |set()| line. What does: ishandle(handles.mypanel) return? * Are you sure the panel exi...

13 years ago | 0

Answered
Listdlg freezes but not when debugged; using pause seems to fix
This is expected. One of the features of |pause()| is that it flushes the event queue so any pending events are taken care of b...

13 years ago | 0

Answered
find the last ten digits of 1^1 + 2^2 + ... + 1000^1000
This is a good way to jog the brain for the first time in 2013! last10 = trailingdigit(sum(vpi(1:1000).^vpi(1:1000)),10) ...

13 years ago | 0

Answered
Count the number of occurances of an element using accumarray
I would use |histc| on the output vector _c_ that you have above from |unique()| Frankly you should be able to skip all of th...

13 years ago | 2

Solved


Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

13 years ago

Answered
Changing Double to String Automatically in a Dataset Array
So something like this? ds = dataset(rand(10,1)>0.5,'VarNames','Surf'); idx = ds.Surf; ds.Surf = repmat('F',numel(idx),1)...

13 years ago | 0

Answered
Put a matrix back to zeros (looking for an elegant solution)
That's what I would do. |zeros| is the most elegant want to create zeros :)

13 years ago | 1

Answered
problem in using neural network toolbox
You may want to consider using the |trainscg| training algorithm. This uses the scaled conjugate gradient method rather than Le...

13 years ago | 0

Answered
Can the app installer work in a multi user site license situation
The ability to have a central location for Apps is not readily available as of R2012b. There are two workarounds:. * If yo...

13 years ago | 0

Answered
prevent genetic algorithm ga from repeating values
This seems to contradict the theories behind genetic algorithms. The good candidates are supposed to breed and create other goo...

13 years ago | 0

Answered
how to enable/disable a pushbutton based on a radio selection? (guide gui)
In the radio button or uibuttongroup callback: set(handles.pushbutton1,'enable','off');

13 years ago | 2

Answered
Overlaying GPS data on a map
Check out the examples for route and track data in the doc here: <http://www.mathworks.com/help/releases/R2012b/map/ref/gpxread....

13 years ago | 0

Answered
how to create a msgbox without "ok" button?
It sounds like you want a |waitbar|. doc waitbar

13 years ago | 0

| accepted

Answered
timer with varying periods
I don't know of this being possible, but it is certainly a good idea for an enhancement request. Here is how I would tackle t...

13 years ago | 0

| accepted

Answered
how will use nested loop
Code golf: z=i'*b

13 years ago | 0

Answered
Update Imagesc on Button Press
Just update the _'CData'_ of the image. I.e: myCData = get(hImage,'CData'); myCData(10,:) = pi; set(hImage,'CData',myCD...

13 years ago | 0

| accepted

Answered
how to pass data to sub-gui using guidata
Store the GUIDATA of the first GUI into the GUIDATA of the second, or just use setappdata/getappdata; f = the_second_gui;...

13 years ago | 0

Answered
how to calculate variance of the different blocks of an image
doc blockproc doc var

13 years ago | 0

Answered
How do I count and save twitter hashtags?
Using regular expressions: str = '#MATLAB is an awesome product by #MathWorks'; [matchstart,matchend,~,hashtag] = rege...

13 years ago | 0

Answered
Is there a way to publish scripts and/or functions called by the m file being published?
<http://www.mathworks.com/matlabcentral/fileexchange/33476-publish-dependent-and-called-functions FEX:publishdepfun>

13 years ago | 1

| accepted

Answered
Sum of rows if elements in the first columns are same
One of many ways: x = [1 2 3 4 5 6; 1 3 5 7 9 11; 2 3 4 5 6 7; 2 4 6 8 10 12]; [uv,~,idx] = unique(x(:,1)); nu = numel(uv...

13 years ago | 0

| accepted

Answered
How can I plot two vectors using the plotyy command, and after that plot two points with different y-scales on the same graph?
You can continue to add axes with no _color_ and whose _'layer'_ is _'bottom'_ in the same _position_ as the two axes created by...

13 years ago | 0

Answered
Estimating the value of pi using a summation through creation of an m.file by using a loop.
function myPi = piEst() myPi = pi; for ii = 1:0 myPi = myPi+ii; end end

13 years ago | 0

Answered
How can I fix deformations of the first photo's vertices like the second photo?
That looks like a task for |imtransform()| and friends. doc imtransform

13 years ago | 0

Load more