Réponse apportée
Why does my matlab R2014a be so slow in initilization ??
<http://www.mathworks.com/matlabcentral/answers/97167-why-will-matlab-not-start-up-properly-on-my-windows-based-system>

plus de 11 ans il y a | 0

Réponse apportée
Convert strings to array of function handles
a = [1 2 3]; b = circshift(a,[0 -1]); all_num = [a;a;b;b]; argument = sprintf('a(%i)*x(%i)^3 - b(%i)*x(%i)\r\n',...

plus de 11 ans il y a | 0

Réponse apportée
Efficient way to calculate backwards average
numRows = 100; numCols = 100; data = rand(numRows,numCols); result = flipud(bsxfun(@rdivide,cumsum(flipud(data)),...

plus de 11 ans il y a | 1

Réponse apportée
Seeking a fast way to determine if axes are current
isempty(get(gcf,'CurrentAxes')) will tell you if there are any current axes in _gcf_ . This is basically an edit of the _g...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to use datestr(now)
vec = datevec(now); month_list = {'January' 'February' 'March' 'April' 'May' 'June' ... 'July' 'August' 'September' ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Generate n pairs of random integers, whose 0 <= pairwise_sum <= k
num_pairs = 100; max_val = 10; tot_sum = randi(max_val + 1,[num_pairs,1]) - 1; %Need to include 0 result = rand(n...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How to permanently change the temp directory matlab uses?
<http://answers.microsoft.com/en-us/windows/forum/windows_7-files/change-location-of-temp-files-folder-to-another/19f13330-dde1-...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How do I find the Nth high number in a matrix A ?
If you want to take care of repeated values: vals = randi(200,10); uVals = sort( unique(vals(:)) ); result = uVals(end-4...

plus de 11 ans il y a | 0

Réponse apportée
How to use parallel computing
In order for Matlab to compute the functions on different cores (not the same as different processors), you could always: a ...

plus de 11 ans il y a | 0

Réponse apportée
Excel to Text Conversion
The easy way: Import to matlab using [numData textData rawData] = xlsread('myFile.xlsx'), %doc xlsread for more details ...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
Problem using ttest and signrank functions
[p, h, stats] = signrank(squeeze(post), squeeze(pre), 'alpha', pval);

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Why Kmeans function give us give different answer?
Because, if you are using the default settings, _kmeans()_ *randomly selects a starting point*. The algorithm is not determinist...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
how to display a direction vector in matlab
doc quiver doc feather

plus de 11 ans il y a | 0

Réponse apportée
delete zero rows only with one number
your_mat = A(all(A(:,2:end),2),:)

plus de 11 ans il y a | 1

Réponse apportée
how to implement hanning window with 50% overlap
Please make it easier for to help you and <http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-ques...

plus de 11 ans il y a | 0

Réponse apportée
MCR not found when running application
You need the right version of the <http://www.mathworks.com/products/compiler/mcr/ Matlab Compiler Runtime> installed in that ma...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Splitting up a vector into a matrix
data = rand(3); result = reshape(data,3,3)';

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
I have a question about how to display a result in static text.
sprintf('The flow obtained for %f is %f, and pressure line for this value is %f',[1.1 pi exp(1)])

plus de 11 ans il y a | 0

Réponse apportée
Cannot set axes limits
Set the limits *after* you issue the _plot()_ command.

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
eigen vectors and values algorithm
Matlab uses BLAS and LAPACK. <http://www.physics.orst.edu/~rubin/nacphy/lapack/eigen.html> If you want to know the actual...

plus de 11 ans il y a | 0

Réponse apportée
Calculate difference between two times?...something it's wrong here¡
What makes you think it should be _0000 00 01 03 00 00_? From the documentation: *A serial date number represents a calend...

plus de 11 ans il y a | 3

Réponse apportée
how plot X=const
x = 1:100; y = cos(x .* 2 .* pi ./100); X = rand(1,10) .* 100; Y = interp1(x,y,X); plot(x,y,'r-','Marker'...

plus de 11 ans il y a | 0

Réponse apportée
how to plot a 3-dimensional matrix
doc plot3

plus de 11 ans il y a | 2

Réponse apportée
Warning: Name is nonexistent or not a directory
Look at the documentation on _exist()_. _functions()_ is a built-in Matlab function, it is not a path. But more importantly, pat...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Simple help needed with identity matrices and selection
Almost there: A=eye(6,6); A(1:3,4:6)=eye(3); A(4:6,1:3)=eye(3); _eye_ without arguments returns 1.

plus de 11 ans il y a | 0

Réponse apportée
Possible to run matlab frontend on one Linux box, backend on another?
<http://enews.techsource.com.sg/oct11/spotlight.html Yes>, but not automagically and with significant drawbacks if, like me, you...

plus de 11 ans il y a | 0

Réponse apportée
How to scale/normalize values in a matrix to be between -1 and 1
Once you have your result: scaledl = scaledl.*2 - 1; Or directly: result = -1 + 2.*(data - min(data))./(max(data) - m...

plus de 11 ans il y a | 4

| A accepté

Réponse apportée
How to plot a offset in a graph
I am not sure I understand what you want to achieve. x = sort(rand(10,1)); y = sort(rand(10,1)); plot(x,y,'b-') hold...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Why is sort() taking longer to resolve on multiples of 512?
Maybe it has something to do with data padding. If you use single precision format, then the jumps come at multiples of 1024. (S...

plus de 11 ans il y a | 0

Réponse apportée
Finding parfor baffling: Can anybody explain to me why this little bit of code works with for,but not with parfor?
Looks like the interpreter is not smart enough to detect that there is no race condition in the case you present. You could go a...

plus de 11 ans il y a | 1

Charger plus