Answered
Transparent button in Matlab GUI.
Are your units of the figure in pixels? Also, rather than having this in the button callback, it should be in the opening fun...

14 years ago | 0

| accepted

Answered
Efficient table lookup
One of these: doc interp1 doc interp2 Are _h,s_ dependent on both _P,T_? If so, |interp2()|, else if each is dependent...

14 years ago | 1

Solved


Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

14 years ago

Solved


Check to see if a Sudoku Puzzle is Solved
*Description:* Your task, should you choose to accept it, is to make a function that checks to see if a 9x9 matrix of integer...

14 years ago

Solved


Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...

14 years ago

Answered
Optimizing the 'drawnow' function for an oscillating circle
No comment on the |drawnow| but I will say, using a |timer| object instead of a |while|-loop should really help stabilize your c...

14 years ago | 0

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

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

14 years ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

14 years ago

Answered
atwo to a one dimentional vector in Matlab
That is not possible unless you define your own class that will internally store the vector as a 1x10 but display 10 when querie...

14 years ago | 1

Answered
Get available memory from Windows 7 64bits - and fast
Perhaps: feature('dumpmem') feature('memstats');

14 years ago | 0

| accepted

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
As an editor I would like to have to go through at least one extra hoop before deleting something. Some combination of keys pre...

14 years ago | 1

Solved


Add two numbers
Given a and b, return the sum a+b in c.

14 years ago

Answered
how to write code to try every combination of N-dim vector?
[xx yy zz] = ndgrid(0:2); [xx(:) yy(:) zz(:)] *Generalized* (fixed) n = 4 [C{1:n}] = ndgrid(0:2); for ii = n:-1:1 ...

14 years ago | 0

| accepted

Answered
I have created a standalone application using MATLAB deploytool but when I run it,it takes about 1-2 minutes to load and show my GUI.Can I add splash screen till that time or is there any way to reduce this time?
Have you packaged a whole lot of products you don't need into the *.exe? Cut down the products to what you actually need and yo...

14 years ago | 0

Answered
MATLAB GUI Button Counter
Something like this for all it (accept the enable off when it gets to 4). val = str2double(get(handles.count,'string')); f...

14 years ago | 0

Answered
Help with saving contents of a run every 240 iterations
if ~mod(iter,240) save_stuff; end

14 years ago | 1

Answered
Error in installing MATLAB 2011b (32 bit)
How about <http://www.mathworks.com/support/contact_us/index.html installation support>?

14 years ago | 0

Answered
Efficiently convert cell to double
|str2double()| will be faster than |str2num()| Also, could probably skip the |parfor| loop altogether and just call |str2doub...

14 years ago | 1

Answered
two polygon difference
Notice that vertices of the intersection points are not members of the convex hull of the two polygons. Also, notice that they ...

14 years ago | 0

Answered
How to add a video to matlab GUI ?
You'll need to save it as a movie <http://www.mathworks.com/support/solutions/en/data/1-BL1WJ7/index.html> Unless you just...

14 years ago | 0

| accepted

Answered
-nojvm option
Compare: * doc mtimes; * plot(1:10); * edit linespec

14 years ago | 0

Answered
What is the reasoning behind the fact that min(0,NaN) is 0?
At the bottom of the doc page: <http://www.mathworks.com/help/releases/R2012a/techdoc/ref/min.html doc min> _The min funct...

14 years ago | 2

Answered
Assigning specific values to a vector of length N without for loop?
T = [40 50 60 70]; N = 12; Tv = reshape(repmat(T,N/length(T),1),N,1)'

14 years ago | 0

| accepted

Answered
find a table in onother table by 80%
You could do this with two calls to |conv2()|: A=[1 0 1]; V=[1 1 1 1 1 0 0 1 1 0 1]; small_matrix = A; big_matrix = V; ...

14 years ago | 0

| accepted

Answered
Error while using Nargin
It means you are calling the function with more outputs than are defined in it. If your function is: function y = fun(x)...

14 years ago | 1

Answered
if statement asking if an addlistener() event has occured
I don't really understand why you would want to do this. The purpose of the listener is to fire when something (some event) hap...

14 years ago | 1

| accepted

Answered
Radiobutton control
Run: dbstop if error And then run your program as you were. Reproduce the error and the debugger will stop on line 2388...

14 years ago | 0

Answered
fmincon function ( constrained nonlinear multi-variable optimization)
c1 to c5 aren't being passed into the |mycon()| function. Write a wrapper anonymous function that does this for you: fmyco...

14 years ago | 0

Answered
Question about the solve function
One way: S = solve(e1,e2) eval(S.b)

14 years ago | 1

| accepted

Load more