Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ebd25f2b authored by hhakim's avatar hhakim
Browse files

Fix documentation example code of matfaust.Faust.cat that induced a rendering...

Fix documentation example code of matfaust.Faust.cat that induced a rendering bug in horzcat documentation.
parent ef1b5065
Branches
Tags
No related merge requests found
...@@ -1849,9 +1849,9 @@ classdef Faust ...@@ -1849,9 +1849,9 @@ classdef Faust
%> @b Example %> @b Example
%> @code %> @code
%>% in a matlab terminal %>% in a matlab terminal
%>>> F = matfaust.rand(5,50); %> F = matfaust.rand(5,50);
%>>> G = matfaust.rand(6,50); %> G = matfaust.rand(6,50);
%>>> [F;G] % equiv. to cat(1,F,G) %> [F;G] % equiv. to cat(1,F,G)
%> %>
%>ans = %>ans =
%> %>
...@@ -1863,7 +1863,7 @@ classdef Faust ...@@ -1863,7 +1863,7 @@ classdef Faust
%>- FACTOR 4 (real) SPARSE, size 100x100, density 0.0476, nnz 476 %>- FACTOR 4 (real) SPARSE, size 100x100, density 0.0476, nnz 476
%>- FACTOR 5 (real) SPARSE, size 100x100, density 0.0288, nnz 288 %>- FACTOR 5 (real) SPARSE, size 100x100, density 0.0288, nnz 288
%>- FACTOR 6 (real) SPARSE, size 100x50, density 0.02, nnz 100 %>- FACTOR 6 (real) SPARSE, size 100x50, density 0.02, nnz 100
%>>>[F,G] % equiv. to cat(2,F,G) %> [F,G] % equiv. to cat(2,F,G)
%> %>
%>ans = %>ans =
%> %>
...@@ -1875,7 +1875,7 @@ classdef Faust ...@@ -1875,7 +1875,7 @@ classdef Faust
%>- FACTOR 4 (real) SPARSE, size 100x100, density 0.0511, nnz 511 %>- FACTOR 4 (real) SPARSE, size 100x100, density 0.0511, nnz 511
%>- FACTOR 5 (real) SPARSE, size 100x100, density 0.0466, nnz 466 %>- FACTOR 5 (real) SPARSE, size 100x100, density 0.0466, nnz 466
%>- FACTOR 6 (real) SPARSE, size 100x100, density 0.048, nnz 480 %>- FACTOR 6 (real) SPARSE, size 100x100, density 0.048, nnz 480
%>>>[F;rand(100,50)] % vertical concatenation with auto-conversion of the random matrix to a Faust %> [F;rand(100,50)] % vertical concatenation with auto-conversion of the random matrix to a Faust
%> %>
%>ans = %>ans =
%> %>
...@@ -1897,18 +1897,18 @@ classdef Faust ...@@ -1897,18 +1897,18 @@ classdef Faust
%>- FACTOR 3 (real) SPARSE, size 100x100, density 0.0282, nnz 282 %>- FACTOR 3 (real) SPARSE, size 100x100, density 0.0282, nnz 282
%>- FACTOR 4 (real) SPARSE, size 100x100, density 0.0292, nnz 292 %>- FACTOR 4 (real) SPARSE, size 100x100, density 0.0292, nnz 292
%>- FACTOR 5 (real) SPARSE, size 100x50, density 0.02, nnz 100 %>- FACTOR 5 (real) SPARSE, size 100x50, density 0.02, nnz 100
%>>>[F;G;F;G] % it's allowed to concatenate an arbitrary number of Fausts %> [F;G;F;G] % it's allowed to concatenate an arbitrary number of Fausts
%>>>[F,G,F,G] % as long as the dimensions agree %> [F,G,F,G] % as long as the dimensions agree
%>>>[F,G;F,G] %> [F,G;F,G]
%> @endcode %> @endcode
%> %>
%> @b Errors %> @b Errors
%> - The dimensions of F and G don't agree: %> - The dimensions of F and G don't agree:
%> %>
%> @code %> @code
%>>> F = matfaust.rand(2,51); %> F = matfaust.rand(2,51);
%>>> G = matfaust.rand(2,25); %> G = matfaust.rand(2,25);
%>>> [F;G] %> [F;G]
%>Error using mexFaustReal %>Error using mexFaustReal
%>The dimensions of the two Fausts must agree. %>The dimensions of the two Fausts must agree.
%> %>
...@@ -1916,9 +1916,9 @@ classdef Faust ...@@ -1916,9 +1916,9 @@ classdef Faust
%> - The DIM argument is different from 1 and 2: %> - The DIM argument is different from 1 and 2:
%> %>
%> @code %> @code
%>>> F = matfaust.rand(2,4); %> F = matfaust.rand(2,4);
%>>> G = matfaust.rand(2,4); %> G = matfaust.rand(2,4);
%>>> cat(3,F,G) %> cat(3,F,G)
%>Error using matfaust.Faust/cat %>Error using matfaust.Faust/cat
%>Wrong first argument: must be an integer between 1 and 2. %>Wrong first argument: must be an integer between 1 and 2.
%> @endcode %> @endcode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment