Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline genf  
#1 Posted : 14 January 2020 17:09:14(UTC)
genf


Rank: Advanced Member

Groups: Registered
Joined: 10/06/2013(UTC)
Posts: 33
Man
Russian Federation

Was thanked: 4 time(s) in 4 post(s)
Доброго времени суток.
Бьюсь над одной задачей. Чувствую, что решение вот оно, на поверхности, но не выходит.
Задача состоит в преобразовании матрицы: из исходной матрицы нужно сделать вторую путём повторения каждого элемента матрицы заданное другой матрицей количество раз.
Во вложении 2 исходные матрицы и та, которая должна получится.
Preobrazovanie matricy.sm (5kb) downloaded 8 time(s).
Как это автоматизировать ума не приложу. Может функция какая есть?
Спасибо.
Online PompelmoTell  
#2 Posted : 14 January 2020 20:43:47(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 187
Man
Italy
Location: italy

Was thanked: 70 time(s) in 58 post(s)
A possible solution
Preobrazovanie_matricy_01.sm (7kb) downloaded 6 time(s).
sergio
thanks 1 user thanked PompelmoTell for this useful post.
on 14/01/2020(UTC)
Offline genf  
#3 Posted : 14 January 2020 21:32:17(UTC)
genf


Rank: Advanced Member

Groups: Registered
Joined: 10/06/2013(UTC)
Posts: 33
Man
Russian Federation

Was thanked: 4 time(s) in 4 post(s)
Originally Posted by: PompelmoTell Go to Quoted Post
A possible solution
Preobrazovanie_matricy_01.sm (7kb) downloaded 6 time(s).
sergio


Спасибо большоеGood
Не знал о такой функции (Ones). То что надо.

Offline Jean Giraud  
#4 Posted : 14 January 2020 23:08:48(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 4,218
Canada

Was thanked: 741 time(s) in 582 post(s)
Originally Posted by: genf Go to Quoted Post
Доброго времени суток.

My Russian died long time ago !
You can do something from XY data.

Cheers ... Jean

Preobrazovanie matricy Unknown.sm (327kb) downloaded 7 time(s).

thanks 1 user thanked Jean Giraud for this useful post.
on 15/01/2020(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.