Hello Lester,
The integrand is y = exp((z^2))/(z-2), not y = exp((z^2)).
Then, provided that the (undocumented) absolute tolerance is increased wrt the
default one,
we get the expected result:
--> function y=f(z)
> y = exp((z.^2))./(z-2)
> endfunction
--> fz=intl(0, 2*%pi, 2, 1, f,1e-10)
Philipp,
No problem for me with Scilab 6.1.1 on Windows 10 for a file in a directory
whose name is 272-character long, when calling fileinfo() with the huge name in
the path.
So the issue may come from elsewhere. May be from a symbolic link (no test done
on my side)?
Samuel
- Mail d'origi
>Who do I change to en_US.UTF-8 permanently under zsh? All my attempts change
>it only momentarily
As suggested in my previous post, changing your defaults should not be
necessary.
Just using Scilab preferences, out of defaults, should fix the issue.
_
Hello Heinz,
You are likely using a quite restricted font for the Scilab console.
May be your system's one as the default.
These characters are non-breakable spaces ascii(160) <=> ascii([194 160]),
that are not US-ASCII but nevertheless rather standard.
You can check in your Scilab preferences, in
Hello Federico,
cond() and rcond() do not accept rationals, but the determinant of A is very
close to 0:
--> det(A)
ans =
3.573D-10
0.027s² +7.433D-10s³
This likely explains that the inversion is not relia
Hello,
Yes, with
--> warning stop
Regards
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
Hello Pierre,
Just do find(a.type=="Axes")
Regards
Samuel
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
Hello Federico,
With some end indices in your script, you are certainly facing the bug
http://bugzilla.scilab.org/16181
This bug prevents starting the actual conversion.
You may copy the proposed fix on your own Scilab installation, and use it.
Regards
Samuel
- Mail d'origine -
Dear all
Le 18/09/2019 à 13:50, Stéphane Mottelet a écrit :
>
>> Another regression very close to this one, but with real numbers
>> display, would deserve the same care :
>> Scilab 5:
>> -->[1e30 1e-30]
>> ans =
>> 1.000D+30 1.000D-30
>>
>> Scilab 6:
>> --> [1e30 1e-30]
>> ans =
>> 1.000D+30
Hello Paul,
Your polyline is directly e2, not any child p2.
Samuel
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
It is already reported: http://bugzilla.scilab.org/15524
- Mail d'origine -
De: amonm...@laas.fr
À: users@lists.scilab.org
Envoyé: Fri, 12 Oct 2018 09:39:11 +0200 (CEST)
Objet: Re: [Scilab-users] grand in 6.0.1
Hello again,
I just tried grand(10,1,"nor",0,1) on a fresh install of 6.0.1 o
Hello Antoine,
fttshift() switches all halves along all dimensions. This is mandatory.
So for instance in 2D, opposite quadrants (wrt the center) are switched.
In 3D, opposite cubes are switched. etc.
To me, the current implementation is right:
--> m=grand(3,5,"uin",0,9)
m =
2. 5. 9.
Hello Antoine,
Please check cat(3, ..) to concatenate along the 3rd (or any) dimension.
Please check resize_matrix() to padd an hypermatrix (with what you want).
Regards
Samuel
- Mail d'origine -
De: antoine monmayrant
À: International users mailing list for Scilab.
Envoyé: Mon, 08 Oct
Hello,
- Mail original -
De: "CHEZE David 227480"
À: "Users mailing list for Scilab"
>Hi Iza,
>
>Just consider this tip from the unique help page:
>
>Extracted components, rows or columns can be resorted in their initial order
>by sorting k:
>[N, k] = unique(M); k = gsort(k,"g",i);
>Samuel,
>
>The idea and the implementation of the end-points interpolation is that
>this is done on the input data (big slope), not on the FFT output.
This is clear
>Maybe be it needs some further work. Tbc.
I don't think so.
>Noting also that between the endpoints of the DFT periodic input,
Hello,
You may try there: https://build.scilab.org/job/scilab-6.0-macosx/
Regards
Samuel Gougeon
- Mail original -
De: "Philippe Dérogis"
À: "Users mailing list for Scilab"
Envoyé: Lundi 5 Février 2018 12:44:06
Objet: [Scilab-users] macOs High Sierra
Hi,
I upgraded my mac to High Si
Hello Clément,
OK for your confirmation. Unfortunately, in Scilab "_" can't be used, because
_() is a defined function aliasing gettext(), and Scilab needs it as is.
I don't think it was a good thing to use a single character to define such an
alias, but it is as is.
It would be unlikely possib
>Yes that's it. Got it to work once. Are you filing the bug report Samuel or
>do you need me to do it?
Yes please, i let you doing it, as you reported it here.
Thanks
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/
Aa, i get it as well!
Actually, it works as i reported it only for the first run from a fresh Scilab
session.
Then, forthcoming tests with exactly the same code and in a fresh figure shows
the bug as you report it...
Samuel
___
users mailing list
use
Hello Baptiste, Antoine,
I have used exactly the code and protocole posted by Antoine afterwards.
Are you using Scilab on Linux, like Antoine? In this case, it is clearly a bug
specific on Linux.
There are other bugs around .auto_resize (and .viewport), brought by Scilab
5.4.0 and still unfixed
Hello Hermes,
- Mail original -
>.../...
>function m=g(x1,x2)
>
> m=[2*x1-(x1.*(1.25*x2-sqrt(abs(x1/abs(x1).^(3/2),2.5*(1.25*x2-sqrt(abs(x1)))];
.. or ./abs(x1) // instead?
>.../...
>I receive the following alert:
> "Function not defined for given argument type (s), check argumen
Hello Richard,
>Still, kind of 'meh'. Because this way I cannot access the z-value...
You may use param3d() to plot a fake 3D polyline to support and "overlay"
datatips.
Then the datatip will include Z by default.
If you are running 6.0: you may also try to use the new .display_components
datat
>It is not the most compact form but I think there is no issue with original
>syntax proposed:
>[a,b]=find(M==-999);
>M(a,b) = %nan;
In the M(a,b) syntax, a stands for the indices of selected ROWS, and b for the
vector of selected COLUMNS, no matter about the fact that a and b have here the
sam
Hello Richard,
>- Mail original -
>Envoyé: Mardi 21 Novembre 2017 17:41:40
>
>Hi all,
>I have a big matrix, which I want to surf plot. However there are actually
>only values for a non-rectangular shape and i want to blank out those other
>values (which are -999 by default).
>
>[a,b]=find(
Hi Richard,
Are you sure that a relative accuracy of 5e-8 of your result is
relevant/actual/significant?!
(.f displays 6 decimal digits after the dot).
If yes, and if
msprintf('%5.2f GWh',2725977/1e6)
does not match your actual data and relative accuracy, AFAIK there is no way
with the Scilab C
Hello Shamikan,
A (array of) structures IS a mlist. The list of defined fields is returned by
fieldnames():
--> s.b = %t;
--> s.r = %pi;
--> s.p = %z
s =
b: [1x1 boolean]
r: [1x1 constant]
p: [1x1 polynomial]
--> fieldnames(s)
ans =
!b !
! !
!r !
! !
!p !
And the number of f
Hello,
>- Mail original -
>
> During Image Processing, I have an extracted small matrix
>
> Mat =
>
> 152 149 151
> 159 151 147
> 158 152 152
>
> and a simple flipped sobel mask
>
> Gy =
>
> - 1. - 2. - 1.
>0.0.0.
>1.2.1.
>
> To calculat
Hello,
>Hi every body,
>
>I would like to know if there exist a function to close dialog windows
>(like messagebox, progressionbar, waitbar...), as 'xdel' does for
>regular graphic window(s).
winH = waitbar(37,"Can it be closed before completion?");
close(winH);
id = progressionbar("Work in pr
Hello Erhy,
>I studied your solution and think there will be a very huge array with
>kronecker operator and generated the planes with a for loop.
There is a common compromise between the used amount of memory and the
algorithmic speed.
There we are.
>And now I have the problem with the max() f
>another question
>
>gray=rand(200,300);
>lumimins=[ 0.1, 0.5, 0.7, 0.9 ];
>// doesn't work*:*
>monos(:,:,1..length(lumimins)) = ( gray(:,:) >= lumimins(1:$) ) .* 1;
>
>is there a way to generate a plane for each lumimins with automatic traverse?
gray = rand(200,300);
lumimins = [ 0.1, 0.5, 0.7,
Hello Philippe,
Could you provide compared parts of screenshots from 5.5.2 and from 6.0.0
illustrating it at the same resolution?
(whole heavy screenshots are not necessarily required)
Thanks
Samuel
- Mail original -
Hi,
My name is Philippe, I work in the field of physics and s
Hello Frieder,
max(A,B) does it:
--> max(A,B)
ans =
3.
3.
2.
Samuel
- Mail original -
Hello,
I have to matrices: A = [ 1 ; 2 ; 2 ] B = [ 3 ; 3 ; 1 ]
I looking for get matric with having only the larger Elemtns:
C = [ 3 ; 3 ; 2 ]
Is there function to make to apply funct
Hello Erhy,
>resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2))*max(imdbl(:,:,1),imdbl(:,:,2));
This syntax of max() works element-wise and returns a matrix.
Then, if the matrix is not square, the * multiplication can't work here.
So, depending of what you want to do, you shall either use .* instead of *,
Hello,
>Is it possible, when many axes (plot2d or polarplot) are docked into a unique
>figure,
You mean: when using subplot()? Then, we do not properly speak about "docking".
Figures that are really docked together or to the desktop remain separated.
>to export the PNG of an axis like with the
- Mail original -
Objet: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? stripchart?
>//dummy loop to simulate data generation and plotting
>for i=1:1000
>oldxy=e.children.data;//old data
>
>newy=rand();//this would be your recently measured Y
>newx=oldxy($,1)+1;//this w
Hello,
>Hello all,
>
>I'm experiencing some weirdies with the following script (6.0.0, Windows 7) :
>
>// **
>
>A=input("A = ");
>
>B=input("B = ");
>
>// **
>
>When I run the script, I can enter the value for A then I get the --> prompt.
>It seems the script stopped, but if I pres
Hello,
When the module is loaded, its help pages are loaded as well. But then, if the
help browser was already opened before loading IPCV, it must be closed and
restarted to see IPCV pages.
HTH
Samuel
- Mail original -
Hello,
want to try IPCV in SciLab 6.0
Don't find a way to include I
>De: "Erhy", Lundi 27 Mars 2017 11:59:49
>Objet: [Scilab-users] how to place datatip on one point of polyline
>
>Hello!
>If I plot curves where some values are %nan
>datatips are not shown if the curve point for the tip is surrounded by %nan
>values.
>Now I code on Version 6.0.0
IMO, this current
- Mail original -
>De: "Pierre Vuillemin", Lundi 27 Mars 2017 09:57:01
>
>Hi all,
>
>It seems that when using regular expressions with strsubst, only the
>first occurrence is replaced. For instance,
>
>tst_str = 'This is a cow. A cow is funny.'
>out1 = strsubst(tst_str, 'cow', 'rabbit
>now I see there is also a function
>*drawaxis*.
>Is it possible to get a *handle* of the X-axis alone to modify the color and
>appearance of only one axis?
As indicated in its help page, just use the drawaxis output:
HandleOfMyAdditionalAxis = drawaxis(..);
Hello,
>- Mail original -
>De: "christophk"
>Envoyé: Mardi 6 Décembre 2016 14:43:25
>
>Ok here is another question for the Scilab experts around.
>Is there a way to convert the name of a variable into a string in Scilab?
>
>Lets say, I have:
>s = 2;
>
>//then:
>string(s) // returns "2"
>//
>De: "Antoine Monmayrant"
>
>OK, that's what I understood from your last post but saddly it does not work
>on my setup with scilab-6.0.0-beta-2.
>I tried on two different machines under linux (ubuntu 16.04 64bits) and it
>does not work.
>I cannot start the zoom box outside of the axis rectangle,
>But anyway, with subplots, I haven't found a reliable way to get "zoom
>synchronization" across several subplots...
This feature was broken since Scilab 5.4.0, but is repaired in Scilab 6.0-b:
the zoom box can again be dragged and set over several subplots.
___
Hello Antoine,
This is an interesting user case. It is quite easy to get an equivalent, even
smarter,
but it depends on what is really required. here,
* There is no overlay between the 4 curves. The technical solution would be
quite specific.
* The vertical scale is different from one y sectio
Hello Jens,
The proper way to copy graphics is to use copy(). Example:
f = scf();
plot2d()
f.tag = "plot2d() example";
fc = copy(f); // Creates (and render) the copy
fc.tag=="plot2d() example"
HTH
Samuel Gougeon
- Mail original -
De: "Jens Simon Strom"
À: users@lists.scilab.org
Envoyé:
>Hi Rafael,
>
>Thank you for letting me know about drawlater() and drawnow() functions.
>I tried them and waited about 2 minutes, nothing drawn , so I restarted the
>run without them.
After plotting the frame and before plotting dots, you may turn the axes
invisible with
ax = gca();
ax.visible =
>driver JPG;
>xinit test.jpg;
>surf ();
>f = gcf ();
>f.figure_size = [1000 800];
>xend winopen test.jpg
>
>Scilab freezes and I don't know where or if test.jpg is saved.
If you really write
xend winopen test.jpg
winopen and test.jpg are taken as xend() arguments.
The space is not a separ
>SG: However, the first argout is actually assigned (and possibly displayed).
>AFAIK, this can't be presently avoided.
Humm, actually it aims to work in Scilab 6, but it is bugged:
--> h = zeros(5,3,2);
--> [s1,,s3]=size(h) // no error
s3 =
3. // wrong: 2 expected
s1 =
5.
-->
Hello Christoph,
If you are searching for a one-char recipient, for instance "?" or "#" or "%"
are valid starting chars for a name of identifier (variable).
So
[#,o]= getversion() // works, as well as
[?,o]= getversion() // or
[%,o]= getversion()
However, the first argout is actually assigned
Hello,
>I did attach a plot, now 20kB, of a pump from an old exam. The plot
>does provide SI dimensions as well as US ones. Thats why there are three
>x-axis and two y-axis.
For this kind of case where
* you want different axes _for the same data_
* all expected axes are linear (not logarithm
>De: "Frieder Nikolaisen"
>.../...
>I do use the ScilabHelp, but I cannot find a plotyyy. That isn't the Demos?
no. To get and use the demos manager, you may run
--> demo_gui
>.../... In this case, if I zoom in after
>plotting, that might be called interactiv, I only zoom in the later
>plotted
Hello,
>De: "Frieder Nikolaisen"
>Envoyé: Lundi 26 Septembre 2016 13:27:35
>Objet: [Scilab-users] Plot with two different y-axis as one plot
>
>Dear Sir or Madam,
>
>I want to print a Diagramm with two different y-axis and one x-axis. I
>want to zoom both plots at the same time after plotting. Wi
- Mail original -
De: "Dang Ngoc Chan, Christophe"
>Hello all, hello Samuel,
>
>> De : Samuel Gougeon
>> Envoyé : vendredi 23 septembre 2016 11:00
>>
>>> * a file named "name" (without any extension), which is an ascii file
>>> containing the names of the functions;
>>
>> That's true, this
>De: "Heinz Nabielek"
>"Scilab doesn't find a C compiler": I have 64 bit Scilab 5.5.2 in 64 bit
>Windows10
>and a working Microsoft Visual Studio 2014, but Scilab does not find the C
>compiler.
>All the Scilab commands asking for compilers have a negative response.
>
>What to do?
>
>Heinz
You ma
Hello Philippe,
Le 2016-09-02 13:10, philippe a écrit :
Hi to all,
I use rat to do integer simplifications in vectors (if possible). I
use
it like this
-->[n,d]=rat(2/14)
d =
7.
n =
1.
but I have a strnage error when rat is called from another (very
complex) function :
**
- Mail original -
>De: "Offe rPade"
>In matlab gui, I used the following command:
>stat = web(['\help\propagation.htm'], '-browser')
>to get to my help files.
>Is there a similar command in scilab?
You may try browseURL():
https://fileexchange.scilab.org/toolboxes/453000
Samuel
- Mail original -
>De: "Clément David"
>Envoyé: Vendredi 8 Juillet 2016 14:37:18
>
>Hello Philippe,
>
>About replacing "%foo_" to "foo_" in a file, I crafted an example using
>strsplit() and strcat() (see
>attached) but it might be good to have an extended strsubst() that can output
>grou
>- Mail original -
>De: "Offe rPade"
>À: users@lists.scilab.org
>Envoyé: Dimanche 3 Juillet 2016 17:58:21
>
>I could not use plot for drawing a semilog graph. So I am using plot2d,
>but if I want the curve to have both linestyle and markers,
>I have to draw the curve Twice, like:
Sure n
Hello Philippe,
>I work with matrix of polynomials, but some coefficients could be scalar.
?
Each coefficient _is_ a scalar.
>I though that I could differentiate real and polynomial coefficients
>comparing their type, surprisingly type(A(i,j))=2
>whatever the nature of A(i,j) (see example bel
>De: "grivet"
>Envoyé: Mardi 17 Mai 2016 11:57:32
>Objet: Re: [Scilab-users] How to find the number of polylines automatically
>
>Hello,
>Is it possible, within Scilab 5.2, to display tics_labels in European
>format, i.e. with commas instead of points as
>decimal separators ?
Hello,
As far as i
>De: "Jens Simon Strom"
>
>You didn't miss anything. I did: I tried size but I did not try length
>although it is so self-evident.
size(ca.children,1) // works as well
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinf
Hello,
>De: "Jens"
>Hi,
>By the line
>
>for i=1:n; ca.children(i).children.foreground=5; end
>
>one can change all level lines of a 2D contour plot to red. But how can the
>script find n (without manual trial and error)?
With
length(ca.children)
?
I may miss something...
Samuel
__
>De: "scilab 20 browseruk"
>Objet: [Scilab-users] A generic datastructure dump tool?
> .../...
>I have a "working" version (and have had several others), but they all suffer
>from the
>same problem: namely that in order to redraw the line I have to redraw the
>entire graph,
>which defeats the
Hello,
>De: "anna78" 4 Mars 2016 14:45:10
>.../...
>Is it possible to build a matrix with different element types?
This is called a cell array.
In your case, since each column is homogeneous, you may as well store the 13
matrices simply in a list: M = list(M1,M2,..,M13).
The most appropriate c
>De: Samuel GOUGEON, Jeudi 3 Mars 2016 11:56:15
>However, we could ask to merge lib() in load() and remove it.
I should have written:
We could ask to merge lib() in load() and UNDOCUMENT lib() in order to make it
an internal.
(and obviously avoid any back-compatibility issue: lib() is heavily
Hello,
>De: "David Chèze" Jeudi 3 Mars 2016 10:19:23
>.../... by the way, I found that genlib and lib are doing very similar things
>maybe the same things
Not really: AFAIK, genlib() builds a library of macros, whereas lib() only
loads such a library.
However, we could ask to merge lib() in loa
>Thanks for the ideas, it kind of solves the need, but pads to left and bottom
>only:
tmp = [data ; repmat(data($, :), addedRows, 1)];
paddedMat = [tmp repmat(tmp(:, $) , 1, addedCols)]
padds on the bottom and RIGHT.
To pad on the left and top, just tune the concatenation:
tmp = [repmat(data($
Hello,
>for Te = 5000:25000:1 // start:end:step to make 5000, 15000, 25000
The syntax is start:step:end, not start:end:step
https://help.scilab.org/docs/5.5.2/en_US/colon.html
Samuel Gougeon
___
users mailing list
users@lists.scilab.org
http://li
This feature has been added to Preferences in Scilab 5.5. You may upgrade to
5.5.2.
It then allows as well to set the starting directory equal to the one that
Scilab left in the previous session.
Very handy.
Samuel Gougeon
___
users mailing list
users@
>Does anybody know how to [ x,y ]-position titles on log-scale plots?
After some trials without searching for the involved bugged piece of code, it
comes that the title is wrongly displayed at X = 10*( gca().title.position(1) -
1)
So, to display it from X=1 on your first graph, you must set
g
Hi,
>Does anybody know how to [ x,y ]-position titles on log-scale plots?
This is a regression since Scilab 5.5.0, as well reported here for X and Y
labels: http://bugzilla.scilab.org/13518
>On a related matter, is it possible to use figure coordinates to position
>titles (instead of the axes
Hello,
- Mail original -
>De: "CHEZE David 227480"
>
>.../... Would you need to get the timestamps data, you may call csvRead with
>"string" conversion and process the first column of the matrix of string to
>retrieve numeric value fields.
For this part, using mfscanf() as suggested b
Hello,
>x1=[-1604,-23982,-31978,-38883,-45638,-52660,-59782,-60536,-67648,-75176,-82997,-92066,-101438,-110067,-119852,-130754,-142046,-153749,-165495]
>y1=[0.01,0.04,0.05,0.06,0.07,0.08,0.09,0.091,0.1,0.11,0.12,0.13,0.14,0.15,0.16,0.17,0.18,0.19,0.2]
>yy1=interpln([x1;y1],0)
--> help interpln
De
>I suppose 'Yasp' is one which is in the following address.
>
>https://www.scilab.org/development/nightly_builds/yasp
>
>Am I right
Yes you are
>and can I install Yasp in the same PC where Scilab 5.5.2 has been already
>installed?
Yes, you may have as many Scilab versions as needed on the s
>btw how can you overload the display of double matrices ?
you can redefine disp(), but AFAIK it is not possible to overload the default
display for native types such as booleans, decimal or complex numbers,
strings...
For instance, if you define %s_p(), it won't never be called when displaying
Hello,
- Mail original -
.../...
plCtrlEX1=intg(xmin_V,xTrig_V-%eps,list('payoffDenFunc',payD_V,fxValDate,fxTriger,fxFixed,mu,vol));
In the list, you may try specifying directly by its name the function to be
integrated, rather than through a string giving its name:
plCtrlEX1=intg(xmin_
>De: "Stefan Du Rietz"
>Envoyé: Mercredi 13 Mai 2015 12:19:01
>
>Hello all,
>can anybody explain this:
>I have a figure f with two axes (and some GUIs). When I move the mouse
>with the right button pressed, *one* of the axes gets distorted.
Right-click rotates interactively the axes on which you
Hello,
>I would like to give, in Scilab, a linux command line. It's possible?
>
>For example mv file1.txt file2.txt
yes, you may use one of the unix..() or host() functions:
http://help.scilab.org/docs/5.5.1/en_US/section_7182261dbbb2bb2293bb9166ba5f1fb3.html
Regards
Samuel
___
Hello Candio,
I just caught it: add_profile() prepares the function to profiling. But then,
the profile is really set when calling the function. Each new call cumulates
the execution time and occurrence numbers for each line. In your case, you did
not call the function at all before asking to di
Hello,
>// initialisation
>diam = 0.2;
>nd = 10;
>etat = (rand(nd,2) -0.5)*4;
>distance = zeros(nd,nd);
>//compute distance matrix
>for i = 1:(nd-1)
> for j = (i+1):nd
> distance(i,j) =
> sqrt((etat(i,1)-etat(j,1))**2+(etat(i,2)-etat(j,2)**2));
> end
>end
You may do without expli
Hello Wolfgang,
If you were dealing about the mismatch between both axes frames:
This is a side effect of the new axes.auto_margin attribute.
In order to fix it in your example, you may just add
a1.margins = a.margins;
HTH
Samuel
___
users mailing list
Hello,
Metanet might be your friend:
http://atoms.scilab.org/toolboxes/metanet
It should be available through the ATOMS module manager (open box icon in the
console toolbar).
Regards
Samuel
- Mail original -
De: "rasleendeol"
À: users@lists.scilab.org
Envoyé: Vendredi 28 Février 2014 08
>Hello,
>I want plot data and divided the plot region with the subplot command in 6
>regions (subplot(3,2,X)) but I would like to use the first 2 regions
>(subplot(3,2,1) and subplot(3,2,2)) for 1 plot.
Just do simply: subplot(3,1,1) // whenever you want: after, before, or
interlaced with ot
Hi Antoine,
As Rakshith Nayak wrote, in Scilab, functions are a type of variables,
so are some variables. Therefore, naming rules for functions are the
same as for other variables. These rules are described at
-->help names
http://help.scilab.org/docs/5.4.1/en_US/names.html
Indeed, i agree that
- Mail original -
>De: "Michael Dunn"
>Envoyé: Lundi 15 Avril 2013 04:03:54
>Objet: [Scilab-users] Anyone controlled a scope or similar instrument?
>
>I see there's an ATOMS category for instrument control, though it all looks
>like low-level stuff.
>Has anyone actually talked to a scope
- Mail original -
>De: "laurent berger"
>Envoyé: Mardi 9 Avril 2013 17:30:08
>.../...
>Scilab console is blocked.You have to used ctrlc C and abort. I do not
>understand why
>Thanks you for your help
This may be connected to the bug
http://bugzilla.scilab.org/show_bug.cgi?id=6555,
repor
>../.. Maybe would it be a good idea to extend the syntax of uint8 (and others)
>like
ui=uint8(5,3) ?
Yes, such a feature would be useful. IMO it would be better to rather extend
zeros(),
ones(), and eye() with an optional input parameter "typeof" (text):
zeros(X, "uint8")
ones(m, n, p, "int16
Hello Stéphane,
>De: "Stéphane Mottelet"
>Is it possible to declare a uint8 matrix without first declaring it as a
>double ? ../..
Yes, you can do:
-->ui = resize_matrix(uint8(0),5,3)
ui =
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
-->typeof(ui)
ans =
uint8
Rega
>>amiege wrote:
>> I would prefer to have the whole of the struct temp to be pts($+1), so
>> that pts(i) contains all the information related to the data file that has
>> been parsed, so I think that's a). pts(i) would then be a struct which
>> would match what temp is or was when it was constructe
>pts(s+1:s+st) = temp(:) // pts($+1:$+st) can't be used, even with parentheses
>($+1):($+st)
// but pts($+(1:st)) can! :
pts = struct();
temp(1).partnumber = 1;
temp(1).P = zeros(8,3);
temp(1).C = zeros(96,5);
temp(2).partnumber = 2;
temp(2).C = zeros(96,5);
temp(2).P = zeros(8,3);
st = size(t
>//a : is actually needed, but here:
>pts($+1) = temp(:)
Sorry amiege, i have forgotten clearing pts before issuing this command,
and its result is not the expected one. By the way, what's the expected
result? Do you wish
a) to add temp(1:$) as a whole, as a _single_ new element of pts(), or
b) t
>Maybe "pts($+1) = temp" is not the correct way to append the whole of the
>struct in an existing struct, but I haven't found a way to do this so far.
>Update: just realised that "pts($+1,:) = temp". Is that the correct way to do
>it?
//a : is actually needed, but here:
pts($+1) = temp(:)
S
>De: "Stanislav"
>Hi.
>The size function does not work with structures (see help).
It does (despite it is not documented): on the example that
i posted:
-->size(v)
ans =
2.1.
It works also on 2D-arrays of structures
Samuel
___
users mail
Hello,
here is what i get with a similar example:
-->v=struct("b",%t,"r",%pi,"t","Hi")
v =
b: %t
r: 3.1415927
t: "Hi"
-->w = struct("b",%f,"r",%e,"t","Hola")
w =
b: %f
r: 2.7182818
t: "Hola"
-->v($+1)=w
v =
2x1 struct array with fields:
b
r
t
-->v(2)
ans
>Can there is an example of reception of a spectrum of a signal through
>wavelet transformation, whether there are functions in Scilab wavelet of
>transformations. DWT, CWT...
Scilab ressources for wavelets processing are available here:
http://atoms.scilab.org/toolboxes/swt
http://atoms.scilab.or
Hello,
according to your needs, you may do either:
plot2d()
ax = gca();
ax.y_location = 'right';
or
demo_gui() // then Graphics => 2D & 3D => plotyy | plotyyy
// and look at the code, using
help newaxes // http://help.scilab.org/docs/5.4.0/en_US/newaxes.html
Regards
Samuel
___
>NB : in case of “division by zero” in a function, is it possible to generate a
>specific code in order to avoid program crash ?
ieee(2)
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
>Thanks a lot for this hint. With this function it works.
>Did you report the bug to the scilab bugzilla?
The forge where it is reported is the only relevant place, since IPD is an
external module.
___
users mailing list
users@lists.scilab.org
http://l
Hello,
>.../...
>But I have found some function that can be used in matlab can’t be used in
>scilab, like “rectpulse()”
recpulse(x,n)
// can be done with
x.*.ones(n,1)
// Example:
-->x=grand(3,2,'uin',0,20)
x =
2. 15.
18.3.
20.7.
-->x.*.ones(4,1)
ans =
99 matches
Mail list logo