Community Profile

photo

Bandar Aldhafeeri


Last seen: 2 months ago
10 total contributions since 2019

Bandar Aldhafeeri's Badges

  • Thankful Level 1
  • First Answer

View details...

Contributions in
View by

Question


Inconsistent result with the documentation
Take a look at a feedback system where G=1/s and H=1 where G is forward feedback and H backward feedback. ----O---------|G|-...

4 months ago | 1 answer | 0

1

answer

Answered
Finding a number in an array less than 2
For this case, you may consider using vectorization. Try this code A = [0 -1 2 3 2 5 -2]; A(A<2)

5 months ago | 0

Question


Clarification about using only the first 'namelengthmax' characters of the name
In Matlab documentation, it states the following Although variable names can be of any length, MATLAB uses only the first N ch...

5 months ago | 1 answer | 0

1

answer

Question


Remove or Undo GridLayout with App Designer.
I'm using app designer. I've noticed I can't undo or remove grid layout. Is there any solution for this problem? I'm using Matla...

5 months ago | 1 answer | 1

1

answer

Answered
how to generate matrix with any size in same pattern
n=5; v =-2*ones(1,n); p =ones(1,n-1); B =diag(v); C =diag(p,1); D =diag(p,-1); A=B+C+D The result is A = -2 1...

6 months ago | 0

Answered
Mean of certain elements within a matrix
A=[1 2 3 4 5 6; 7 8 9 10 11 12;13 14 15 16 16 18;19 20 21 22 23 24] [row,~]=size(A); for i=1:row-1 c = A(i,[5 6]); r...

6 months ago | 0

Answered
How to calculate moving average
Take a look this data file=[1 2 3 4]; movmean(file,3) which returns 1.5000 2.0000 3.0000 3.5000 The filter works...

6 months ago | 0

Answered
plot with points in file
Assume data stored in this form 1 23 2 34 3 54 The code is file = load('data.txt'); n=3; x=file(randi(10,1,n),1); % 10:...

6 months ago | 0

Answered
Array indices must be positive integers or logical values.
Indices must be postivie integer. In your code, lambda is a vector that contains non-integers. lamda = 0:0.01:3; ... l_sun(...

6 months ago | 0

Answered
n! permutation matrices
You may consider creating multidemintional matrix as follows: I=eye(4); pr=perms(1:4); A=zeros(4,4,24); for i=1:24 A(:,:,...

6 months ago | 0