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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 3

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

casi 14 años hace | 0

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

casi 14 años hace | 0

Respondida
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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

Respondida
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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 2

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 2

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 1

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

casi 14 años hace | 6

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

casi 14 años hace | 4

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

casi 14 años hace | 0

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 2

Pregunta


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

casi 14 años hace | 5 respuestas | 2

5

respuestas

Pregunta


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

casi 14 años hace | 3 respuestas | 7

3

respuestas

Pregunta


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

casi 14 años hace | 7 respuestas | 8

7

respuestas

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

casi 14 años hace | 1

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

casi 14 años hace | 2

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

casi 14 años hace | 0

Cargar más