Find difference of two set as per example
Find difference of two set as per example
Say x=[1:5] and y=[2:6]
then, set_diff(x,y) should give output[1] and set_diff(y...
row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.
5年以上 前
解決済み
vectors counting by 5
Create a vector with numbers from x_min to x_max in increments of 5.
5年以上 前
解決済み
intervals
Write a function that takes an interval from a to b, and divides it into 6 parts.
5年以上 前
解決済み
Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10.
For example, if you add the di...
5年以上 前
解決済み
Simple Matrix
Make the following matrix without typing it in one by one.
[1 2 3;
2 4 6;
4 8 12]
x=[1 2 3].
5年以上 前
解決済み
Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (...