回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 2

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

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

15年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 2

| 採用済み

回答済み
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年以上 前 | 2

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 2

| 採用済み

回答済み
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年以上 前 | 10

| 採用済み

回答済み
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年以上 前 | 0

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

15年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 2

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

| 採用済み

回答済み
"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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 2

| 採用済み

質問


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年以上 前 | 8 件の回答 | 4

8

回答

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

回答済み
[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年以上 前 | 7

回答済み
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年以上 前 | 0

回答済み
[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年以上 前 | 0

回答済み
[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年以上 前 | 3

さらに読み込む