Answered
How can I loop over a series of vectors - X0, X1, X2, X3... etc - and evaluate a function on each vector?
First lets generate some data with problematic naming: N = 10; x1 = rand(1, 1); x2 = rand(2, 1); x3 = rand(3, 1); ...

13 years ago | 0

Answered
How to hide warnings ?
I believe that one can prevent warnings without recoding or turning any warnings off by overloading warning. Something horrendou...

13 years ago | 0

Answered
Check if filename is valid.
A long time ago, probably Windows 95 on a FAT16 harddisk, I started using the following: regexp(fname, ['^(?!^(PRN|AUX|CLOC...

13 years ago | 3

Answered
How can i save my matlab shortcuts?
All my shortcuts are 1 (sometimes 2) lines which point at script m files. These m files reside in a single directory which is on...

13 years ago | 0

Answered
Can I find out if a class is an abstract class before trying to instantiate it?
It might be quicker to try and create the object in a |try-catch| and deal with errors when they happen.

13 years ago | 0

Answered
what should I do with rand() so that the sum of each row should not be greater than one??..
What about N = 3; Population = rand(20,N)/N

13 years ago | 0

Answered
Is there any way to make this code faster?
I think this is a memory allocation issue. Every time you set cc.PixelIdxList{i}(j) = [], MATLAB needs to allocate new memory. Y...

13 years ago | 0

| accepted

Answered
Using AMS in figure anotation with LaTeX interpreter
It cannot be done. The MATLAB LaTeX interpreter is not a full fledged LaTeX distribution. As you haven't, and cannot, load the a...

13 years ago | 0

| accepted

Answered
How do i get nice .eps images into latex
I think the best way is to use <http://pgfplots.sourceforge.net/ PGFPlots> and make your images directly in LaTeX. If you really...

13 years ago | 0

Answered
How to find out if X is an element in an array, and then create another array based on that?
For integers B = A == 2 for non-integers B = abs(A-2) <= 10*eps

13 years ago | 0

Answered
How to control windows media player with MATLAB?
See this <http://www.mathworks.com/matlabcentral/answers/25878-how-to-control-interface-windows-media-player-with-matlab questio...

13 years ago | 0

Answered
it is possible to access the 'base' workspace from a subfonction ?
Yes if is possible to manipulate and access the base workspace from within a function. Just because MATLAB provides this functio...

13 years ago | 2

| accepted

Answered
using some old code from professor....
I would contact TMW customer support directly. TMW does not make all its documentation freely available and easly searchable. Yo...

13 years ago | 0

Answered
How do I retrieve individual elements from an object all at once?
<http://blogs.mathworks.com/loren/2012/03/26/considering-performance-in-object-oriented-matlab-code/ Loren's blog> has a post ab...

13 years ago | 0

Answered
Is there a way to assign the 'end' value to a variable?
While I have not verified it, I think if you really wanted to assign b='end' and then use it for indexing, that you cou...

13 years ago | 0

Answered
How to make a subclass of dataset class be displayed in Variables Editor in the same way as datasets objects are displayed
The variable editor makes use of |com.mathworks.mlservices.MLArrayEditorServices| and the formatting parts seem to be proprietar...

13 years ago | 0

Answered
Converting a loop into vector operation - trading strategy
In general MATLAB loops are no longer "slow". You need to figure out what is taking the time in your loop. The profiler can help...

13 years ago | 2

Answered
Answering my own question
I say go for it. I would say write the question and then immediately post the answer as an answer. I would hold off on accepting...

13 years ago | 0

| accepted

Answered
How do I use a single or double pipe (vertical line) in an "or" statement?
There are two main differences between | and ||. The first difference is that || "short circuits", while | does not. This means ...

13 years ago | 1

Answered
[DISCONTINUED] MATLAB Answers Wish-list #2 (and bug reports)
The tag system needs an upgrade. Ideally, when you enter a tag it should provide a brief overview of what the tag means. Low rep...

13 years ago | 6

Answered
When to accept an answer for someone
I disagree with Thomas. I think we should never accept our own answers. I also think we should be vigilant about accepting answe...

13 years ago | 4

Answered
What is the flag button on questions for?
Flagging a question and flagging an answer seem to be two different things. For a question _A flag is a request to an edi...

13 years ago | 0

Answered
Hiding contact information
The interface change now makes it clear that your email address is being revealed. While I would like a way to respond to querie...

13 years ago | 1

| accepted

Answered
How to extract leading non-zero digit?
Is this really the first question on Answers? I was going to use our new magic power and start accepting answers. The only probl...

13 years ago | 2

Question


Editor powers and prominence of the buttons
This is really a question to TMW and high rep users. Do you find our special buttons to be overwhelming and scary. There are so ...

13 years ago | 5 answers | 2

5

answers

Question


Reputation needed to achieve editor powers
The new system has substantially increased the reputation needed for editor powers. If anything I would have expected the bar to...

13 years ago | 3 answers | 7

3

answers

Question


When to accept an answer for someone
TMW has now given many of us the power to accept answers for other people, but haven't provided any guidance as to when we shoul...

13 years ago | 7 answers | 8

7

answers

Answered
How to convert easily *.mat files to *.m files
I am guessing you want a human readable m file, but since you didn't specify that ... function mat2m(fname) fid(1) = f...

13 years ago | 1

Answered
Using Timer in startup.m
It works for me in Linux. From the command line (note that this will overwrite the startup.m file in the current directory) ...

13 years ago | 2

Answered
constructor called twice when creating array of object. why?
The <http://www.mathworks.co.uk/help/techdoc/matlab_oop/brd4btr.html documentation> says that "During the creation of object arr...

13 years ago | 0

Load more