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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 2

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 2

| accettato

Risposto
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:...

oltre 15 anni fa | 2

Risposto
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')

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

Risposto
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:....

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 2

| accettato

Risposto
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,:);

oltre 15 anni fa | 10

| accettato

Risposto
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:', ....

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 2

| accettato

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

oltre 15 anni fa | 1

Risposto
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));

oltre 15 anni fa | 0

| accettato

Risposto
"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; ...

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 2

| accettato

Domanda


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

oltre 15 anni fa | 8 risposte | 4

8

risposte

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 0

Risposto
[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...

oltre 15 anni fa | 7

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

oltre 15 anni fa | 0

Risposto
[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...

oltre 15 anni fa | 0

Risposto
[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...

oltre 15 anni fa | 3

Carica altro