Respondida
How to know if my data is randomly generated?
To know what function generates a random number is a tall order. Looking at the distribution of your values is an altogether dif...

más de 11 años hace | 1

Respondida
Does the $50 student version of matlab not allow the function "dsolve" to work
Please type ver in the command line. If the Symbolic Math Toolbox is not list, then you cannot use _dsolve_ unless you ge...

más de 11 años hace | 0

| aceptada

Respondida
Append column given a 'year' condition
A = num2cell(1995 + randi(10,[20 1])); A(:,end+1) = num2cell( cell2mat(A) >= 2000)

más de 11 años hace | 1

Respondida
decresing decimal point of integer
result = floor(your_num.*100)./100

más de 11 años hace | 0

| aceptada

Resuelto


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

más de 11 años hace

Respondida
how to create text file
The documentation has plenty of examples. For example the relatively low-level <http://www.mathworks.com/help/matlab/ref/fprintf...

más de 11 años hace | 0

Respondida
need matlab code for quad mesh
<http://people.sc.fsu.edu/~jburkardt/m_src/quad_mesh/quad_mesh.html Here>

más de 11 años hace | 0

Respondida
Can I store each iteration of this WHILE loop as a new variable (preferably without resorting to eval() )
counter = 1; your_array = cell(some_reasonable_size,1); while something do_stuff; your_array(counter) = {somet...

más de 11 años hace | 0

| aceptada

Respondida
Plot and legend colors don't match
legendObj = get(hLegend,'Children'); your_patch = findobj(legendObj,'Type','patch'); set(your_patch,'FaceAlpha',0,'EdgeA...

más de 11 años hace | 0

| aceptada

Respondida
how can i make a histogram from 2 vectors of data?
Sounds like you need a <http://www.mathworks.com/matlabcentral/fileexchange/42493-generate-weighted-histogram weighted histrogr...

más de 11 años hace | 0

Respondida
Random CDF Values based on probability
doc norminv

más de 11 años hace | 0

Respondida
XTickLabel for large number of bars
You could use a smaller font or make the text vertical. <http://www.mathworks.com/help/symbolic/mupad_ref/tickslabelstyle....

más de 11 años hace | 0

Respondida
Matlab error, what am I doing wrong?
The transpose character is not what you think it is: g1 = -0.5*([x;y]-mu1')'*inv(sigma1)*([x;y]-mu1')-log(2*pi)-0.5*log(det(...

más de 11 años hace | 0

| aceptada

Respondida
Error using .* Matrix Dimensions must agree
If you want element by element multiplication you should use _.*_ instead of _*_. whether you want this or matrix multiplication...

más de 11 años hace | 0

Respondida
Poor Matlab performance on Intel Xeon processor
It's probably because Matlab is only running on one of the processors of your dual-core system. Not all functions take advantage...

más de 11 años hace | 0

Respondida
How to check which packages are installed in matlab?
If by package you mean toolboxes then just type ver in the command line

más de 11 años hace | 5

| aceptada

Respondida
Scatter3 and surf yields a bug?
Making the patches transparent will show the points that are missing from your plot: colors = colormap('summer'); color ...

más de 11 años hace | 0

Respondida
How can I Store all the possible combinations of columns of a matrix?
I would recommend that you only save the indices, if you really need to. Sure, you only have a small matrix, but the amount of r...

más de 11 años hace | 1

| aceptada

Respondida
How to read a large .img file
Sounds like a job for _memmapfile()_ doc memmapfile Alternatively, you could split your image beforehand.

más de 11 años hace | 0

| aceptada

Respondida
how create an matrix without NaN data?
You would need to replace the NaN's with _something_: your_mat(your_mat ~= your_mat) = some_value;

más de 11 años hace | 0

| aceptada

Respondida
Why am I getting "Subscripted assignment dimension mismatch" for this code
Might be a few things. Maybe at some point _fscanf_ is returning nothing and you are trying to assign an empty array. Without lo...

más de 11 años hace | 0

Respondida
How to create a vector out of arrays
Header = {'A' 'B' 'C' 'D'}; Data1 = [1 2 3 4]; Data2 = [5,6,7,8]; cnt = 1; for ii = Header assignin('ba...

más de 11 años hace | 0

| aceptada

Respondida
Working with Cell Array, Indexing
I am sorry, but I don't really understand how your data is structured. Are you having troubling addressing data in your cell arr...

más de 11 años hace | 0

Respondida
Calculating PDF from CDF
It doesn't matter that you have discrete values, you still need to take the derivative. mu = 1.5; sigma = .11*mu delt...

más de 11 años hace | 0

| aceptada

Respondida
saving NaN rows and columns into a array after you find them
Do you mean: result = [row column];

más de 11 años hace | 0

| aceptada

Respondida
Create matrix with double rows of [-1 1]
numDiag = 4; numVal = 2; val1 = eye(numDiag); val2 = val1; val1(val1==1) = 0:3; val2(val2 == 1) = -1:-1:-4; ...

más de 11 años hace | 1

Respondida
how to view contents of cell arrays of different size
I am afraid it is not going to happen automagically, or without delving into the guts of the IDE. You _could_ save every cell t...

más de 11 años hace | 0

Respondida
Sorting duplicate incremental array elements
x = 1:4; %sort(x); %if needed xx = [x;x]; xx = xx(:);

más de 11 años hace | 0

Respondida
Cell Arrays vs Matrices
Cell arrays have to store additional information for each cell. Additional information generally means more processing time.

más de 11 años hace | 1

| aceptada

Respondida
Multiple Element Array Multiplication
result = bsxfun(@times, A, B')

más de 11 años hace | 1

| aceptada

Cargar más