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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 2

| aceptada

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

Respondida
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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

Respondida
how to use Matlab to find the sequence for this variable 4325 to get 2345??? pls
str2num(sort(num2str(x)))

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

Respondida
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) *...

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 2

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 6

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 1

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

Cargar más