Answered
what is the fastest way of multiplying a n-way matrix by a vector along a given mode?
What does it mean to multiple a n x m x k matrix with a k x 1 matrix? Do you want to scale each n x m submatrix by a scalar. Whi...

13 years ago | 0

Answered
'ABC'-'A' Considered Harmful
I asked a similar question, although not identical by any means, a while back: http://www.mathworks.com/matlabcentral/answers...

13 years ago | 0

Answered
The sign "~" is not backwards compatible?
Unfortunately there is no automatic way of doing it. Each ~ can be replaced by a dummy variable name. Something like "dummy" or ...

13 years ago | 0

| accepted

Answered
How to see if grid is on?
get(gca, {'XGrid', 'YGrid', 'ZGrid'})

13 years ago | 1

Answered
Linux - nohup - standalone
This might be helpful http://www.mathworks.com/matlabcentral/answers/31144-close-my-terminal-but-keep-matlab-running-on-a-rem...

13 years ago | 0

| accepted

Answered
MATLAB gets stuck in the "Initializing" state during startup from bat file
More questions than answers, but I will throw them out as an answer: In the morning after the machine has been rebooted from ...

13 years ago | 0

Answered
tab in gui
Sometimes it is just knowing where to look (and also being willing to read, learn, and put in some effort) http://blogs.mathw...

13 years ago | 0

Answered
Question about fft
You might want to check out http://blogs.mathworks.com/steve/category/fourier-transforms/

13 years ago | 0

Answered
Using Set Field for multiple depths
If it is always 3 deep then you can just do myStruct.(fieldnames{1}).(fieldnames{2}).(fieldnames{3}) = fieldValue; A lit...

13 years ago | 0

Answered
Matlab slows down when writing to large file
I am going to guess that a 64 bit OS is not going to fix your problems. Opening and closing files takes time (not a lot, but mea...

13 years ago | 0

Answered
What is frequency in an image?
For a MATLAB flavored introduction I would start with Steve's blog http://blogs.mathworks.com/steve/category/fourier-transfor...

13 years ago | 0

Answered
comparing rows in matrices
You might want to use doc isequal or all(winner == lottonumber(i,:))

13 years ago | 0

Answered
MATLAB gets stuck in the "Initializing" state during startup from bat file
If I remember correctly you were attempting to run the script through Task Scheduler with auto login. Just a guess here: You are...

13 years ago | 0

| accepted

Answered
Pause function in matlab for 1 millisecond
Getting millisecond timing accuracy is extremely difficult in most programming languages since the underlying clocks are just no...

13 years ago | 4

Answered
debugging operation
I am not quite sure what you are asking but what about clc; clear; tic ; for i=1:100 a=i^2+i+10 if i < 3...

13 years ago | 1

Answered
linux operating system for server
Despite the documentation, I believe MATLAB can be made to work on any distribution. That said you might want to see this whi...

13 years ago | 0

| accepted

Answered
'ABC'-'A' Considered Harmful
I beleive that coding styles that sacrifice readibility for efficiency are generally bad style. It is possible that under some c...

13 years ago | 0

Answered
Error using dot(A,B) - size/dimension problem
The error seems pretty clear to me your n and x are different sizes.

13 years ago | 0

Answered
Ensure x label never cut off
A "manual" method of fixing cutoff labels by making the axis smaller is relatively easy to implement. You pick a scale value tha...

13 years ago | 2

| accepted

Answered
Repeated event in a array
Loren talks about <http://blogs.mathworks.com/loren/2008/09/08/finding-patterns-in-arrays/ findings patterns in arrays>. Proc...

13 years ago | 1

| accepted

Answered
Play a wav sound in a loop without blocking it
You can use audioplayer instead of wavplay doc audioplayer Retriggering your sound card 100 times a second is going to b...

13 years ago | 1

| accepted

Answered
The loss of precisions
If you read the documentation of inv doc inv _In practice, it is seldom necessary to form the explicit inverse of a matr...

13 years ago | 0

| accepted

Answered
How to save a figure that is larger then the screen?
You cannot make figures larger than the screen size and if an axis does not fit in a figure, it gets truncated. One possibili...

13 years ago | 0

| accepted

Answered
Labelling several axes with the same name
Building on Jan's answer ... H(1) = subplot(1,2,1); H(2) = subplot(1,2,2); Htemp = get(H, 'XLabel'); set([Htemp{:}...

13 years ago | 0

| accepted

Answered
any fast funcitons to do this triple for loop?
I believe data_tmp = data(:); should work, although the collapsing across dimension might not perfectly match your loops...

13 years ago | 1

Answered
How to use set() in a loop?
I am guessing a lot here, but what about something like for ibar = 1:8 subplot(3, 3, ibar); bar(ibar) = i...

13 years ago | 0

Answered
Memory Pre allocation, Dataset Array
The dataset class is basically a container holding pointers to other variables/memory locations. Even if you can preallocate the...

13 years ago | 1

| accepted

Answered
Arithmetic in Matlab
For the meaning of . http://www.mathworks.co.uk/help/techdoc/ref/arithmeticoperators.html The / and \ question is <http://mat...

13 years ago | 1

Answered
How to use set() in a loop?
I believe your question is really: I created a bunch of variables called name1 name2 name3 and now it is a nightma...

13 years ago | 0

Question


Query event queue
Is it possible to query the event queue (i.e., where callbacks wait for drawnow)? I have a for loop that takes a ~10 seconds ...

13 years ago | 1 answer | 1

1

answer

Load more