Answered
random matrix full rank
Hi, Try this one: T=6; a=rand(T); m=tril(a,-1); matrix=m+m'+eye(T).*rand(T);

ongeveer 5 jaar ago | 1

| accepted

Answered
Index error during encryption
You can use this script: l = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','...

ongeveer 5 jaar ago | 0

Answered
Polyshape: stop Connecting first and last points.
Hi, do you mean this? load('Data'); a=polyshape(Data(:,1),Data(:,2)); b=regions(a); area=[b(2,1).Vertices(:,1) b(2,1).Verti...

ongeveer 5 jaar ago | 0

Answered
Separating Multiple Columns of Data Based on a Value in One Column
You can make a structure for each ROI like this: x=data; sep_x=struct; for ROI=[1,2,5,8]%?? a=find(x(:,1)==ROI); se...

ongeveer 5 jaar ago | 0

Answered
What wrong with this?
you dont need 'str2double' if you ask for an input which should be a number

ongeveer 5 jaar ago | 1

Answered
How to count the number of point and know their coordinates in a specified area from a scatter plot
Sure, Lets start with a simple example: x=1:10; If you want to make an array with all the vallues of x that are for example l...

ongeveer 5 jaar ago | 0

Answered
How we can make a HeatMap like this?
Hi, Maybe not the best way but it works: velocityrange=-80:5:80; momentrange=-250:10:250; for i=1:numel(momentrange) fo...

ongeveer 5 jaar ago | 0

| accepted

Answered
How to count the number of point and know their coordinates in a specified area from a scatter plot
Hi, This can be done with: bx=ax(abs(ay-1.5)<0.2); by=ay(abs(ay-1.5)<0.2); num_b=numel(bx);

ongeveer 5 jaar ago | 0

Answered
How to import data from a .txt file that contains text and numbers
Hi, You can try this: text=('nitial Void ratio = 0.68'); a=find(text=='='); number=text(a+1:end); num=str2num(number)

ongeveer 5 jaar ago | 0

Answered
Generate a Hexagonal Array
base=1; X=[]; Y=[]; for num=1:6 x=zeros(num*6,1); y=zeros(num*6,1); x(1:6)=base*num*cos(2*pi/6.*(0:5)); y...

ongeveer 5 jaar ago | 0