Community Profile

photo

Tchilabalo


Last seen: mehr als 3 Jahre vor Aktiv seit 2019

Statistiken

  • First Review
  • Thankful Level 3

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


Plotting multiple polygons using lines
I am trying to plot two polygons as shown in Figure 1. I am using the coordinates of the vertices as shown in the following code...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Drawing polygon from lines
I have polygon as shown in Fig1. I also know the coordinates of the vertices. I now want to use those vertices to create a serie...

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Indexing with two matrices
I have two matrices A(1000 by 100) and B(10 by 100). A= 1 4 20 3 5 15 2 1 24 7 9 42 B= 3 4 ...

etwa 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Plotting multipe lines with different width
I have 5000 lines with their endpoints coordinnates. I want to plot all these lines in one figure, but each line will have a dif...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Line pathway using intersection points
clear all Window=10 square=[0 0; 0 Window; Window 0; Window Window];% Box coordinates N=5; % Coordinates of segments endpoin...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to convert matrix indexes to cartesian coordinates
Given a matrix a shown above, i want to convert the cell indexes into cartesian coordinates. I am trying to figure out what th...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to trim segments to fit a square
intermed=[X1 X2 Y1 Y2 m b]% where (X1,Y1) represents the lower left endpoint, (X2, Y2) represents the upper right endpoint, m an...

mehr als 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Store results of for loop in matrix
ab=[X01(:) X02(:) a(:) m(:) b(:)]; Countcell=zeros(1, length(ab)) for i=1:length(ab) X=[(ab(i,1)+(0:(ab(i,3)/dx):ab(i,3...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Generate a multiplicative cascade process
I am trying to simulate a multiplicative cascade process. At the first iteration i call four random numbers (between 0 and 1); t...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Solving equation with four unknowns
clear all aa=1.5; m=(0.5)^(aa); syms x y w z S=vpasolve([x^2+y^2+z^2+w^2==m, x+y+z+w==1],[x y z w],[0 1],'Random',true) ...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting multiple separate lines
x1=[0 2 3] y1=[11 19 12] x2=[24 25 22] y2=[36 38 39] for i=1:length(x1) A = [x1 y1]; B = [x2 y2]; plot(A,B) end axis([0 ...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Conditional statement with vectors
I have two vectors A (100 numbers) and B (500 numbers). For each element of A, I want to find the index (j) of element B such th...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Saving all output of for loop
for i=1:1500 X1=J(i)-sqrt((D(i)^2)/((sqrt(A(i))+1))) Y1=I(i)-A(i)*(J(i)-X1) X2=J(i)+sqrt((D(i)^2)/((sqrt(A(i))+1))) ...

fast 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How can I match two vectors using the discrete inverse transform method?
iV=reshape(pr,1,[]);% pr represents the pobability matrix V=cumsum(V)/sum(V); figure, cdfplot(prc) U=rand(1,100) I have ...

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort