Answered
What is missing from MATLAB?
I wish there were better functions for comparing performance across platforms and versions. Something like a stable bench on ste...

9 years ago | 2

Answered
What is missing from MATLAB?
A function to check if a string clashes with an official MATLAB function. Something like Jan's UniqueFuncNames, but with support...

9 years ago | 6

Answered
Is there a way to 'fold up' sections of code - like when you close up a for loop
Under preferences you can enable code folding for blocks. Blocks are defined in MATLAB as sections starting with %% (I am not su...

9 years ago | 16

| accepted

Answered
Sequence within a sequence
n = 5; m = 3; reshape(repmat(1:n, m, 1), n*m, 1)

9 years ago | 1

Answered
can I disable entire sections of code temporarily
You can enclose code in an if block if false ... end or even better (since you can include invalid syntax) woul...

9 years ago | 7

Answered
Is "matlab" or "matlab code" a useful tag?
I could see the "matlab" tag being useful when you only want MATLAB solutions and not ones that require you to do something at t...

9 years ago | 3

Answered
including subject_name in variable with a loop
You can do it with eval, but then in a few days you will be back asking how to use the variables. This is a FAQ, and is generall...

9 years ago | 1

Answered
functions vs. script
While I wouldn't term it private/public, the unique workspaces that you hint at in pro 1 is the real selling point to me. With a...

9 years ago | 5

Answered
call functions from subpath
I am posting this as a new answer because I think it is long enough, but it is based on a comment to my previous answer. If ...

9 years ago | 3

Answered
Display Text Without Formatting
What about corrupting the string with spaces and backspaces ... str = '<a href="test">TEST</a>'; showstr = @(str)([sprin...

9 years ago | 2

Answered
Simultaneous Video and Audio Acquisition
You really need to specify what you mean by "simultaneous". It would surprise me if you could get below 100 ms latency, which is...

9 years ago | 0

Answered
Issues with sound and soundsc (matlab R2011a, Lion)
This is surprising to me. I would contact TMW directly. While MATLAB and sound is sometimes flaky, it usually doesn't crash like...

9 years ago | 0

Answered
property access of objects arrays
A potentially related question: <http://www.mathworks.com/matlabcentral/answers/12116-cell-array-expansion>

9 years ago | 1

Answered
problem to run system(''.exe) on Mac
It is extremely unlikely that any file ending in .exe will run on anything OS other than Microsoft Windows. You need to find the...

9 years ago | 0

| accepted

Answered
How to remove outliers?
If you haven't thought about how you are going to deal with outliers before inspecting your data, then don't remove them. If you...

9 years ago | 2

Answered
Class set methods that access other object properties
It seems reasonable. I have never really understood the reason for the warning (I think it has to do with realoading an object w...

9 years ago | 2

Answered
alert sound
So here is an absolutely ugly Windows XP hack that gets the SystemExclamation sound from the registry and replaces environment v...

9 years ago | 1

Answered
alert sound
What about sound(randn(4096, 1), 8192)

9 years ago | 1

| accepted

Answered
echo cancellation
While not as clear as it could be I think the question is: "Will you give me MATLAB code for doing echo cancellation with the tm...

9 years ago | 2

Answered
Correct way of implementing a getter and setter for a handle class
For handle classes it should be function set.testVar(obj,newVal) You do not need to return the obj, since you already ha...

9 years ago | 1

| accepted

Answered
How to rename file from command prompt
doc movefile movefile('SW984-362-19-230-vXYZ.doc', 'SW984-362-19-230-W1234.5.doc');

9 years ago | 3

| accepted

Answered
graph subtitle?
title({'UK Yield', 'Data from ...somecompany...'}) or maybe title('UK Yield') xlabel('Data from ...somecompany...')

9 years ago | 3

Answered
Save a figure to PDF or EPS with non-standard fonts
On a Windows machine with a virtual pdf printer (in my case the one that comes with Adobe Acrobat Pro) I can print to a pdf file...

9 years ago | 2

| accepted

Answered
replicating/copy part of Cell Array
What about ... NewCA = CA(1:50, 4:5); Not the use of () and not {}.

9 years ago | 4

| accepted

Answered
Plotting and reversing axis direction
a = (1:10)'; b = rand(10, 1); c = rand(10, 1); figure h1 = axes bar(a, c) set(h1, 'Ydir', 'reverse') ...

9 years ago | 1

| accepted

Question


Timers and thread safety
I don't understand how to assure thread safety if timer callbacks can be initiated between any two lines of code. How do I preve...

9 years ago | 3 answers | 4

3

answers

Question


MATLAB, Compiled MATLAB, Coder differences
Lets say I have a moderately complex calculation that is limited by the CPU, requires no "crap" (e.g., graphics, user input, sym...

9 years ago | 2 answers | 2

2

answers

Answered
Find divisors for a given number
How important is it to do quickly? What is your N? N = 8; x = 1:N; x(~(rem(N, x)))

9 years ago | 4

Question


What is your MATLAB uptime
Someone was talking about running a process in MATLAB for a month: <http://www.mathworks.com/matlabcentral/answers/21437-remote-...

9 years ago | 4 answers | 2

4

answers

Question


What thread do timers operate in
This question arose from some comments to a previous question: <http://www.mathworks.com/matlabcentral/answers/21511-execution-...

9 years ago | 1 answer | 2

1

answer

Load more