Réponse apportée
GUI Help
Set the string property of the texbox in the callback for the corresponding pushbutton. For example, in the callback for the pu...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
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...

environ 15 ans il y a | 0

| A accepté

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

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 15 ans il y a | 0

Réponse apportée
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 ...

plus de 15 ans il y a | 1

Réponse apportée
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-...

plus de 15 ans il y a | 1

Réponse apportée
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....

plus de 15 ans il y a | 2

| A accepté

Réponse apportée
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:...

plus de 15 ans il y a | 2

Réponse apportée
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')

plus de 15 ans il y a | 0

Réponse apportée
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...

plus de 15 ans il y a | 0

Réponse apportée
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:....

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 15 ans il y a | 2

| A accepté

Réponse apportée
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,:);

plus de 15 ans il y a | 10

| A accepté

Réponse apportée
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:', ....

plus de 15 ans il y a | 0

Réponse apportée
Calculating an average in an n x m array that contain zeros
mn = sum(A)./sum(A~=0)

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 15 ans il y a | 2

| A accepté

Réponse apportée
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.

plus de 15 ans il y a | 1

Réponse apportée
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));

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
"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; ...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 15 ans il y a | 1

Réponse apportée
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...

plus de 15 ans il y a | 2

| A accepté

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

plus de 15 ans il y a | 8 réponses | 4

8

réponses

Réponse apportée
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 ...

plus de 15 ans il y a | 1

Réponse apportée
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 ...

plus de 15 ans il y a | 0

Réponse apportée
[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...

plus de 15 ans il y a | 7

Réponse apportée
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...

plus de 15 ans il y a | 0

Réponse apportée
[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...

plus de 15 ans il y a | 0

Réponse apportée
[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...

plus de 15 ans il y a | 3

Charger plus