Community Profile

photo

Mahsa


Aktiv seit 2013

Followers: 0   Following: 0

Kontakt

Statistiken

  • First Review
  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Defining boundary condition and initial condition for PDE.
I want to solve following 1D Burger's equation using pdepe. With the initial and boundary condition of 4. Unfortunately, I cou...

etwa 7 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


find the last non-zero value
For a regular vector we can use following command to extract the vector after pre-allocating. if m = [ 1 2 3 4 5 0 0 0 0...

etwa 9 Jahre vor | 1 Antwort | 1

1

Antwort

Beantwortet
find the last non-zero column in matrix in pre-allocated matrix
Oh I see it can be answered by find(any(M,1),1,'last')

etwa 9 Jahre vor | 0

Beantwortet
find the last non-zero column in matrix in pre-allocated matrix
another way is to delete the zeros if m = [ 1 2 3 4 5 0 0 0 0 0 0 0 0] m(m==0)=[] m= [1 2 3 4 5]; However my question i...

etwa 9 Jahre vor | 0

Frage


calculate the inv of a matric with one constant
Hello all, I have a simple question. Assume that I have the following matrix. How can I find the inv of this matrix based on "t...

mehr als 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Preallocating zeros in cell array. and Which one is faster? 3D matrix, cell or structure data?
Hello all, I have to rewrite my Matlab code to make it faster. in some cases I need to used cell structure to keep my data: for...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


find the last non-zero column in matrix in pre-allocated matrix
Hello, My matlab code is creating very very matrix and I didn't pre-allocate it before. Because I always need to know the size ...

mehr als 9 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


Delet zeros after final number
Dear all, I'm looking for an efficient way to delete zeros after final number in MATLAB, A= [ 5 6 0 3 2 0 9 0 0 0 0 0 0] ...

mehr als 9 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
delete zero rows only with one number
if a = [9 0 0; 7 0 0; 8 2 0; 8 8 8] K>> t=a(all(a(:,2:end),2),:) t = 8 8 8 however it should be K>> t=a(a...

mehr als 9 Jahre vor | 0

Frage


delete zero rows only with one number
Dear all, I have a matrix like A =[23 45 23 56;26 0 0 0;45 23 65 34;34 0 0 0] I want a very efficient way to delete only the r...

mehr als 9 Jahre vor | 4 Antworten | 0

4

Antworten

Frage


mesh generation for all known domain coordination
Hello, I'd like to generate a 3D mesh, for example, in my picture, if I calculate all points in a, h, f and c, how can I plot...

etwa 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Arc length of Cubic Bezier Curve
Hello, I'm looking for an efficient way to calculate the arc length of Cubic Bezier curve, by knowing P0,P1,P2 and P3. Thank ...

etwa 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Find the intersection of two vectors
I have two pairs of point and vector in 2d and I should find its intersection. for example: p0=[0,0] vector_p0=[0,1] and p1...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotting Beziar curve by having tangent
My problem: I have coordinate and tangent of first point and the end point of Bezier curve and I should draw Bezier Curve in MAT...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Plotting Bezier curve by having tangent
My problem: I have coordinate and tangent of first point and the end point of Bezier curve and I should draw Bezier Curve in MAT...

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten