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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 2

| aceptada

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

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

más de 15 años hace | 1

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

más de 15 años hace | 1

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

más de 15 años hace | 2

| aceptada

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

más de 15 años hace | 2

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 2

| aceptada

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

más de 15 años hace | 10

| aceptada

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

más de 15 años hace | 0

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 2

| aceptada

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

más de 15 años hace | 1

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 1

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

más de 15 años hace | 2

| aceptada

Pregunta


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

más de 15 años hace | 8 respuestas | 4

8

respuestas

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

más de 15 años hace | 1

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

más de 15 años hace | 0

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

más de 15 años hace | 7

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 3

Cargar más