# Sadiq Akbar

Followers: 0 Following: 0

I am Sadiq Akbar, a keen learner in Matlab

**Statistics**

RANK**21,353**

of 293,154

REPUTATION**2**

CONTRIBUTIONS

**131** Questions

**5** Answers

ANSWER ACCEPTANCE **
50.38%
**

VOTES RECEIVED**1**

RANK

of 20,002

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

RANK

of 148,564

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

**Feeds**

Question

Why does this technique not work?

I have a mat file which has a row vector u and a matrix temp_gbo. The size of this matrix is 100 x 4. I want the following: Eac...

9 days ago | 3 answers | 0

### 3

answersQuestion

Why does this code give error?

When I run the main, it gives me the following error: Unable to perform assignment because the indices on the left side are not...

16 days ago | 1 answer | 0

### 1

answerQuestion

I want to plot RMSE from mat file but it gives error

When I run the m file, it gives me he following error: Operator '-' is not supported for operands of type 'cell'. Error in RMS...

28 days ago | 1 answer | 0

### 1

answerQuestion

Why does this code give error although everything seems ok?

When I run the m file FHO4, it gives me the following error: Error using unifrnd Size information is inconsistent. Error in F...

1 month ago | 1 answer | 0

### 1

answerQuestion

Why does the code always return "-ve" values?

When I run the main, it returns me all negative values though I have given only two negative values. Explanaton: Inside main, ...

3 months ago | 1 answer | 0

### 1

answerQuestion

These 3 codes when run give error

I have 3 codes as given in attachment. When I run the "main.m", it gives the following error: Index in position 1 exceeds arr...

3 months ago | 1 answer | 0

### 1

answerQuestion

How to do correction in this piece of code?

clear;clc u=[30 50 60 80];% [Theta1 Theta2 Phi1 Phi2] four angles M=length(u); P=M/2; % No. of sources f=1e9;% frequency c=...

3 months ago | 1 answer | 0

### 1

answerQuestion

I tried this code but it gives me an error

There are 8 antennas placed in a circle and there are two sources in the far field from which rays are coming and are incident o...

3 months ago | 2 answers | 0

### 2

answersQuestion

Why does this code give error?

clear;clc %% fc = 3e8;% Carrier frequency Nb = 1000;% Number of snapshots c = 3e8; wavelength = c/fc;% The wavelength o...

4 months ago | 1 answer | 0

### 1

answerQuestion

Why does this code give error?

clear;clc; fc = 3e8; Nb = 1000; %% Number of snapshots c=3e8; wavelength = 3e8/fc; d = 0.5*wavelength; N = 10; ...

4 months ago | 1 answer | 0

### 1

answerQuestion

How to find the Relative Root Mean Square Error for the given data?

I have some data as given below: u=[-30 30 -50 50];% desired vector low = [-90 -90 -90 -90]; up = [90 90 90 90]; b = low + (...

5 months ago | 0 answers | 0

### 0

answersQuestion

How to merge the three mat files?

I have three mat files. I wan a new mat file to which I want to copy the data of all these 3 mat files except the variables for ...

5 months ago | 1 answer | 0

### 1

answerQuestion

How to display this whole data simultaneously?

When I run the following code, it displays the data in such a way that it shows the 1st 9 columns in one screen and the remainin...

5 months ago | 1 answer | 0

### 1

answerQuestion

Why the last err is a row vector of all zeros instead of a single zero?

I want to reduce the number of variables in the following code. Also, the value of the last variable should be a single zero but...

5 months ago | 1 answer | 0

### 1

answerQuestion

How to convert the attached equations in Matlab?

I have two equations which I have attached in the attachment here. I want to convert them in Matlab code. But how? I tried but i...

5 months ago | 1 answer | 0

### 1

answerQuestion

why the arrangement of elements are changing?

I have a function fNoise() and a main.m. Both are in the attchment. When I run the main several times, some time the arrangement...

5 months ago | 1 answer | 0

### 1

answerQuestion

Why does this code give me an error?

I want to run the Wild Horse Optimizer (WHO) with my fitness function. It will give me an estimated solution "gBest". Then I wan...

6 months ago | 2 answers | 0

### 2

answersQuestion

How to get a surface plot for the given function to know how many minima are there?

I have a function whose code is given below. I want to determine whether it has one local minimum or several local minima? Fo th...

6 months ago | 1 answer | 0

### 1

answerQuestion

How to modify the 2nd code like the 1st one?

I have two codes. I want to modify the 2nd code given below like that of the 1st code given below: CODE1: u=[30 40 50 80]; %i....

7 months ago | 1 answer | 0

### 1

answerQuestion

How to vectorize the given code?

u=[1 2 40 70];b=u; [~,C]=size(b); P=C/2; M=2*C; f=1e9; c=3e8; l=c/f; K=(2*pi)/l; M=10; d_circular=l/2; a=(M*d_circular...

7 months ago | 2 answers | 0

### 2

answersQuestion

How to reduce the execution time of the given piece of code?

I have an algorithm "WHO", a function "fobjNoise" and a script "main". I run the main and I get different values of fitness for ...

7 months ago | 1 answer | 0

### 1

answerQuestion

How to tackle the given issue?

I copied the given code from the following Mathworks site: https://www.mathworks.com/help/phased/ref/phased.rootmusicestimator.s...

1 year ago | 0 answers | 0

### 0

answersQuestion

Why the given codes give errors for vector bounds but runs well for scalar bounds?

I have downloaded an algorithm BBO from the Mathworks site. I run it with my fitness function "fitVectorized1.m". I oberved the ...

1 year ago | 1 answer | 0

### 1

answerQuestion

How to use two releases of MATLAB (R2017a and R2022b) simultaneously on my laptop?

I had one relaese of MATLAB R2022b installed on my system but it is missing the optimtool. Then I treid to install R2017a, it is...

1 year ago | 0 answers | 0

### 0

answersQuestion

Why do we get different results here?

I have two functions namely "myfunAskMathworks.m" and "ByAskic.m". The latter is a modified version of the 1st one. In the 1st o...

1 year ago | 2 answers | 0

### 2

answersQuestion

The code works but it gives this warning. How to remove this warning?

In the attachment, run the "main.m" file. It works but it continuiusly gives the following warning types: Warning: Integer oper...

1 year ago | 2 answers | 0

### 2

answersQuestion

Why this piece of code gives error?

When I run the following code, it gives me error on line 19. The code is: clear;clc; c = 3e8; % signal propagation spee...

1 year ago | 1 answer | 0

### 1

answerQuestion

Why the 2nd code does not behave like the 1st code?

In the attached code of "myfunAskMathworks.m", yo and ye both are of the order 36x1 and these are correct. But in the other atta...

1 year ago | 2 answers | 0

### 2

answersQuestion

Is there a way to reduce execution time of the following because it took 6 hours and still is executing?

I have attached a file 'main.m'. I started to run main.m at 1:50pm today and still its going on executing and I don't know when ...

1 year ago | 1 answer | 0

### 1

answerQuestion

Why this code says unrecognized function u?

I had a GA code which was generated by GA in earlier MATLAB version. But I had used there global variables. Later on, I replaced...

1 year ago | 1 answer | 0