# Sadiq Akbar

I am Sadiq Akbar, a keen learner in Matlab

**Statistics**

RANK**14 187**

of 257 962

REPUTATION**2**

CONTRIBUTIONS

**58** Questions

**4** Answers

ANSWER ACCEPTANCE **
41.38%
**

VOTES RECEIVED**1**

RANK

of 17 780

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 110 189

CONTRIBUTIONS

**0** Problems

**0** Solutions

SCORE**0**

NUMBER OF BADGES**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**1** Public Channel

AVERAGE RATING**30**

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

Why this piece of code gives error?

CostFunction='fun4sn0'; nPop=120; nVar=4;%nVar=1000; nPop_Initial=nPop; nPop_Final=30; MaxNFE=3e3; MaxIter0=ceil(MaxNFE/...

ungefär en månad ago | 2 answers | 0

### 2

answersQuestion

Why this gives error?

LB=[0 0 0 0]; UB=[10 10 pi pi]; particles_x(1,1)=LB+rand*(UB-LB)

ungefär en månad ago | 2 answers | 0

### 2

answersQuestion

How to draw a pulse train

I want to draw a pulse train in Matlab like the one shown blue in attached picture. The duration of each pulse is Tp and there a...

2 månader ago | 1 answer | 0

### 1

answerQuestion

How to plot peaks on desired location in a 3D plot?

There are two vectors that will make an xy-plane. I want to draw a peak pointing in z-direction on a desired location on the xy-...

3 månader ago | 1 answer | 0

### 1

answerQuestion

How to plot a 3D plot from three linear vectors?

I have three vectors x ,y and z. The size of all of them are same.But all of them are 1D arrays. I want to draw a 3D plot from t...

3 månader ago | 1 answer | 0

### 1

answerQuestion

MATLAB libraries of DHT11 sensor

@ MathWorks MATLAB Hardware Team If the DHT11 sensor is connected to my Arduino and I want to read the temperature and humidi...

6 månader ago | 1 answer | 0

### 1

answerQuestion

Why do upsample and downsample commands give wrong results in start of sequence?

I have a code for upsampling an input sequnce x and then downsampling it back to original by a factor 3. When I look at the plot...

6 månader ago | 3 answers | 0

### 3

answersQuestion

Everything being the same, then why does matrix C give different values in the two codes?

All the values are the same in both the codes, then why does matrix C give different values in both the codes? code1: u=[30 50...

7 månader ago | 1 answer | 0

### 1

answerQuestion

I want to implement these equations in MATLAB but how?

The equations are given in the attachment. Assume lambda=1. How to implement the given equations in MATLAB?

7 månader ago | 1 answer | 0

### 1

answerQuestion

How to separate the MIMO code only from given code?

The given code treats three types of system namly PHASED-ARRAY RADAR, MIMO RADAR and PHASED-MIMO RADAR (K=5). I want to delete t...

8 månader ago | 0 answers | 0

### 0

answersQuestion

why the command "figure(gcf+1)" gives error?????

doas=[-30 -5 40]*pi/180; P=[1 1 1]; N=10; %Number of array elements K=1024; %Number of data snapshots d=0.5; %Distance bet...

8 månader ago | 1 answer | 0

### 1

answerQuestion

Why this code gives error?

Nc=31; N=5; M=3; K=3; tot_len=200; array_TX =[3.5086 0 0;2.6877 2.2553 0;0.6093 3.4553 0;-1.7543 3.0385 0;-3...

8 månader ago | 1 answer | 0

### 1

answerQuestion

Why this code the given error?

close all; clear all; clc; vec = @(MAT) MAT(:); vecH = @(MAT) MAT(:).'; % M = 5; M = 10; N = 4; % N = 10; d = 0.5; K = 3...

9 månader ago | 1 answer | 0

### 1

answerQuestion

why this line gives error?

I have a code in which there is an error: %% 212 % Range 213 Range_hat(1) = Ranges(snapstart(1)); 214 Rangebin_hat...

10 månader ago | 2 answers | 0

### 2

answersQuestion

What are these commands in Matlab? Can any one explain them with examples. I searched them but didn't find any help

I don't understand the following commands in Matlab. I searched their help but in vain. Can anyone explain them with examples? ...

10 månader ago | 1 answer | 0

### 1

answerQuestion

How to generate a Gaussian random complex vector of N elements

How can we generate a Gaussian random complex vector of N elements of zero mean and variance 1 in MATLAB ?

12 månader ago | 2 answers | 0

### 2

answersQuestion

How to rectify the error in this code?

I found a code for ESPRIT algorithm as below but it gives me this error: Undefined function or variable 'theatest3'. Error...

12 månader ago | 1 answer | 0

### 1

answerQuestion

Covariance matrix as a diagonal matrix or not??????

The literature says that when three signals are uncorrelated i.e., they have different frequencies, then their COVARIANCE MATRIX...

12 månader ago | 1 answer | 0

### 1

answerQuestion

Can we use xcorr() for continuous signals

If we have two continuous signals as below: Then can we use xcorr() to find the correlation between them? close all; clc; clear...

12 månader ago | 0 answers | 0

### 0

answersQuestion

two coherent and two correlated signals in Matlab

How can we generate two coherent signlas in Matlab? Likewise how can we generate two correlated signlas in Matlab. Furhter how w...

ungefär ett år ago | 2 answers | 0

### 2

answersQuestion

Problem in AWGN command

I have two matrices A and xx.. The dimension of the matrix A is 9 x 3 complex double and that of xx is 3 x 500 complex double. T...

ungefär ett år ago | 1 answer | 0

### 1

answerQuestion

dividing a diagonal matrix into same and different diagonal elements

I have a diagonal matrix as: V = [ 0.0001 0 0 0 0; 0 0.0001 0 0 0; ...

ungefär ett år ago | 1 answer | 0

### 1

answerQuestion

Why do these two codes give different covariance matrices?

1st code: S =[ 0.6661 - 0.7458i 0.4210 - 0.9071i 1.0000 + 0.0000i;-0.9127 + 0.4086i -0.8429 + 0.5381i 1.0000 + 0.0000i;1...

ungefär ett år ago | 1 answer | 0

### 1

answerQuestion

Why does this code give error?

clear all close all N=100; fc=1.0e9; fs=20*fc; w=2*pi*fc/fs; n=0:N-1; s=sqrt(1.0)*exp(i*w*n); wn=sqrt(0.1/2)*(ra...

ungefär ett år ago | 1 answer | 0

### 1

answerQuestion

Why this code gives error?

clear all close all N=1001; f1=1.0000e9; f2=1.0200e9; fs=4*f1; w1=2*pi*f1/fs; ...

ungefär ett år ago | 4 answers | 0

### 4

answersQuestion

How to form covariance matrix of this?

I have a complex matrix as: S = 0.6661 - 0.7458i 0.4210 - 0.9071i 1.0000 + 0.0000i -0.9127 + 0.4086i -0.8429 + 0....

ungefär ett år ago | 0 answers | 0

### 0

answersQuestion

How to install a Matlab package offline?????

I have downloaded the following Matlab packages from Mathworks site. 1.Matlab support package for arduino 2-Simulink support p...

ungefär ett år ago | 1 answer | 0

### 1

answerQuestion

Why the result of SQP algorithm varies each time when we change the starting point xo?

I have this code for running the SQP algorithm which is as follows: OPTIONS = optimoptions('fmincon','Algorithm','sqp','Display...

ungefär ett år ago | 1 answer | 0

### 1

answerQuestion

Why each time algorithm "interior point" is shown in output even if I use different algorithm?

My fitness function is as below: function out=myfitness(b) u = [1 2 3 4]; out1 = u-b; out = sum(out1.^2,2...

ungefär ett år ago | 1 answer | 0