~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to macros/percent/%c_a_c.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function r=%c_a_c(a,b)
 
2
if size(b,'*')==1 then
 
3
  b=b(ones(a))
 
4
elseif size(a,'*')==1 then
 
5
  a=a(ones(b))
 
6
else
 
7
  error(8)
 
8
end
 
9
r=a+b