[Scilab-users] do not manage to show text labels along the x-axis

Heinz Nabielek heinznabielek at icloud.com
Wed Oct 4 11:16:14 CEST 2017


Monte-Carlo simulating blood types in Austria was easy in Scilab, but I do not manage to show text labels along the x-axis. Text would be:
blood=['0+'	'A+'	'B+'	'AB+'	'0-'	'A-'	'B-'	'AB-']
and the diagram should look similar to my attached EXCEL.

Heinz




// SciLab code for Monte-Carlo simulating blood types in Austria
p=[0.3	0.37	0.12	0.05	0.06	0.07	0.02	0.01];
blood=['0+'	'A+'	'B+'	'AB+'	'0-'	'A-'	'B-'	'AB-']

P=cumsum(p);P=[0 P];np=length(p);nj=5;C = zeros(np,nj);
N=12; X = grand(nj,N,'def');
for i=1:np
    C(i,:) = sum((X>=P(i) & X<P(i+1)),2)';
end
C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20171004/2030d3e3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blood type.png
Type: image/png
Size: 48486 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20171004/2030d3e3/attachment.png>


More information about the users mailing list