Community Profile

photo

Dario


Active since 2017

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


How can I put in an array the elements near the center?
I have a matrix 100x100. I want to save the 8 elements around the center of the matrix in an array. Then I want to save the 16 e...

6 years ago | 2 answers | 0

2

answers

Question


Create a movie of different imagesc
From a for cycle I obtain 423 different imagesc on a single figure (While the simulation is running I see in this figure all the...

6 years ago | 1 answer | 0

1

answer

Question


linear fit of data
I have to fit this array (300x1) of data with a line and I have no idea how to do a linear fit with this values. Thank you

6 years ago | 1 answer | 0

1

answer

Question


Error using subplot, undefined function or variable
I'm using in a wrong way subplots. I want to plot two matrices in the same figure using two subplots. figure subplot(2,1,1...

6 years ago | 1 answer | 0

1

answer

Question


For loop mean values into matrix
I attach my matrix that is called diff_matr. This matrix has 2 columns. In the first one there are values (ordered by ascend...

6 years ago | 1 answer | 0

1

answer

Question


How can I save matrices created in a for loop in the workspace?
This is my code at the moment: for f=1:3 diff_matr=[dist_direct(:,f),diff(:,f)]; diff_matr=sortrows(diff_matr,1);...

6 years ago | 1 answer | 0

1

answer

Question


How can I remove an entire row of zeros in a matrix?
If I have a matrix like this one: 45 23 54 0 0 0 9 3 32 How can I remove the second row and obtain this matrix? ...

6 years ago | 1 answer | 0

1

answer

Question


imagesc: how to set NaN as white color
I need to set NaN values as white color using imagesc. I attach the matrix which is a 1200x1200 matrix with different values equ...

6 years ago | 4 answers | 0

4

answers

Question


Put array data inside another array without a for cycle
I have 2 array of equal dimension: 1440000x1. I need to put in the 2nd array the value 0 when there is the value 0 in the first...

6 years ago | 1 answer | 0

1

answer

Question


Calculating distance between a point and all points of a matrix
In the file.mat that I upload there are the x and y coordinates of an antenna and the 2 arrays with x and y coordinates of the e...

6 years ago | 1 answer | 1

1

answer

Question


Union of two matrices with different column size
I need to make the union between two matrices: M 455799x3 N 771719x3 I attach the workspace with the two matrices insid...

6 years ago | 1 answer | 0

1

answer

Question


Import a .txt file with numbers and words
I need to import a .txt file that with numbers and words. In particular I need the first two numbers next to every "POINT" and t...

6 years ago | 1 answer | 0

1

answer