Community Profile

photo

Rupeng Li


Last seen: fast 2 Jahre vor Aktiv seit 2018

Statistiken

All
  • Thankful Level 2
  • Thankful Level 1
  • Solver

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


Why indexing vs not indexing the 2D matrix will lead to different result?
I encounted an indexing problem: I have a 2x2 Cholesky factor and I want to recover the original SPD matrix. load s.mat s(:,:...

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


vertically concatenate struct values from the same field
Hi I encountered an issue in vertically concatenation of struct values from the same field. e.g. given S1 [S1(1:10).vals] = dea...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

mehr als 5 Jahre vor

Gelöst


Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

mehr als 5 Jahre vor

Gelöst


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

mehr als 5 Jahre vor

Gelöst


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

mehr als 5 Jahre vor

Gelöst


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

mehr als 5 Jahre vor

Frage


How can I merge many rows of different lengths into a matrix?
Hi everyone! I encountered a problem in merging many rows of different lengths into a matrix, for example, A=[1:2]; B=[3:7];...

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten

Gelöst


Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

mehr als 5 Jahre vor