Réponse apportée
2d Plot with 3 Axes
axes; hold on; numL = 10; for ii = 1:5 plot3(1:numL,ii.*ones(1,numL),rand(1,numL)); end view(45,25...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
How to plot a function of 3 variables and show a slice in the same plot?
<http://se.mathworks.com/help/matlab/ref/slice.html slice()>

environ 10 ans il y a | 0

Réponse apportée
Splitting data with different matrix sizes
<http://se.mathworks.com/help/matlab/ref/mat2cell.html mat2cell()>

environ 10 ans il y a | 0

Réponse apportée
how to generate a RANDOM matrix of 0's and 1's such that the number of 1's in any column is the same.
numCol = 5; numOnes = 3; numRows = 10; result = ones(numRows,numCol); for ii = 1:numCol result(:,ii) = ...

environ 10 ans il y a | 0

Réponse apportée
Find rows with maximum number and replace them with 1
What you ask and the example you show are not consistent. To produce what you show: B = A == 0

environ 10 ans il y a | 1

Réponse apportée
sparse matrix with higher than double precision
The number of significant digits that you can store in a double is what limits things. As such, the smallness of the number does...

environ 10 ans il y a | 0

Réponse apportée
closest index in matrix between two values
X = [0 0 0 0 0; 1 1 1 1 1; 0 1 2 1 0; 1 1 1 1 1; 0 0 0 0 0]; [tx,ty] = find(X==...

environ 10 ans il y a | 1

Réponse apportée
How do you append to a matrix within a for loop?
your_result = []; for ii = whatever some_vector = some_function(of_something); your_result = [your_result; {so...

environ 10 ans il y a | 10

| A accepté

Réponse apportée
Indexing (l,m.n) matrix for n=1,2,3,....?
Why would you wanna do that? Your array *is* two-dimensional, despite the way you defined it. It would be a nightmare if yo...

environ 10 ans il y a | 0

Réponse apportée
looking for a 3D graphic tool capable of measuring the true linear distance between two points picked on the displayed graphic
<https://www.mathworks.com/matlabcentral/fileexchange/7594-click3dpoint>

environ 10 ans il y a | 0

Réponse apportée
How can I include a repeated word into a matrix?
a = repmat('2016_Subject_',3,1); b = ['_01'; '_02'; '_03']; your_array = cat(2,a,repmat('Speed',size(a,1),1),b);

environ 10 ans il y a | 1

Réponse apportée
Create a Scatter plot from a cell array
load CS06 scatter([CS06{:,3}],[CS06{:,2}])

environ 10 ans il y a | 1

Réponse apportée
dir returning different values
*'.'* is shorthand for current directory *'..'* is shorthand for parent directory You could try cd .. in the comma...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
how to convert 2d to id
Probably faster: A=[5 4 3 8 9 ; 2 1 3 2 5 ;4 3 5 7 6]; C=[1; 3; 4]; numCol = size(A,2); A(bsxfun(@gt,numCol - ...

environ 10 ans il y a | 0

Réponse apportée
change plot colour according to the intensity of the points.
<http://se.mathworks.com/help/matlab/ref/scatter.html _scatter()_> is your friend.

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Extract row from Surface
%Say you want the line at x = 0.2 val = 0.2; % Define the input grid [x, y] = meshgrid(linspace(-1, 1)); %...

environ 10 ans il y a | 0

Réponse apportée
Hii, I am doing my project in Hyperspectral Image classification. I got confusion in creating the dataset for the images. Can anyone help me to create dataset for this? Thanks in advance..
<http://se.mathworks.com/help/matlab/math/multidimensional-arrays.html Multidimensional arrays>

environ 10 ans il y a | 0

Réponse apportée
Please help me in inserting ones in a given matrix in special rows
X = [0 0 0 0 1 0 0 0 0 0; 0 1 0 0 0 0 0 0 0 0...

environ 10 ans il y a | 0

Réponse apportée
File Reading - Skip to next line
That is beyond Matlab's and most IO routines I'm afraid. In order to know where the next line begins you need to know where the ...

environ 10 ans il y a | 1

Réponse apportée
stem plot with bars that don't go through zero
lower_lim = -2 * rand(1,15); upper_lim = 2 * rand(1,15); x_val = (1:15); aH = axes; hold on; for ii = [...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
What is the correct Syntax for accessing more than 3 variables in CFTOOL in Custom Equation Section ?
_cftool_ did not change since yesterday. If you <http://se.mathworks.com/matlabcentral/answers/293625-i-have-a-matrix-of-3-varia...

environ 10 ans il y a | 0

Réponse apportée
reverse of interpolation.....
Some time ago, _contourc()_ the low-level function on which _contour()_ is based, used to do it through <http://www-rohan.sdsu.e...

environ 10 ans il y a | 0

Réponse apportée
File storing in gui matlab at every interval of one hour.
You could use a <http://se.mathworks.com/help/matlab/matlab_prog/use-a-matlab-timer-object.html timer>

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Generating way points based on other waypoints
If you have the mapping toolbox, you could adapt <http://se.mathworks.com/help/map/ref/bufferm.html bufferm> to your needs. O...

environ 10 ans il y a | 0

Réponse apportée
What is the standard type of operations in MATLAB?
Default is double indeed. To answer your last question: In a nutshell, <https://se.mathworks.com/matlabcentral/answers/82124-...

environ 10 ans il y a | 1

Réponse apportée
How can I add components of a vector given conditions from another vector of different dimensions?
Shamelessly plagiarizing Stephen's data reconstruction, but providing a one liner instead: cueBeg = [7;502.4;1231.6;2226;40...

environ 10 ans il y a | 2

Réponse apportée
Resize correctly plot axis
Try something like this instead: aH = axes; plot(aH,rand(100,1)); aH.XLim = [50, 65]; The Y axis should resize aut...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Wrong color in contourf plot
It seems like the command you are looking for is <http://se.mathworks.com/help/matlab/ref/caxis.html _caxis()_> and not _contour...

environ 10 ans il y a | 0

Réponse apportée
Two bar graphs - two data sets - different bin width
one = rand(100,1); two = rand(100,1); nOne = 10; nTwo = 15; figure histogram(one,nOne); hold on; ...

environ 10 ans il y a | 0

Charger plus