Making change
Given an amount of currency, return a vector of this form:
[100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01]
Example:
Input a = ...
7年弱 前
解決済み
Product of Each Column
Given a matrix |mat| with |n| columns, return a row vector |v| of length |n|, where every element in |v| is the product of the |...
7年弱 前
質問
Multiply the vector organs
How to multiply the vector parts without using a prod function
For example: s=[1 2 3 4], v=24