Re: [Scilab-users] VIM syntax script for Scilab 6 ?

2017-06-06 Thread Erhy
Samuel GOUGEON wrote
> Le 02/06/2017 à 18:31, Erhy a écrit :
>> some adjustments in scilab.vim from me:
>> scilab.vim
>> http://mailinglists.scilab.org/file/n4036524/scilab.vim;
> Great. Your post on FileExchange in the /Editors/ category will be 
> certainly welcome :)
> https://fileexchange.scilab.org/categories/editor_styles

Sorry I'm not able to login or create a new account in
https://fileexchange.scilab.org/newaccount

Erhy




--
View this message in context: 
http://mailinglists.scilab.org/VIM-syntax-script-for-Scilab-6-tp4036390p4036547.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] no automatic conversion from uint to double

2017-05-17 Thread Erhy
Hello,
I'm wondering that there is no automatic conversion from uint to double.

While coding for image editing I used the array values gotted with imread()
and added a double value and got a wrong result.

If convert the UINT with the double() function the result is correct.






--
View this message in context: 
http://mailinglists.scilab.org/no-automatic-conversion-from-uint-to-double-tp4036411.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] VIM syntax script for Scilab 6 ?

2017-05-15 Thread Erhy
Hello,
has anybody an actual syntax script  for Scilab 6 ?
Mine doesn't care to comments in /* */ in .sce files.
Thank you
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/VIM-syntax-script-for-Scilab-6-tp4036390.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] automatic traverse question

2017-05-12 Thread Erhy
as I did
thank you



--
View this message in context: 
http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036383.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] automatic traverse question

2017-05-12 Thread 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.

And now I have the problem with the max() function for all planes,
at which in the resulting plane each pixel should have the max. values  of
the according pixels of the planes mentioned.

max() works of a known number of planes:
resu=max(monos (:,:,1),monos (:,:,2),monos (:,:,3))

What is the smartest way to code, if the number of planes can differ?





--
View this message in context: 
http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036377.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] automatic traverse question

2017-05-11 Thread Erhy
much learned - thank you
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036371.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] automatic traverse question

2017-05-11 Thread Erhy
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?




--
View this message in context: 
http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036368.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] applying a function to each element

2017-05-10 Thread Erhy
in this special task it is a good practice.
Generally I wished to have a similar notation as in C  or java (logical) ? a
: b
Is there a built in function to have such conditionals ?
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-applying-a-function-to-each-element-tp4036347p4036359.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] automatic traverse question

2017-05-09 Thread Erhy
Thank you Samuel!
This works:
resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2)) *.**
max(imdbl(:,:,1),imdbl(:,:,2)); 



--
View this message in context: 
http://mailinglists.scilab.org/automatic-traverse-question-tp4036327p4036330.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] automatic traverse question

2017-05-09 Thread Erhy
Hello!

im = imread("xxx.jpg");
imdbl = im2double(im);
resu=zeros(imdbl (:,:,1));

This without problems*:*
resu(:,:)=imdbl(:,:,1)+imdbl(:,:,2)+imdbl(:,:,3);

But here I got the error message
*Inconsistent row/column dimensions*
resu(:,:)=abs(imdbl(:,:,1)-imdbl(:,:,2))*max(imdbl(:,:,1),imdbl(:,:,2));

Thank you for advice
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/automatic-traverse-question-tp4036327.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] how to add IPCV help

2017-04-25 Thread Erhy
Samuel GOUGEON wrote
> 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 

Thank you! Now it works




--
View this message in context: 
http://mailinglists.scilab.org/how-to-add-IPCV-help-tp4036249p4036257.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] how to add IPCV help

2017-04-24 Thread Erhy
Hello,
 want to try IPCV in SciLab 6.0
Don't find a way to include IPCV specific help entries.

Thank you for advice
Erhy 



--
View this message in context: 
http://mailinglists.scilab.org/how-to-add-IPCV-help-tp4036249.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] how to place datatip on one point of polyline

2017-03-28 Thread Erhy
Samuel GOUGEON wrote
> Let's have the following vector of x or/and y values/nodes:
> A  B  C %nan D %nan  E  F
> 
> a) A datatip set in C is not displayed => bug
> b) But A datatip set in E is displayed: OK
> c) A datatip set in D is not displayed = a) case

Example
 
code:
// test of DataTips suggested by Samuel GOUGEON
// datatips in sequence:  A  B  C %nan D %nan  E  F 
function str=ShowTip_txt(h)
str = h.tag;
endfunction
function TipIx= ShowTips()
x1=linspace(0,1,13)';
y1=sinc(10*x1);
TipIx = round( length(y1) ./ 2 ) + 2; 
// A  B  C %nan D %nan  E  F 
y_red=ones(y1) .* %nan;
t_redRang = [(TipIx-4 : TipIx-2), TipIx, (TipIx+2 : TipIx+3)];
t_redPois = 1 : length(t_redRang);
y_red(t_redRang) = 0.05 .* t_redPois + 0.5 ;

y_blue=ones(y1) .* %nan ;
y_blue( TipIx-1 : TipIx+1 ) = -0.35;
clf();
hw = gcf();
t_redPois_Interp = %f;
figname1="DataTipInterpolation ";
if t_redPois_Interp then figname2="True" else figname2="False" end
figname3=" on red curve";
figname=figname1+figname2+figname3;
hw.figure_name = figname; //e.g."DataTipInterpolation True on red curve"
plot2d(x1,[y1,y_red,y_blue], style=[color("black"), color("red"),
color("blue")] );
e=gce();
p_blue=e.children(1);
p_blue.mark_style=5;// mark with diamond 
p_red=e.children(2);
p_red.mark_style=1;// mark with + 
p_red.thickness=2;
p_red.mark_foreground=color("red");
TipsABC_red = ascii("A");
for i = t_redPois
t_reds(i)=datatipCreate( p_red, t_redRang(i));
datatipSetInterp( t_reds(i), t_redPois_Interp);
TipsABC_red = TipsABC_red + 1;
t_reds(i).tag = char(ascii("A")-1+i);
datatipSetDisplay(t_reds(i), "ShowTip_txt")
end
t_blue=datatipCreate(p_blue, TipIx);
t_blue.font_foreground=color("blue");
t_blue.font_size=3;
datatipSetOrientation(t_blue,"upper left")
t_blue.box_mode="off";
t_blue.tag = "on the red curve each point should show a tip!";
datatipSetDisplay(t_blue,"ShowTip_txt")
//pause
endfunction




--
View this message in context: 
http://mailinglists.scilab.org/how-to-place-datatip-on-one-point-of-polyline-tp4036034p4036059.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread Erhy
der_Phil wrote
> t_red=datatipCreate(p_blue, TipIx);
> shouldn't it be
> t_red=datatipCreate(p_red, TipIx);

Thank you for reading the code.
I wrote the example for demo the problem in an other script.
You are right,
but if you run the script with your correction
the plot looks just before.
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/how-to-place-datatip-on-one-point-of-polyline-tp4036034p4036038.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] how to place datatip on one point of polyline

2017-03-27 Thread Erhy
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
 
My code:
function str=ShowTipsmyfmt(h)
pt = h.data;
str = 'where is the tip on the red curve?';
endfunction
function TipIx= ShowTips()
x1=linspace(0,1,32)';
y1=sinc(10*x1);
TipIx = round( length(y1) ./ 2 ); 
y2=zeros(y1);
y2(TipIx-1) = %nan;
y2(TipIx+1) = %nan;
y3=ones(y1) .* %nan ;
y3( TipIx-1 : TipIx+1 ) = 0.4;
clf();
plot2d(x1,[y1,y2,y3], style=[color("black"), color("red"), color("blue")] );
e=gce();
p_blue=e.children(1);
p_blue.mark_style=5;// diamond 
p_red=e.children(2);
p_red.mark_style=1;// + 
p_red.thickness=2;
p_red.mark_foreground=color("red");
if TipIx ~= [] then
t_red=datatipCreate(p_blue, TipIx);
datatipSetOrientation(t_red,"upper left")
datatipSetDisplay(t_red,"ShowTipsmyfmt")

t_blue=datatipCreate(p_blue, TipIx);
t_blue.font_foreground=color("blue");
t_blue.font_size=3;
datatipSetOrientation(t_blue,"upper left")
datatipSetDisplay(t_blue,"ShowTipsmyfmt")
end
endfunction




--
View this message in context: 
http://mailinglists.scilab.org/how-to-place-datatip-on-one-point-of-polyline-tp4036034.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Erhy
Samuel GOUGEON wrote
> Not in Scilab 6, for the time being. I assumed that you were using Scilab
> 6.

so I will jump to version 6
Thank you!




--
View this message in context: 
http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989p4035993.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Erhy
Samuel GOUGEON wrote
>  1. length(I)==0 means I==[] and then I+1 == []+1 ==[]  as if nothing

But in my examples
I = [];
Iplus = I + 1;
then Iplus is 1




--
View this message in context: 
http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989p4035991.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] add value to each element of an array, also to an empty one

2017-03-24 Thread Erhy
Hello!
Again a basic question.
e.g.
A =  [ 1 2 3 ];
I = find( A > 10);
if length(I) > 0 then
I = I + 1;
end

Is there a alternative
*without the if ?*

I miss the .+ operator.

Thank you  



--
View this message in context: 
http://mailinglists.scilab.org/add-value-to-each-element-of-an-array-also-to-an-empty-one-tp4035989.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] add number arrays efficiently, how?

2017-03-24 Thread Erhy
PabloF wrote
> May be im missing something, but i think in both cases you need to know
> the arrays in advance, dont you?
> 
> Also, i think  SumArr = [SumArr toAdd] has better performance...
> Perhaps im not understanding the question..

Perhaps merge arrays would be a appropriate subject.

If I code, I'm always uncertain about the orientation of the created array.
My first alternative works in any case.
 



--
View this message in context: 
http://mailinglists.scilab.org/add-number-arrays-efficiently-how-tp4035946p4035974.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Why there are Matlab explanation in Scilab Help?

