Answered
WHy do I get "ans = 1" in the Command Window?
Do you have any eval statements in your code. It is possible that all your "lines" are terminated with a semicolon, but that the...

14 years ago | 0

Answered
How to manage a list of variables with parameters?
This seems to be what classes are perfect for. classdef students properties Grades; Absences; ......

14 years ago | 1

| accepted

Answered
Fit (wrapped) gaussian distribution to circular data
I think you might be looking for a von Mises function. I don't think MATLAB has any built in support for von Mises functions, bu...

14 years ago | 2

| accepted

Answered
Class with no initial properties
You can do this. When you define the patients property in testClass, just initialize it to be empty. classdef testClass ...

14 years ago | 1

| accepted

Answered
Fast multiplication of rows of one matrix and columns of the second matrix
Yair's blog has a nice post on memory issues and array operations: <http://undocumentedmatlab.com/blog/matrix-processing-perf...

14 years ago | 0

Answered
holding a vector value for specific time
It sounds like you want to change the sample rate of Xb to match that of Xc. You can do this with resample doc resample

14 years ago | 0

Answered
Matlab 2011A Student Version, Linux 64
The Arch wiki has info for installing 32-bit MATLAB on 64-bit Linux. There are differences between Arch and Ubuntu, but I would ...

14 years ago | 0

Answered
Structure Array example as OOP?
I think you are overlooking a feature of OOP in MATLAB. You should be able to construct an array of your patient class. You have...

14 years ago | 1

| accepted

Answered
USB Sound Device Possible?
MATLAB can support multiple USB sound devices. The audioplayer function allows you to specify the device ID number. In Linux, yo...

14 years ago | 0

| accepted

Answered
wavread signal handling problems with music in GUI
The wavplay function is depreciated. You should look at using audioplayer instead.

14 years ago | 0

Answered
Fast way to perform multiple searches on a large array
I think by dumping the past times you might be able to speed up the find. If st(i+1) > en(i), then you could dump even more elem...

14 years ago | 0

| accepted

Answered
Processing blocks of data in parallel
This depends on the processing. If each block can be processed independently from the other blocks, then yes the Parallel comput...

14 years ago | 0

Answered
3D Array manipulation
You don't really need the squeeze in this case squeeze(S(2,3,1)) is the same as S(2,3,1) To answer your question...

14 years ago | 1

| accepted

Answered
ParFor - how to rewrite For loop
Have you tried it? It works fine for me parfor a=1:NumData for b=1:80 RandData(a,b) = round(low + (high-low) *...

14 years ago | 0

Answered
using PCA how to reduce the dimension of image ?
PCA can be used to reduce the dimensionality, but it is a lossy process. If you are not limited to lossless compression, then th...

14 years ago | 0

| accepted

Answered
Why my graph is not corelating with my calculations
There is a difference between "/" and "./". You want ./ y=exp(x)-(x+1)./(x-1);

14 years ago | 0

Answered
uncertainty of constants
That is a really good question, but really has nothing to do with MATLAB. http://phys.columbia.edu/~tutorial/propagation/tu...

14 years ago | 0

Answered
string and isinteger
validateattributes(I, {'numeric'}, {'integer'}) You may need to wrap it in a try/catch block since validateattributes throw...

14 years ago | 0

Answered
Figure Docking (group)
I think figures can only be docked to the main MATLAB window. You cannot dock a figure into another figure. The property you are...

14 years ago | 2

Answered
plot of 2D-Matrix, frequency/duration
Something like: [x, y] = meshgrid(1:5, 1:5); z = 20*rand(5, 5); scatter(x(:), y(:), z(:))

14 years ago | 0

| accepted

Answered
License of files submitted in file exchange
You may want to look at this question: <http://www.mathworks.com/matlabcentral/answers/10775-dual-licensing-in-file-exchange-is-...

14 years ago | 0

Answered
Create cell array with the same string n-times
The names of your variables are a little confusing ... You are starting with values being a double array and then wanting values...

14 years ago | 6

| accepted

Answered
sound() function playback ends after a few seconds
This is a known bug with a fix provided by TMW <http://www.mathworks.co.uk/support/bugreports/736680>

14 years ago | 0

| accepted

Answered
loading a dataset (S=load('file_name'), how?
Even better would be temp=load('file_name'); S = temp.data; clear temp;

14 years ago | 0

Answered
setappdata Question
Yes, setappdata is a reasonable strategy and much better than a global variable. The FAQ provides some other alternatives. <...

14 years ago | 1

Answered
Adding quotes to a user input
Try the 's' option. method = input('linear or cubic? ', 's');

14 years ago | 1

| accepted

Answered
length of a string
Have you created a variable called size? what do you get with which size It should be something like ../matlab/r2011a/to...

14 years ago | 0

Answered
Graphic memory managment
You might want to check the renderer of the two figures get(1, 'Renderer') get(2, 'Renderer')

14 years ago | 0

Answered
Can class/object parameters store structs? If not, is there an equivalent?
The answer is yes you can. Where are you trying to do this? It looks like maybe in the properties section of your classdef file....

14 years ago | 0

| accepted

Load more