# Sadiq Akbar

I am Sadiq Akbar, a keen learner in Matlab

**Statistics**

RANK**14.530**

of 276.229

REPUTAZIONE**2**

CONTRIBUTI

**107** Domande

**5** Risposte

ACCETTAZIONE DELLE RISPOSTE **
49.53%
**

VOTI RICEVUTI**1**

RANK

of 125.966

CONTRIBUTI

**0** Problemi

**0** Soluzioni

PUNTEGGIO**0**

NUMERO DI BADGE**0**

CONTRIBUTI**0 Post**

CONTRIBUTI**1** Pubblico Canale

VALUTAZIONE MEDIA**30**

CONTRIBUTI**0** Punti principali

NUMERO MEDIO DI LIKE

**Content Feed**

Domanda

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...

25 giorni fa | 2 risposte | 0

### 2

risposteDomanda

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...

28 giorni fa | 2 risposte | 0

### 2

risposteDomanda

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...

circa un mese fa | 1 risposta | 0

### 1

rispostaDomanda

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...

circa un mese fa | 2 risposte | 0

### 2

risposteDomanda

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 ...

circa un mese fa | 1 risposta | 0

### 1

rispostaDomanda

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...

circa un mese fa | 1 risposta | 0

### 1

rispostaDomanda

Why does this code give error?

I want to implenet timeit() function to find the machine time for the execution of the m-file 'fpa1.m'. But when I run the attac...

circa un mese fa | 1 risposta | 0

### 1

rispostaDomanda

why estimating 3 values takes longer time than estimating 4 values?

In the attached code, when we estimate 2 values of u, it takes less time than the case where we estimate 3 values of u? It seems...

circa 2 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How to find the total memory used during the execution of the code?

To find the efficiency of my algorithm, I searched this site: URL: https://www.kdnuggets.com/2022/09/calculate-algorithm-effici...

circa 2 mesi fa | 2 risposte | 0

### 2

risposteDomanda

How to find the efficiency of an algorithm?

I have an algorithm fpa1. How can I find its efficiency? All the required files are in the attachment. You can run the main file...

circa 2 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How can we reduce the execution time of this whole code?

I want to minimize the "execution time" of the code given in the attachment. You can run the m file "main".

circa 2 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

Why legend is not displayed?

How can I display the legend at my desired side outside the figure? I run the following code but it doesn't work: clear all; cl...

circa 2 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How to display a message as flashing and in my desired color and font size?

I want to display the following message in flashing and in my desired color and font size: " Yes, the error is the same " I ...

circa 2 mesi fa | 2 risposte | 0

### 2

risposteDomanda

How to remove all for-loops with vectorization?

I have the following piece of code. I have posted similar codes earlier also and therefore 1st I tried myself to vectorize it bu...

2 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How to replace all row vectors except 1st according to the difference?

I have a matrix named as 'two' of size 100 x 4. I have also a singe row vector u=[-55 55 65 -65]; Let we find the error ...

2 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How to replace the array data in workspace data?

I have three Mat files namely '2sn0dB.mat', '3sn0dB.mat' and '4sn0dB.mat'. All of them have array 0f size 100 x 1 and having sam...

2 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How to replace the values of a vector from desired location to its end?

I have three vectors a, b and c given below. I want to replace all the values of 'a' from my desired location say for example fr...

3 mesi fa | 2 risposte | 0

### 2

risposteDomanda

How to arrange a matrix in descending order w.r.t rows?

If we have a large matrix and we want to arrange it in descending order i.e., the largest row shoud come on top, then 2nd larges...

3 mesi fa | 2 risposte | 0

### 2

risposteDomanda

How to find the vector b if we know the RMSE?

If we have two vectors given by: a=[3,6,8,20,35,45]; b=[3.0343, 6.2725, 8.5846, 18.3781, 34.2025, 44.9699]; Then its Mean Squ...

3 mesi fa | 2 risposte | 0

### 2

risposteDomanda

How to replace all for-loops ?

I had posted a function here for vectorization. Now this is the same function and even I tried myself to replace all for-loops l...

3 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How to recover Mat data?

I had saved my worksapce data with the name 'abc'. This had many variables some of which were scalars and some of which were vec...

3 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

I don't understand why does it give error?

I downloaded the following code from Mathworks site whose URL is : URL: https://www.mathworks.com/matlabcentral/fileexchange/52...

3 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How to vectorize this piece of code by replacing all the for-loops?

I want to vectorize the following piece of code so that it becomes fast. But M and N can be only coprime numbers and N < M alway...

3 mesi fa | 2 risposte | 0

### 2

risposteDomanda

How to reduce its execution time and why the value of e is a column vector?

I have the following piece of code. clc;clear all; c = 340; f = 3400; d = c/f/2; T = 1; ...

3 mesi fa | 2 risposte | 0

### 2

risposteDomanda

how to reduce its computing time?

u=[30 40 50 70]; b=u; [~,C]=size(b); P=C/2; M=10; xo=zeros(1,M); yo=zeros(1,M); zo=zeros(1,M); for k=1:M for i=1:...

3 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

Why does it give wrong answer?

I took a code from the Mathworks site given below: URL: https://www.mathworks.com/help/phased/ref/rootmusicdoa.html N = 10; d...

3 mesi fa | 0 risposte | 0

### 0

risposteDomanda

Why this code gives error on line 47?

I downloaded the code attached from the following URL of Mathworks site: URL: https://www.mathworks.com/matlabcentral/fileexcha...

3 mesi fa | 1 risposta | 0

### 1

rispostaDomanda

How to reduce its execution time?

I have the following piece of code. It works but takes time. How can we reduce its time to a very minimum value? u=[1 3 5 7 20 ...

3 mesi fa | 2 risposte | 0

### 2

risposteDomanda

Same code but different results-very strange?

I asked a question on December 10, 2022 on this forum. The URL of the question is: https://www.mathworks.com/matlabcentral/answ...

3 mesi fa | 0 risposte | 0

### 0

risposteDomanda

How to invoke and use GA tool in Matlab R2022b?

I typed optimtool in Matlab R2022b to invoke the GA Tool but its' not there. Can anybody guide me how to invoke and use GA tool ...

4 mesi fa | 1 risposta | 0