Réponse apportée
problem for creating vector with for loop
a={'w','c','e'}; nRep = 5; your_mat = reshape(repmat(a,nRep,1),1,[]);

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
determine quantity of pixel in one image
Well, that would depend on the area, wouldn't it? number_of_pixels = width * height;

plus de 12 ans il y a | 1

Réponse apportée
Mahalanobis distance between a point and a line
doc pdist doc mahal And by distance between a point and a line do you mean the shortest distance? Also, the mahalanobis di...

plus de 12 ans il y a | 0

Réponse apportée
Scatter plot does not display point 0,0 when double precision
Trying to understand the mess that is Matlab's graphics engine is a real pain. I can only recommend a workaround: x = [0 0;...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to change the ksdensity transparency
_ksdensity_ produces a line object. Line objects have no transparency (alpha) property in Matlab. So no, you can't do what you a...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
To find the slope and aspect from digital elevation model image file
doc gradient

plus de 12 ans il y a | 0

Réponse apportée
clearing all variables crashes matlab, clearing dll memory?
_clear all_ pretty much kills everything (including whatever functions you might have loaded). You could try _clearvars_ if you...

plus de 12 ans il y a | 0

Réponse apportée
How can I do the average between many vector columns?
%Creating vectors: for ii = 1:50 str = ['a' num2str(ii)]; assignin('base',str,rand(100,1)); end %Preall...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
problem of Accuracy in vectors
Please try: 0:2:3 You will see that it will not return 3. That is because the behavior of the colon operator is such that...

plus de 12 ans il y a | 0

Réponse apportée
Result in matrix is not divided
It sounds like you have set your format to *rat*. Please read the documentation concerning *format*. To see you current displa...

plus de 12 ans il y a | 0

Réponse apportée
\daleth symbol not working
No, there is no simple way. Please see <http://www.mathworks.com/matlabcentral/answers/86824-which-latex-characters-does-2013a-s...

plus de 12 ans il y a | 0

Réponse apportée
how to draw random numbers from the vector
doc ranperm x = rand(1000,1); %could be any other distribution, please see documentation 1. rand(10,1); %smaller sa...

plus de 12 ans il y a | 0

Réponse apportée
Perform operation on matrix without for loop
*EDIT* permute(bsxfun(@minus,permute(x,[2 3 1]),offset),[3 1 2]);

plus de 12 ans il y a | 0

Réponse apportée
Saving variables to file with desired precision
A *double* might not have sufficient capacity to store 30 digits of precision. It only has the capacity for around 15 decimal di...

plus de 12 ans il y a | 0

Réponse apportée
taking power of elements in matrix
c.^-2

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
How do i make an addition table?
doc bsxfun

plus de 12 ans il y a | 0

Réponse apportée
Why does declaring a global variable take so much time?
Just a quick test: num = 100000000; tic a = 1; for ii = 1:num; a = ii; end toc global b; b = 1;...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
while doing the installation of Simmechanics link the following error is coming. the error is " Warning: Permission denied to create file "C:\Program Files\MATLAB\R2010a\bin\registry\pmi_mli.xml"." how to resolve the issue
Sounds like you have no write access to that folder. Change that and if you can't, try installing it somewhere else or ask your ...

plus de 12 ans il y a | 1

Réponse apportée
How to find the mean of a set of numbers without using the mean or sum functions
Probably not what your teacher wants, but an opportunity to learn about convolution: nRow = 10; nCol = 15; your_mat =...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Find at least 4 consecutive values less than 1 in an array
M = [1 0 .3 .5 .2 .1 6 7 .3 .5 10 1 .8 .9 .7 .2 .1 .3]; numVal = 4; your_vals = conv(double(M<1),ones(1,numVal)/numVal,'...

plus de 12 ans il y a | 0

Réponse apportée
defining several command lines as description without using sign % before all of them
%{ Look I am all commented out Even here and here ad nauseam %}

plus de 12 ans il y a | 0

Réponse apportée
Interpolation of two Matrices of different Lenght
t1 = 1:20; t2 = 1:2:20; data1 = rand(numel(t1),1); data2 = rand(numel(t2),1); %One alternative figu...

plus de 12 ans il y a | 0

Réponse apportée
Why fminsearch does not find the global minimum?
There is no optimizer that can absolutely guarantee that it will find the global optimum. They are all more or less adapted to c...

plus de 12 ans il y a | 1

Réponse apportée
how to set rounded to 4 decimal places for a vector?
You should realize that even if you display them with four decimal places, they would still be stored as doubles in memory, i.e....

plus de 12 ans il y a | 0

Réponse apportée
Only check if statement once, or, disable code block after 1 check
You might need to write the same code twice: ii = 1; %check %do your stuff for ii =2:end %do your stuff end ...

plus de 12 ans il y a | 0

Réponse apportée
finding simultaneously maximum values of three vectors (optimal point)
max(A+B+C)

plus de 12 ans il y a | 0

Réponse apportée
Removing selective data from matlab plot by date
<http://www.mathworks.com/matlabcentral/fileexchange/25153-selanddel-interactively-select-and-delete-points-from-a-2d-plot-with-...

plus de 12 ans il y a | 0

Réponse apportée
matlab recognise french character
What character encoding are you using? Might be that French is not supported for it. You could always change it. doc slChara...

plus de 12 ans il y a | 0

Réponse apportée
Use whole cpu for my n^2*2^n code
Short of modifying the source code, you can't.

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Why Matlab doesn't support font for foreign language such as Czech. For example the character ě š č ř ž ý á í é.
What character encoding are you using? Might be that Czech is not supported for it. You could always change it. doc slCharac...

plus de 12 ans il y a | 0

Charger plus