Réponse apportée
how to generate a matrix of 1 by L dimentions contains complex data from real and imaginary components
L = 20; your_mat = randi(100,1,L) + randi(100,1,L) .* 1i;

environ 13 ans il y a | 1

| A accepté

Réponse apportée
How to change array to be a special matrix ..??
Ar2Mat = [ 2 0.5 6 7.3 15 5.6 4 3.3 12 8.2 ]; Ar2Mat = reshape(Ar2Mat,2,5)' Are you taking the same course as <...

environ 13 ans il y a | 2

| A accepté

Réponse apportée
How can I convert an array to a matrix?
B=[2 3 1 5 2 8 1 7 9 10 5 21 4 6 3 9 3 1 7 0 7 2 8 6]; A = reshape(B,8,3)'

environ 13 ans il y a | 2

| A accepté

Réponse apportée
How to make one contour transparent in contourf?
[C,h] = contourf(peaks(20),-4:1:4); allH = allchild(h); valueToHide = 1; patchValues = cell2mat(get(allH,'UserData'))...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Multiple Font Sizes in title: (Mixture of latex and English commands)
plot(rand(10,1)); title(['\fontsize{20} Look Big' char(10) ... '\fontsize{10} Look small' char(10) ... '\font...

environ 13 ans il y a | 3

| A accepté

Réponse apportée
Warning: Unable to interpret TeX string
Matlab does not support the full set of latex commands. Please look for the _string_ property in _text properties_ to see the su...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Plot multiple graph using 'hold on' and loop function
n=0.1:0.1:1; x=0.1:0.1:3; [X N] = ndgrid(x,n); A = (1/3).^N; Y = A.*X.^N; plot(X,Y);

environ 13 ans il y a | 0

Réponse apportée
Interactive Plotting - Get another plot via clicking point in current figure
Here is a script that will plot four lines and after that highlight the closest point to your click. To select a point use left ...

environ 13 ans il y a | 1

Réponse apportée
loop for 3d matrix to numerous 2d matrices
You could try using a cell array instead: your_mat = rand(10,20,30); [m n o] = size(your_mat); your_mat = squeeze(mat...

environ 13 ans il y a | 0

Réponse apportée
Quickly finding maximum value of a large (~8,000,000) vector
<http://www.mathworks.com/matlabcentral/fileexchange/23576-minmax-selection>

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Can you change font size in LaTeX formatted comments?
text(0.1,0.5,... '$x(t) = \sum_{k=0}^N \frac{8}{\pi^2}(-1)^k \frac{sin((2k+1) 2\pi f_0 t))}{(2k+1)^2}$',... 'Int...

environ 13 ans il y a | 0

Réponse apportée
How to find a vector in a matrix?
A=[1 1 1 1; 1 1 2 3; 1 2 3 1; 1 1 1 2]; B=[1 2 3]; isSubStr = @(x,y) ~isempty(strfind(x,y)); getStr = @(x) sprin...

environ 13 ans il y a | 0

Réponse apportée
How to: xtick visibility
figure(1); aH = axes; hist(randn(1,1000)); set(aH,'TickDir','out'); Alternatively: figure(2); aH = axes; ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
how can i choose a certain row from simulation?
your_mat = [18 1 0 0 0;... 15 1 0 1 0;... 20 0 0 0 1]; idxFun = @(x) find(ismember(x(:,2:end),[1 0 0 0],'...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How can i keep the fontsize on colorbar when saving as JPEG, TIFF etc....
sH = surf(peaks); cH = colorbar; set(cH,'FontSize',30);

environ 13 ans il y a | 1

| A accepté

Réponse apportée
I know the center, length of semi major and semi minor axis and orientation of an ellipse. How can i draw the ellipse with these information in MATLAB?
<http://www.mathworks.com/matlabcentral/fileexchange/289-ellipse-m>

environ 13 ans il y a | 1

Réponse apportée
Random integer number generation
a = 1:10 a = a(randperm(numel(a)))

environ 13 ans il y a | 1

Réponse apportée
read a file upto certain character
The documentation has examples that illustrate how _fread()_ works. Here is a (rather pointless) example of how to read a file b...

environ 13 ans il y a | 0

Réponse apportée
I want to insert rows to matrix with condition
your_mat = sortrows([a;b]);

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Short function to find min value in vector
_findm()_ is a built-in Matlab function. Rename your function to something else, e.g. _findmin()_. Even if you run your function...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How do I set the limit for one axis on 3D plot?
If _col1_ is your _x_ data: idx = col1>=400 && col1 <=750; lH = plot3(col1(idx),col2(idx),col3(idx),'k.'); aH = ancestor...

environ 13 ans il y a | 0

Réponse apportée
Display checkmark string in figure
First set your system to display UTF-8 encoded characters: feature('DefaultCharacterSet','UTF-8'); Then plot it (look for...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
2D plot of 3D data
Maybe _slice()_ is what you are looking for?

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Determining the area of a hystresis loop
Yes, there are built-in functions to calculate the area of closed polygons: doc polyarea

environ 13 ans il y a | 1

| A accepté

Réponse apportée
can't multiply matrices
Please try to use the debugger. It is generally more efficient than to have us debug your code remotely and might save you a lot...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to convert logical into decimal number?
a = randi(2,1,10)-1; a = logical(a); a = [{a};{a}]; %some cell array with logical values inside %Turning into a strin...

environ 13 ans il y a | 0

Réponse apportée
Where in the axes properties (or elsewhere) is the "pointer" on the next color of ColorOrder ?
Maybe not exactly what you wanted but a workaround: fH = figure; aH = axes; lH = plot(rand(10,1),'r'); your_co...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
I want to train multiple feedforward neural network simultaneously with various combination of inputs and after that I want to add their individual output....Is it poosible in matlab...then please hel me ....
Yes, it is <http://www.mathworks.se/products/neural-network/index.html possible>.

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Subscripted assignment dimension mismatch.
You are probably trying to assign a matrix to a scalar: split{1}(n)=test(:,n); _split{1}(n)_ is most likely a scalar _...

environ 13 ans il y a | 0

Réponse apportée
help with the Matlab-C++ interface
# No # Solaris is a flavor of UNIX, so that's probably why it works # Yes, please save yourself a world of hurt and recompile...

environ 13 ans il y a | 1

Charger plus