Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


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: 50
Man
Russian Federation

Was thanked: 6 time(s) in 6 post(s)
Доброго времени суток.
Бьюсь над одной задачей. Чувствую, что решение вот оно, на поверхности, но не выходит.
Задача состоит в преобразовании матрицы: из исходной матрицы нужно сделать вторую путём повторения каждого элемента матрицы заданное другой матрицей количество раз.
Во вложении 2 исходные матрицы и та, которая должна получится.
Preobrazovanie matricy.sm (5kb) downloaded 13 time(s).
Как это автоматизировать ума не приложу. Может функция какая есть?
Спасибо.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline PompelmoTell  
#2 Posted : 14 January 2020 20:43:47(UTC)
PompelmoTell


Rank: Advanced Member

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

Was thanked: 109 time(s) in 93 post(s)
A possible solution
Preobrazovanie_matricy_01.sm (7kb) downloaded 15 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: 50
Man
Russian Federation

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


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

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

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 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 15 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.