Answered
Parallel Computing Toolbox on local machine
These are the type of questions that TMW support staff can answer very well.

14 years ago | 0

Answered
Error opening matlabpool
Works fine for me on r2011a and Arch: >> matlabpool open Starting matlabpool using the 'local' configuration ... connect...

14 years ago | 0

Answered
strfind issue
The only way [no_slash(3)+1 : no_slash(3)+4] can be equal to NaN is if no_slash(3) is equal to NaN. You are not showing ...

14 years ago | 0

Answered
Combination of 2 numbers in 7 rows
dec2bin(0:127) Building on the comments I am going to edit my answer. The above command produces 128 rows of 7 element string...

14 years ago | 0

Answered
Twin primes between 10 en 500.
This is pretty basic MATLAB. You need to read the getting start part of the manual. To display the primes greater than 10 x...

14 years ago | 0

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

14 years ago | 5

| accepted

Answered
help with editing variables
While there are ways to do this (e.g., functions, function handles and handle classes), this is not really how MATLAB works. In ...

14 years ago | 0

Answered
Print specific figure in GUI
You can print a single axis with export_fig: <http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig> See Oliver's...

14 years ago | 1

Answered
Access to TightInset in a figure window
There is pretty good documentation here: <http://www.mathworks.com/help/releases/R2011a/techdoc/creating_plots/f1-32495.html> ...

14 years ago | 0

| accepted

Answered
desiging very low band-pass filters (near 0 Hz)
You need to make sure that your sample rate matches that of your reference. A higher sample rate will result in a longer filter....

14 years ago | 0

Answered
Using a private method to set a number of private properties
My guess is you are not handling the returned object correctly. Are you using a value class or a handle class? What happens when...

14 years ago | 0

| accepted

Answered
Linear Regression - more weight on specific Bins of data
I am not sure you can do it easily with polyfit. The cftool and lscov both allow differential weighting.

14 years ago | 0

Answered
Can you have the user input an equation in MATLAB?
There are a number of ways of doing this ... I think they all involve eval, which makes them problematic. Assuming you have a st...

14 years ago | 0

Answered
Function outputs a 1x2 matrix, yet I can't append that matrix to another matrix.
You need to change the first line to: function A = prop(f,u,q,sq) and the second to last line to A = [Q SQ] You ...

14 years ago | 0

| accepted

Answered
Newbie plot
The neat thing about MATALB is you can often replace loops and treat signals as a vector. What your loop is doing is finding all...

14 years ago | 0

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

14 years ago | 3

| accepted

Answered
An automatic version of / alternative to, "ginput" ?
Presumably the code has something like: [x,y,button] = ginput you can just replace this with x = 1; y = 2; bu...

14 years ago | 0

Answered
Multicolumn legend
MATLAB was not designed to produce publication quality graphs. People have hammered on MATLAB to push its capabilities. If neith...

14 years ago | 2

| accepted

Answered
DAQ at multiple sampling rates with one NI device using analog input
According to <http://digital.ni.com/public.nsf/allkb/96FD2F4685065C7686256F25006EE8DE> _The only current device that allows m...

14 years ago | 0

| accepted

Answered
convert matlab to exe file
My guess is the last line of you MATLAB code is exit/quit, which causes you to exit. You probably want to add pause befo...

14 years ago | 0

| accepted

Answered
Error in one line(Deltau)
You have more problems than just one error. You over write your inputs, and then recursevely call the function. I don't see how ...

14 years ago | 0

Answered
FPGA and ethernet communication
Prior to r2011a (???) MATLAB could only act as a TCPIP client. Now MATLAB can act as both a client and a server. I believe this ...

14 years ago | 0

Answered
how to transfer data
The answer depends on a number of factors. Under MS Windows you can control MATLAB via activex: <http://www.mathworks.co.uk/help...

14 years ago | 0

Answered
Timers and thread safety
I think I have an approach now. I have to figure out how to implement it and see if it works. The idea is to define my own synch...

14 years ago | 0

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

14 years ago | 3 answers | 4

3

answers

Answered
Matlab exponent bug?
This is a precedence issue: <http://www.mathworks.com/help/releases/R2011a/techdoc/matlab_prog/f0-40063.html#f0-38155> Try ...

14 years ago | 1

| accepted

Answered
How to fully use the CPU of my PC?
This really depends on what you are doing. For some code MATLAB can only utilize a single core of a single processor, for other ...

14 years ago | 1

| accepted

Answered
Confidence intervals for d primes based on Maximum likelihood estimation
The easiest way is to probably bootstrap the confidence intervals. You can create N experiments where you flip M coins. On each ...

14 years ago | 0

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

14 years ago | 2 answers | 2

2

answers

Answered
Speeding up code
I missed it in my first answer ... The variable T is growing in your inner loop. I got distracted by the i, and thought it woul...

14 years ago | 0

Load more