Answered
IMRECT: constrain rectangle heght to be a multiple of another value
This sounds like it might be possible with the _setFixedAspectRatioMode_ of the |imrect()| object. Then the aspect ratio will n...

13 years ago | 0

Answered
How can I code an on-screen keyboard within a GUI to be able to update an edit text box? Similar to a keyboard on a GPS system.
Here's how I would go about this: function OnScreenKeyboard %Figure and edit box hFig = figure; ...

13 years ago | 1

Answered
Anyone here solves MATLAB problems as 'part-time job' ?
I work > full-time solving MATLAB problems :)

13 years ago | 1

Answered
Report generation toolbox gives warnings and no figures in R2011b
The “log4j: WARN. . .” is due to a bug in the MATLAB and Simulink Report Generators. The bug was fixed for R2012a where an ...

13 years ago | 2

Answered
what are the reserved words in Matlab 2011b
You can find all of the keywords by opening |iskeyword.m| edit iskeyword As for builtin functions etc. You can tes...

13 years ago | 1

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

13 years ago

Answered
Choice between legends and curves
Here is how I would go about this: function showTwoLines %two lines and their legend hFig = figure; hL...

13 years ago | 1

| accepted

Answered
how can i get the end point coordinates of major, minor axis of a blob
Use |bwmorph| with the _'endpoints'_ option on the label or binary image. <http://www.mathworks.com/help/releases/R2013a/imag...

13 years ago | 0

Answered
Having difficulty filtering data and extracting some information from data.
Use |datevec| on your date string to idenitfy the year. Then use logical indexing to discard everything that is not in 2008. ...

13 years ago | 0

Answered
How to get arg min of an N-dimensional Matrix ?
Or: min(min(min(M)))

13 years ago | 1

Answered
is there a version of Principle Component Analysis for images?
doc pca and edit pca

13 years ago | 0

Answered
basic map visualization question
Perhaps: doc mapshow doc geoshow ? Could you post a sample of your data

13 years ago | 0

Answered
How can i prevent a GUI from closing?
Set the figure's CloseRequestFcn to []; h = figure; surf(peaks); set(h,'CloseRequestFcn',[]); Note, this isn't fool ...

13 years ago | 0

Answered
Determination of distance within the voronoi-function
Maybe some of the Mapping Toolbox distance measurements would be useful to you: * <http://www.mathworks.com/help/releases/R2...

13 years ago | 0

Answered
Optimization Toolbox - Use of 'interior-point'
Hi Christoph and Matt J, |optimoptions| is a new class in R2013a meant to be used in place of |optimset|. If you are not usi...

13 years ago | 1

Question


Friday Fun with EVAL()
I think I may have come across the first time in my >5 years of using MATLAB that I have a case where the best possible answer i...

13 years ago | 3 answers | 3

3

answers

Answered
Optimizing drawnow for large real-time simulation
Have you tried using all three renderers to see which is the fastest for this application? Or are you tied to OpenGL for transp...

13 years ago | 0

Answered
Contour plot - how to show contours of irregular body in XY plane?
You could replace the values that you don't want with NaNs. For example: [x,y,z] = peaks; subplot(121) contourf(x,y,z) ...

13 years ago | 0

| accepted

Answered
Crossover index and mutation index in GA
The _'Selection'_ vector contains the indices of the individuals that are chosen to create the next generation. Based on the nu...

13 years ago | 0

| accepted

Answered
ERROR: Undefined function 'minus' for input arguments of type 'function_handle'.
Please run the following: dbstop if error This will stop with the debugger on the offending line. You will then be able...

13 years ago | 0

| accepted

Answered
How can I make a editbox show what is happening in the command window?
What is happening that is causing the numbers to show up at the command window? Whatever function is printing this should be...

13 years ago | 0

| accepted

Answered
difference between "care" and "lqry"?
As with any MATLAB function, I highly recommend reading the doc rather than the help. It has more details and examples: <htt...

13 years ago | 0

Answered
Displaying text correctly on buttons
Hi Andy, First, Good question +1. The problem is with _'Position'_ in this line: rbh1 = uicontrol(bgh,'Style','pu...

13 years ago | 0

| accepted

Solved


Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

13 years ago

Answered
help with load command: how to use data set without knowing name prior to loading
file = 'f.mat'; S = load(file); fn = fieldnames(S); %assuming one variable data = S.(fn{1}) Load the file ...

13 years ago | 0

| accepted

Answered
uitable and get/setappdata
More than likely the handles structure from the first GUI is not being passed to the second GUI. I.e. the second GUI is using _...

13 years ago | 0

Answered
Make figure data not accessible
Set the _'HandleVisibility'_ and _'HitTest'_ of any graphics object you don't want available to _'off'_

13 years ago | 0

Answered
search pattern without using built -in function
doc regexp

13 years ago | 0

| accepted

Answered
Solving two trigonometric equations, two unknowns
syms L1 L2 p R x y Result=solve(R*cos(x)-L1*cos(y)==L2*cos(p),... R*sin(x)-L1*sin(y)==L2*sin(p),x,y) Result.x Res...

13 years ago | 0

Answered
Use of timer: what's the code to indicate that its period of time is expired?
One thing you could be do would be to |toc| a |tic| that was started earlier. However, the best approach would be to get the _I...

13 years ago | 0

Load more