Community Profile

photo

Tim


Active since 2013

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


How to solve an equation with one variable (x) including a "sum" from 1:n?
Hi, I never used Matlab to solve simple equations, so it would be awesome if anyone could help me out: I want to get to know...

10 years ago | 1 answer | 0

1

answer

Question


How to reshape a 2D to 3D matrix without using loops (reshape) and keeping a particular order of the elements// Wrong arragement of elemts after using "reshape"
I've a problem using the reshape function. I've a Matrix A: A = 1 2 3 4 5 6 7 8 9...

10 years ago | 1 answer | 0

1

answer

Question


Quicker function than repmat to multiplay matrices with vectors?
I've recognised that in my programm the most time-consuming parts are the parts where I use repmat, most of the times when I wan...

10 years ago | 1 answer | 0

1

answer

Question


How can I easily get for each day in 2013 the type of day? ( Weekday, Saturday, Sunday)
Hello, I want to know if there's an easy way to get to know for each day in 2013 if it was a weekday or a Saturday or Sunday. ...

10 years ago | 2 answers | 1

2

answers

Question


Delete last n1,n2,n3 (...) elements in each row in a Matrix in an efficient way or set to zero
I've a large set of data and i want to remove from the end of each row a different amount of elements (0-n). Is there a fast way...

10 years ago | 2 answers | 0

2

answers

Question


How to change Elements in Matrix per row depending on their size in reference to a particular Element (without loop)
I've Data (in the real case much bigger) like this: A = 0 3 4 5 2 3 1 2 4 6 2...

10 years ago | 3 answers | 0

3

answers

Question


How to shift rows in a matrix by different values (e.g. line 1 n-spots, line 2 m-spots and so on) without using a loop
I want to shift rows in a matrix randomly. It is im important that every row in shiftet by a random number. I tried to implement...

10 years ago | 3 answers | 1

3

answers

Question


Insert Zeros (m -rows) in an existing Matrix every n-rows in an efficient way
I've data like this (the actualy matrix is much bigger) A = 1 1 2 2 3 3 4 4 5...

10 years ago | 3 answers | 0

3

answers

Question


Rearrange 3 small matrices to a bigger one with a certain order: taking first n-rows of each of the smaller matrices after each other
I have three smaller Matrices that I want to transform to one bigger one with the following order: >> A1 = 1 1 ...

10 years ago | 3 answers | 0

3

answers

Question


How to rearrange 3 small matrices to a bigger one with a certain order of rows without using loops
I guess this one is quite simple but yet I didn't come up with a nice solution: I have three smaller Matrices that I want to ...

10 years ago | 1 answer | 0

1

answer

Question


Create new smaller Matrix by summing every n-rows in old Matrix (without loops)
I've a Matrix like A = 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 ...

10 years ago | 1 answer | 0

1

answer

Question


How to quickly change 3D to 2D Matrix
I've a Matrix e.g. A(:,:,1) = 1 1 1 2 2 2 3 3 3 A(:,:,2) = 4 4 ...

10 years ago | 1 answer | 0

1

answer

Question


How to set all elements in a 2D Matrix between two indices to "1" in each row
I've a matrix A e.g. like this: A = 1 0 0 1 0 0 0 0 1 0 0 1 0 ...

10 years ago | 3 answers | 0

3

answers

Question


How to edit elements per row in a 3D-matrix using a vextor with (X,Y,Z)-coordinates indecating a first index and a last index. All elements between these two shall be '1'. If possible without a loop to be most efficient
I have 3D matrix with Zeros, e.g. A=zeros(10,10,3); Also I've "start-coordinates" and "stop-coordinates" for each Dimension (...

10 years ago | 0 answers | 0

0

answers

Question


How to find first nonzero element/first '1' per row and set other elements to zero without loops in 3D Matrix
I've a Matrix f.ex. like A=[0,1,1,0; 1,0,0,1;0,0,0,1;0,1,1,1]; A = 0 1 1 0 1 0 0 1 ...

10 years ago | 3 answers | 0

3

answers