2017-03-21 Thread Erhy
Hello!
As newbie I ask you,
why there are Matlab explanation in Scilab Help?
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/Why-there-are-Matlab-explanation-in-Scilab-Help-tp4035918.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-10 Thread Erhy
Thank you Samuel.
I hoped for a handle of an already existing ax*i*s after newax*e*s()



--
View this message in context: 
http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035784.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-10 Thread Erhy
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?

Thank You
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035782.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-07 Thread Erhy
now I understand*!*
I'm not a native English speaker and in my dictionary
axes means plural and axis means one (singular)
and I searched for selection of a certain axis after /*a = gca()*/

Now I think, it is only possible no modify the axis last created with
/*newaxes();*/

Erhy



--
View this message in context: 
http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035732.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] labels for 2 y-axes in plot

2017-03-02 Thread Erhy
I'm a step forward.
Only the colors of the labels and of the X-axis should to be adapted.

Please send me an URL of your suggested help pages.

 
The code now is:
clf
c1=color("blue");
na1=newaxes();
na1.font_color=c1;
plot( koeffXs(1:$-1),FnormchangedXRSDif(1:$-1),style=c1);
na1.children(1).children(1).foreground=c1;
xtitle("", "multiplier", "deviation")
// second curve
c2=color("red");
na2=newaxes();
na2.font_color=c2;
plot( koeffXs(1:$-1), DifDeriv ,style=c2);
na2.filled="off";
na2.axes_visible(1)="off";
na2.y_location="right";
na2.children(1).children(1).thickness=2;// 
na2.children(1).children(1).foreground=c2;
xtitle("", "", "corrective")



--
View this message in context: 
http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658p4035674.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] labels for 2 y-axes in plot

2017-03-02 Thread Erhy
Hello!
Please give me an example for a plot, where each y axis should have an other
label.
Thank you
Erhy

My example withot laxes labels*:*
clf
c1=color("blue");
na1=newaxes();
na1.font_color=c1;
plot( koeffXs(1:100),Curse1,style=c1);
na1.children(1).children(1).foreground=c1;
// second curve
c2=color("red");
na2=newaxes();
na2.font_color=c2;
plot( koeffXs(1:100), Curse2 ,style=c2);
na2.filled="off";
na2.axes_visible(1)="off";
na2.y_location="right";
na2.children(1).children(1).thickness=2;// 
na2.children(1).children(1).foreground=c2;



--
View this message in context: 
http://mailinglists.scilab.org/labels-for-2-y-axes-in-plot-tp4035658.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] distinguish between rows and columns

2017-02-28 Thread Erhy
Hello!
I have experience to write software and know about more dimensional arrays.

If a look in Variable Browser and than use the function size()
I'm wondering, that "r" means the vertical numbers.

Have you a tip for a very basic letter which explains this?

Thank you
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/distinguish-between-rows-and-columns-tp4035640.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] plot with redimensiond X axis, how?

2017-02-14 Thread Erhy
Samuel GOUGEON wrote
> clf
> plot(Ixs,course(Ixs))
> ax  =  gca();
> ax.data_bounds(1:2)  =  [1  length(course)];

Thank you Christophe ans Samuel*!*
it works!

Between my experiment*:*
coursePn = ones( course ) .* %nan ;
coursePn( Ixs ) = course( Ixs ) ;
plot( coursePn , 'r*') // but without lines between the points




--
View this message in context: 
http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485p4035491.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] plot with redimensiond X axis, how?

2017-02-14 Thread Erhy
Hello Samuel,
Christophe's method is nearly acceptabel for me,
so you see what I mean.

But  I miss the value with index 9 in the plot modified by Christophe's
method.

Erhy



--
View this message in context: 
http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485p4035488.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] plot with redimensiond X axis, how?

2017-02-14 Thread Erhy
e.g.
course = [ 1 0.5 2 3 0.75 0.3 0.4 0.9 0.4 0.5 ]';
y = 2 : size(course,'r') - 1;
// find indices of minimums in course
Ixs = 1 + find( course( y - 1 ) > course( y ) & course( y + 1 ) > course( y
) );

I want to plot course(Ixs) with X axis redimensioned to 1 : size(course,'r')  

Thank you for help
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/plot-with-redimensiond-X-axis-how-tp4035485.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] function with more result variables, how?

2017-02-13 Thread Erhy
Thank you Samuel!
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/function-with-more-result-variables-how-tp4035470p4035476.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] function with public variables possible?

2017-02-10 Thread Erhy
Hello!
In may first exercises with SCILab functions I was disappointed that
I cannot see the variables declared and used in the function with Variable
Browser.

I tried the global statement, but I cannot browse the global variables in
the usual way.

Is there a way to have all variables public?

Thank you
Erhy





--
View this message in context: 
http://mailinglists.scilab.org/function-with-public-variables-possible-tp4035458.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] image area mask for applying for filter

2016-12-10 Thread Erhy
Hello!
My interest ist to image processing.
Are there tools to mask an area of an image,
that a filter is only applied for the masked area?

Thank you for tips
Erhy



--
View this message in context: 
http://mailinglists.scilab.org/image-area-mask-for-applying-for-filter-tp4035216.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users