A résolu


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 = ...

plus de 6 ans il y a

A résolu


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 |...

plus de 6 ans il y a

Question


Multiply the vector organs
How to multiply the vector parts without using a prod function For example: s=[1 2 3 4], v=24

plus de 6 ans il y a | 2 réponses | 0

2

réponses

Question


Random integers in input
How can I give a set of random integers (including negative numbers)?

plus de 6 ans il y a | 1 réponse | 0

0

réponse

A résolu


Triangle of numbers
Create a matrix with the integers from 1 to |n| arranged in a triangular shape. Every row |i| of the matrix contains |i| inte...

plus de 6 ans il y a

Question


Raise the zeros in the vector up
If I have a vector [5 8 0 7 9 0 3], how do I put it this way: [0 0 5 8 7 9 3] use only function if-else thank you.

plus de 6 ans il y a | 1 réponse | 0

1

réponse