Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
MatLab
lalkaed
Apr 18th, 2018
96
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
MatLab
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
x =
[
1
2
3
4
5
6
7
8
9
10
]
;
x1 = x;
n =
4
;
k =
length
(
x
)
;
for
i
=
1
:k
for
j
=
1
:n-
1
x
(
i
)
= x
(
i
)
*x1
(
i
)
;
end
end
S =
sum
(
x
)
;
fprintf
(
'Sum = %d\n'
, S
)
;
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
December smells like money
CSS | 5 min ago | 0.82 KB
Crypto exchange glitch
CSS | 5 min ago | 0.29 KB
Untitled
4 hours ago | 7.90 KB
Untitled
Bash | 5 hours ago | 3.53 KB
dm.cfg
10 hours ago | 1.00 KB
Untitled
12 hours ago | 8.11 KB
Untitled
PHP | 12 hours ago | 1.35 KB
Untitled
19 hours ago | 1.42 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!