Answered
Audio Device Fails to respond, somethimes.
The wavrecord function is Windows only. Windows handling of sound is crappy. To make matters worse, MATLAB's handling of sound i...

14 years ago | 0

Answered
how to start writing a program ?
To me the most useful command is %. That's right comment everything you do. Do use silly end of the line comments. Big chunky bl...

14 years ago | 0

Answered
Logical Manipulation of Vector
[true(a, 1); false(b, 1)]

14 years ago | 0

Answered
Find similar elements in a matrix
Maybe something like: [y, z] = hist(X(:), unique(X)); stem(z, y);

14 years ago | 2

Answered
how to display an error when user enters some integer data which is an invalid data using matlab GUI?
Assuming you know how to get ParVal and know what the lower/upper limits are: if ParVal < lowerlimt || ParVal > upperlimt ...

14 years ago | 0

| accepted

Answered
Apply a variable delay to an audio signal
What you want to do is "delay" time by some amount. If your waveform is: sin(2*pi*f*t) then the delayed version is: ...

14 years ago | 1

| accepted

Answered
Accessing child properties from parent classes / abstract method where every child's implementation would be identical?
You can set the GetAccess and SetAccess attributes of the proeprties to be public (you can also make the proeprties hidden so th...

14 years ago | 0

Answered
represent vector as a color
As Walter said, color is a three dimensional precept. Printers use CMYK to generate there colors, but all this means is that the...

14 years ago | 0

Answered
using p functions and mexw32 on other OSs?
Your a little off on the mex files. P files contain encrypted MATLAB code. The only reason I know of for creating a p file is to...

14 years ago | 0

| accepted

Answered
matlab crash
The highest resolution monitors (2560x1440) only have 3.6 million pixels. Assuming MATLAB would plot each data point as a single...

14 years ago | 0

Answered
send data using GUI VIA TCPIP to other pc
doc tcpip doc udp

14 years ago | 1

Answered
pitch calculation for speech signal
This looks promising: <http://www.mathworks.com/matlabcentral/fileexchange/18497-speech-processing-tool>

14 years ago | 1

| accepted

Answered
How to disable matlab editor search beep when nothing found
My MATLAB (r2011a, Linux, 64-bit) does not beep when using search and I do not believe it ever has. Are you sure it is not a set...

14 years ago | 0

Answered
streaming sound in realtime
You will probably have better control if you use the DAQ toolbox for everything (i.e create an analogoutput and an analogutinput...

14 years ago | 0

| accepted

Answered
Puzzler: Quickly tell if two absolute indices (a,b) are four connected for n x m matrix.
I am not sure what to do about circle-shifting neighbors so I have two answers. function flag = isFourConnected(a,b,n,m) ...

14 years ago | 0

Answered
Are nested classes possible?
You cannot define a class in a private folder: <http://www.mathworks.com/help/releases/R2011a/techdoc/matlab_oop/brfynrp-1.ht...

14 years ago | 0

Answered
How to find out %COMPUTERNAME% and %USERNAME% ??
With java you can do this in an OS independent manner: char(java.lang.System.getProperty('user.name')); char(java.net.In...

14 years ago | 11

Question


Where do people learn "bad" programming habits (i.e., goto, global, and eval)
I will likely be teaching some basic MATLAB this year. I have had little formal instruction on programming, but if I remember th...

14 years ago | 8 answers | 2

8

answers

Answered
GUI - Updating a figure pseudo real-time and stopping on mouse-click
With a little work you should be able to get your approach to work. A sexier and in my opinion better way to approach it is with...

14 years ago | 0

Answered
Warning: Class ':all:'
It seem the application makes use of a user defined class called all and that the compiled application does not have this class ...

14 years ago | 0

| accepted

Answered
changing directory in matlab
What about something like: x = pwd; drive = x(1:3); cd([drive, 'a']); or cd([drive, 'a\b']); This will wor...

14 years ago | 2

| accepted

Answered
How to save breakpoints automaticaly
I am not sure why your breakpoints are disappearing, but you should be able to write a timer callback function that uses dbstatu...

14 years ago | 0

Answered
use opengl in matlab , why it so slow?
You can also see how your video card stacks up with bench

14 years ago | 0

Answered
How to check for input for parallelport again and again?
The simplest, but least elegant solution would be a while loop stopFlag = false; while true % code that checks the ...

14 years ago | 1

Answered
GUI - Updating a figure pseudo real-time and stopping on mouse-click
The WindowsbuttondownFcn seems like the correct approach. You need to do something in the WindowsbuttondownFcn callback which ca...

14 years ago | 0

Answered
Multinomial logistic regression
The code you have posted looks like logistic regression and your plotting looks reasonable. The documentation for glmfit is a re...

14 years ago | 0

Answered
Optimization with respect to matrix
The l^2-norm does not care about the shape of your data so you can just reshape your matrix into a vector. u = u(:); b = b(...

14 years ago | 0

Answered
How to add some symbols into a matrix ?
It depends on what you want to do with this matrix. If you just want it to be displayed nicely: classdef partmat < double ...

14 years ago | 0

| accepted

Question


MEX files for 32-bit MATLAB on 64-bit windows
It appears that 32-bit MATLAB on 64-bit Windows is an offically supported configuration. <http://www.mathworks.co.uk/support/...

14 years ago | 1 answer | 1

1

answer

Answered
cellfun for objects
I suggest replacing script = {'a+b'; 'c-d'} with script = {@(a,b,c,d)(a+b); @(a,b,c,d)(c-d)}; You can do the conversio...

14 years ago | 1

| accepted

Load more