Community Profile

photo

Lama Hamadeh


Last seen: 11 meses hace Con actividad desde 2021

Followers: 0   Following: 0

Estadísticas

  • Thankful Level 3

Ver insignias

Feeds

Ver por

Pregunta


Concatenate two vectors with different dimensions and sort the result in an ascending order.
Hi, If I have two vectors with different dimensions as following: A = [ 1 ; 3 ; 6]; B = [ 2 ; 4 ; 5 ; 7, 0]; How can I verti...

alrededor de 1 año hace | 2 respuestas | 0

2

respuestas

Pregunta


Construct a permutation matrix from two vectors
Hi, If I have two vectors: a = [1 ; 2 ; 3]; b = [4 ; 5 ; 6]; How can I constrcut a matrix that has the shape of: Thanks.

alrededor de 1 año hace | 2 respuestas | 0

2

respuestas

Pregunta


extract the indices of matrix elements after applying a condition
Hi, I have the following two matrices: A = [1.0000 2.0000; 0.1000 1.0000 ; 0.6000 0.4000 ; 5.0000 0...

más de 1 año hace | 1 respuesta | 0

1

respuesta

Pregunta


find a cell that corresponds to a range of values
Hi all, If a I have a column of four cells where each cell contains a range of values, as shown below. If I have a list that...

casi 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


create a sparse multidimensional matrix
Hi all, I am trying to construct a multidimensional sparse matrix that has the following shape: I have a problem knowing how...

casi 2 años hace | 5 respuestas | 0

5

respuestas

Pregunta


Assigning a list of numbers to their corresponding cells in a mesh
Hello all, I have the mesh as showing below. The cells index vector is right next to it. If I have a vector of values: , t...

casi 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


The slicing is not complete!
Hi all, I have the following 2D matrix and I want to slice it by taking just the elements on the first column that equal to one...

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


extract a slice from a 2D matrix with specific values
Hi, I want to extract a slice of a 2D matrix from a bigger 2D matrix with certain values. So, if I have a matrix as follwoing: ...

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Choosing elements from a 2D array
Hi all, I have a 2D array int that has fixed avues of on its second column but different values on its first column. How can I...

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


if statement is not working
Hi all, I have the follwoing code that runs fine but no output of the if statement for some reason: theta = [-90.0000 -63.4746...

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


subtract each element from the one before in a row matrix
Hi all, I have a row matrix defined as: s = linspace(0,4,17); I want to create a vector that its elements are the half subtra...

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to construct a "ones" matrix with zero blocks in the diagonal
Hi all, I am trying to construct the follwoing matrix and any help would be highly appreciated. Thank you.

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How to map subdivisions in a squared geometry
I have a geometry of a square with 4 edges. Each edge has 5 points and 4 cells (subdivisons). The image bellow illustrates it. ...

casi 3 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Accessing a cell in a 2D grid
Hi all, I have a 2D grid as shown below where each cell represents a pair of and where and . I would like to construct a new...

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to choose the middle of a random cell in a 2D grid
Hi all, I have a 2D grid that has 25 points equally spaced in both axes dividing the grid into little boxes/cells/pixels. Is th...

casi 3 años hace | 2 respuestas | 0

2

respuestas

Pregunta


Create an equally spaced vector when taking the sine of another vector
I want to create a vector containing 25 points such that the points are equally spaced when you take the sine of another vector ...

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Angle between two lines
I have the following geometry: All the blues and whites are known. The reds are to be determined (specifically speaking ). A...

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


angle between two lines
I have the follwoing geometry: All the blues and whites are knowns. The reds are unknown and need to be determined (specifica...

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to get the standard line equation from a position and angle
Hi all, I want to compute the standard line equation of the form in a 2D meshgrig within the positive domain given the starti...

casi 3 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Vertical and horizontal line standard equations
Hi all, I am trying to use the standard equations of the form for both: horizontal and vertical lines and draw them on a mesh ...

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Angle between two vectors is computed weirdly!
Hi all, I am trying to compute the angle between line L1v and the verticle norm Nv via the dot product using the follwoing code...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


nan in if statement
Hi all, How can I say: if (a==0 or a==NaN) %whatever end Thanks.

alrededor de 3 años hace | 2 respuestas | 0

2

respuestas

Pregunta


advance a vector coordinates in a loop
Hi all, I'd like to advance an intial vector forward in something similar to this: where the blue arrow is the initial one, ...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to draw a vector/line in a mesh
Hi all, I have the follwoing mesh: %Defining space variables L = 4; %boundary legth ns = 25; %number of points on S axis n...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


A matrix/grid from two vectors
Dear all, I am trying to construct a matrix (or a grid) with specific limits on the x and y axes from two vectors: ns = 20; %n...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta