Answered
Admins need to give a reason when they close a question!
I think this discussion is useful in an abstract sense, but the comments made to Doug about the closing seem like an inappropria...

13 years ago | 1

Answered
Admins need to give a reason when they close a question!
Whenever I close a question I add a comment as to why I have closed it. Of course this needs to be done prior to closing it. Thi...

13 years ago | 2

Answered
Unable to clear classes
Two related, but not duplicate, questions are http://www.mathworks.com/matlabcentral/answers/48088-inability-to-clear-object-...

13 years ago | 0

Answered
Accessing a symbolically-linked class in r2007b
Issues with symbolic links have been discussed <http://www.mathworks.com/matlabcentral/answers/18500-how-to-have-matlab-respect-...

13 years ago | 2

| accepted

Answered
Static vs Object Method Performance Considerations
Dave Foti who manages the OOP group at TMW has a post on <http://blogs.mathworks.com/loren/2012/03/26/considering-performance-in...

13 years ago | 1

Answered
[DISCONTINUED] MATLAB Answers Wish-list #2 (and bug reports)
Now that we have a "My Comments" tab, I realize this is not what I wanted (although I appreciate TMW improving the interface bas...

13 years ago | 0

Question


Evaluation of input arguments
In answers to <http://www.mathworks.com/matlabcentral/answers/50907-possible-to-use-anonymous-function-as-script-function-input ...

13 years ago | 1 answer | 1

1

answer

Answered
User interface on R2012b
It is not clear to me from the documentation, and I do not have a Mac to check, but you probably can launch MATLAB with the -nod...

13 years ago | 0

Answered
Override how the value of a user defined class is displayed when it is a field of a structure
I think you would need to overload disp for the struct class.

13 years ago | 0

Answered
Generating Biased Random Number
What about y = rand; if y < .1 x = 23; elseif y < .3 x = 22 else x = randi(21); end

13 years ago | 0

Answered
Clearing Global variables... except for.
To remove the variables locally clear(globals{:}) to remove them globally clear('global', var{:}) You should also...

13 years ago | 2

Answered
how to obtain rms error
Just to be a little bit difference. If you have the DSP system toolbox you can do step(dsp.RMS('Dimension', 'all'), x) w...

13 years ago | 0

Answered
How can I get the min/max value of all fields in a stucture
Assuming the contents of the fields are well behaved ... structure_1.field_01 = rand(1, 1); structure_1.field_02 = rand(...

13 years ago | 0

Answered
How to run two different programs in matlab ?
Assuming that running a bit of program 1 followed by a bit of program 2 qualifies as simultaneously, there are a number of ways ...

13 years ago | 2

Answered
why does matlab store variables in workspace in engineering notation?
It seems very odd that MATLAB would display 6600 as 6.000e+03. I am also not able to get MATLAB to display 6.000e+03 (maybe it i...

13 years ago | 1

Answered
how to do this in a for loop in Matlab
I am not sure if this is really what you want ... First create some dummy data x = randn(160,170,18); You can create...

13 years ago | 2

Answered
Not getting the right output for my if statement? [piecewise function]
First off, I doubt your code runs since |else if| is not valid syntax. Second, I am pretty sure that |1 <= x < 2| is not doing ...

13 years ago | 1

| accepted

Answered
Is it possible to write several statements into an anonymous function?
It is a little odd but ... f = @(x)(reshape([x(1)*cos(x(2)), zeros(1, 16), log(x(3)), zeros(1, 7)], [5, 5]));

13 years ago | 1

Answered
wald test or test of equality of means
No. While the MATLAB stats toolbox is powerful, it is not point and click powerful like EVIEWS or SPSS.

13 years ago | 0

Answered
Basic implementation of events and listeners.
You have three minor problems and one major problem. In the |addlistener| and |notify| calls you need to make |valuechange| into...

13 years ago | 0

| accepted

Answered
Calling setter with a third argument?
You can't. The set function can only take two arguments. You cannot change the function footprint. Even if you could change the ...

13 years ago | 0

Answered
Why aren't votes correctly counted under 'My Answers'?
This is the same thing I was trying to explain in your <http://www.mathworks.com/matlabcentral/answers/49477-why-is-the-grass-gr...

13 years ago | 0

Answered
How to change the default Value of superclass property in subclass
The only other way I can think to do this is to have the superclass constructor take an CalculateMode as an optional argument. T...

13 years ago | 0

Answered
Why does num2str of a single output up to 17 digits?
There is a difference between stores and displays. format long g y = 1.234567890123456789 y = 1.234567890...

13 years ago | 0

Answered
Generate multiple random numbers in MatLab?
Not to be rude, but have you read the help? EXPRND Random arrays from exponential distribution. R = EXPRND(MU) returns ...

13 years ago | 0

Answered
[DISCONTINUED] MATLAB Answers Wish-list #2 (and bug reports)
From my understanding no standard user with less than 1500 rep can have all privileges. Some TMW employees, however, have obviou...

13 years ago | 0

Answered
Save .csv file as plain text
The question seems a little weird to me. I think of csv files are being plain text files. I also do not see the difference betwe...

13 years ago | 0

Answered
Grading MATLAB assignments automatically
I would not do this for a number of reasons. Things like response=input('Enter response: '); are going to make automation ha...

13 years ago | 0

Answered
What is the difference between using set/invoke and dot notation?
The processing is slightly different with the two methods, but in general, they tend to produce the same result. Workbook =...

13 years ago | 1

Answered
Check files in current folder (MatLab path)
You can use |dir|. Something like x = dir; any(strcmp(fname, {x(~[x.isdir]).name}));

13 years ago | 2

Load more