Answered
GUI Help
Set the string property of the texbox in the callback for the corresponding pushbutton. For example, in the callback for the pu...

15 years ago | 1

| accepted

Answered
class of returns from get() with 1 vs. mutliple handles
To force a cell array, use: plot(1:10,1:10,1:12,1:12); % Example. H = get(gca,'children') % Multiple handles. C1 = get(H...

15 years ago | 2

| accepted

Answered
Guidance needed in creating mexw64 file from Matlab File Exchange source code
You will need a 64-bit compiler. <http://www.microsoft.com/express/Downloads/#2010-Visual-CPP MS visual c++> will do the job, i...

15 years ago | 0

| accepted

Answered
while loops
Also, you might find <http://www.mathworks.com/company/newsletters/news_notes/pdf/Fall96Cleve.pdf Cleve's article> interesting. ...

15 years ago | 0

| accepted

Answered
means of multiple vectors from different matrices
You will need to explain better what you want to do. Give a small example, say 3 matrices, and show what you want to get at the...

15 years ago | 0

| accepted

Answered
Solve a nonlinear system
Do you mean get R01 and R02 in one shot, or do you mean find where the two functions meet (what I usually think of when someone ...

15 years ago | 0

Answered
Test different number(values or label) in matrix?
A = [0 0 0 0 0 0 0; 3 3 0 0 0 0 0; 3 3 3 0 0 0 0; 0 0 0 0 4 4 4; 0 0 5 5 0 0 0; 5 5 5 5 ...

15 years ago | 1

Answered
MATLAB one-liners
Here is a good one. After already writing a solution to <http://www.mathworks.com/matlabcentral/answers/2383-how-to-to-write-...

15 years ago | 1

Answered
Creating tables from a program?
Only using FPRINTF: z = (0:2:50); fprintf('\n\n%s %s\n%s %s\n','Integer','Square','=======','======') fprintf( '\t%3....

15 years ago | 2

| accepted

Answered
Large Integer problem
You are seeing the results of the limitations of floating point arithmetic. Read this if you plan on using MATLAB much: <http:...

15 years ago | 2

Answered
Representing a Matrix Graphically (but not exactly)
Like this (a surface?): Z = [5 2 1 0 2 3 9 3 7]; surf(Z.') xlabel('X') ylabel('Y')

15 years ago | 0

Answered
trying to use a feval by calling a function
Try: myopt('func',[1 2]) . . . By the way, it is generally preferrable to use function handles instead of strings and FE...

15 years ago | 0

Answered
How do I plot the first four Chebychev polynomials in MATLAB?
Chebychev polynomials of the first or second kind? Assuming the first kind, you can use the function handle method. x = -1:....

15 years ago | 1

| accepted

Answered
How to to write a code to my n*1 matrix into differnt submatrices?
Can you give a small example matrix and what you expect the output to be? It is still not clear what you want. I asked you to ...

15 years ago | 2

| accepted

Answered
Accessing Matrix Rows using Logical Indexing
A = [1 1 1 1;2 2 2 2;3 3 3 3;4 4 4 4]; B = A(:, 2) > 2; C = A(B,:); Or for short: C = A(A(:, 2) > 2,:);

15 years ago | 10

| accepted

Answered
How can I implement a dialog GUI in MATLAB?
Something like this: task_complete='No'; while strcmp(task_complete,'No') C = questdlg('Choose question to solve:', ....

15 years ago | 0

Answered
Calculating an average in an n x m array that contain zeros
mn = sum(A)./sum(A~=0)

15 years ago | 0

| accepted

Answered
Checkboxes disappear when a new one created (matlab 2007b)
You are overlapping each with the next. (This is why I prefer to work in pixels by the way.) For starters, change: [0.1, ch...

15 years ago | 2

| accepted

Answered
Form a huge matrix by mapping pre-existing vectors to matrix for memory saving?
For a better answer, show a small example, complete with a small matrix and what you are going to do with it.

15 years ago | 1

Answered
numerical integration dimension error
You need a dot before every ^, * and / when working with vectors. Y = X.^(-1/2).*exp(-0.5*(0.00009996^2./X+34.3713^2*X));

15 years ago | 0

| accepted

Answered
"for" loops and branching help
You were close. Here is one way to do what you are trying to do, keeping with the FOR loop and IF statement use. cnt = 0; ...

15 years ago | 1

| accepted

Answered
Vectorization of Integral (or quad) to avoid employing a double loop
This produces the same surface as your double FOR loop: N = 21; % The grid tic % Your original x=linspace(-2,2,N); y...

15 years ago | 1

Answered
How do I use one IF-END instead of nested IF-ENDs?
I think replacing what you have with an IF-ELSEIF structure would make it less efficient because it would result in more compari...

15 years ago | 2

| accepted

Question


Hump-day challenger - Recursion
In honor of John D'Errico (and some recent posts about recursion in MATLAB), I bring a recursion challenger. Here is the challe...

15 years ago | 8 answers | 4

8

answers

Answered
JIT vs vectorization
JIT is just as fast as vectorization,... sometimes. There is no published guide for using JIT because TMW doesn't want you ...

15 years ago | 1

Answered
Undefined function error. How to correct ?
It would seem you need to define r. Try putting a WHOS right before the line that errors (or put a break point above that line ...

15 years ago | 0

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
Answer folding. Say there is a question which has 55 some-odd answers. I keep coming back to look and see if there is anything...

15 years ago | 7

Answered
Set position of tick labels
Not directly, but try this: YTL = get(gca,'yticklabel'); set(gca,'yticklabel',[YTL,repmat(' ',size(YTL,1),1)]) This simp...

15 years ago | 0

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
Perhaps a limit on the number of answers a question can have would be nice. At some point, people may be adding answers without...

15 years ago | 0

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
Let me put blank lines in my responses! If I type a line that doesn't go all the way to the end of the window to wrap automatic...

15 years ago | 3

Load more