I am Sadiq Akbar, a keen learner in Matlab

Answered

How to write a code for the following?

my code is as follows: u=[1 2 3 4]; b=[1 2 3 4]; [~,C]=size(b); P=C/2; M=4; N=3; Mt=M+N-1; % xo vector xo=zeros(...

How to write a code for the following?

my code is as follows: u=[1 2 3 4]; b=[1 2 3 4]; [~,C]=size(b); P=C/2; M=4; N=3; Mt=M+N-1; % xo vector xo=zeros(...

3 jours ago | 0

Answered

How to write a code for the following?

I tried my own code for this but it is very long and not dynamic. I mean to say, ther are following points that weaken this cod...

How to write a code for the following?

I tried my own code for this but it is very long and not dynamic. I mean to say, ther are following points that weaken this cod...

3 jours ago | 0

Question

How to write a code for the following?

I have two vectors u=[u1 u2 u3 u4]=[1 2 3 4]; and b=[b1 b2 b3 b4]=[1 2 3 4]; For M=4 and N=3, I want a to get a row vect...

3 jours ago | 2 answers | 0

Question

how to plot it?

I have the following code. I want a plot between var1 vs e where var1 is along x-axis and ranges from 0 to 10. th=pi/180; b=[v...

23 jours ago | 1 answer | 0

Question

Error in entropy function

I use the entropy function given belwo for my data, but Matlab gives me an error. e=entropy(x,'shannon') Matlab gives me this...

4 mois ago | 1 answer | 0

Question

How to put a preview figure window in a main figure window

I have a code that gives me the plot of my data. I want to put the same plot figure as a preview in top left corner of the same ...

5 mois ago | 1 answer | 0

Question

how to make intervals in a bar graph

Suppose I have some people and they are of different weight, e.g. weight in Kq: 40-45 45-50 50-55 55-60 60-65 No. ...

5 mois ago | 2 answers | 0

Question

how to get a cdf plot of my data

I have run Flower Pollination Algorithm 100 times and have got readings of fitness values. The values of my fitness are as follo...

5 mois ago | 1 answer | 0

Question

How to overwrite labels and data in an excel file?

If I have an Excel file having labels in columns A1,B1,C1,D1,E1,F1,G1,H1,I1 and J1. Below the labels are numeric data. Now if I ...

5 mois ago | 1 answer | 0

Question

How to export a figure into MS Word?

If I have 8 figures opened in Matlab. How can I export these figures into an MS Word document?

5 mois ago | 1 answer | 0

Question

how to know the dimension of a figure window and then draw my own according to same dimension

If I have a figure window which is open. How can I know its dimesnion? I mean how can I know its size (length and width)? Once I...

5 mois ago | 1 answer | 0

Question

how to arrange vectors in descending order?

I have 100 vectors of size 100x8 each as is given in the attachment. I want to arrange them in descending order row-wise only.i....

5 mois ago | 2 answers | 0

Question

How to draw a histogram of my data?

I have two vectors a and b, where they are as follows: b=1:100; a=1e-18:1e-15; I want to draw a histogram of them such that a...

5 mois ago | 1 answer | 0

Question

MSE and RMSE of a matrix

I have a reference vector u of size 1x8. In this matrix the 1st four columns are voltage readings and last four columns are curr...

5 mois ago | 1 answer | 0

Question

How to sort a vector according to another vector

I have a desired vector u of order 1x6 i.e. one row and 6 columns. Likewise I generate another random vector of same size 1x6. T...

5 mois ago | 1 answer | 0

Question

How to get a random vector whose elements arrangement is the same as that of my desired vector

If I have a desired vector u=[3 1 5 105 155 50]. Now I want to genrate 10 random vectors of the same size as above u. Then I w...

5 mois ago | 2 answers | 0

Question

elements order is not same in estimated vector as in my desired vector

I have an m file that is as follows: half_1st = 1:3; %half_1st = 1:3; half_2nd = 4:6; %half_2nd = 4:6; dim...

5 mois ago | 0 answers | 0

Question

problem with m file

I have written the following m file, but gives me error instead of plotting the data. The error I get is:Error using plot Vecto...

5 mois ago | 1 answer | 0

Question

To store Output of a user defined function in an array

Suppose I have a user defined function which has only one input "b" and one output argument "e", e.g. function e=user_defined(b...

6 mois ago | 1 answer | 0

Question

How to present our data in different graphs

(A) I have a desired vector u=[1 2 3 4]. I used an algorithm and that algorithm estimated a best solution for my desired vector...

11 mois ago | 0 answers | 0

Question

My Excel writing program does not stop

I have two arrays of vextors V1 and V2. Array V1 has 100 row vectos and array V2 has 100 row vectors. i,e, each vector is a row ...

environ un an ago | 1 answer | 0

Question

How to write a matlab program to arrange my workspace data?

I have a desired vector u=[0.5 1 2 40 70 90]. I give this vector to a metaheuristic algorithm and I run the algorithm. The algo...

environ un an ago | 1 answer | 0

Question

How to arrange a vector elements on the pattern of a reference vector

I have a reference vector u=[0.5 1 1.5 0.6981 1.3962 1.5707]. I want to estimate this vector via an algorithm. For that I am...

plus d'un an ago | 0 answers | 0

Answered

How to re-arrange swapped elements in an estimated vector as compared to a reference vector

half_1st = 1:3; half_2nd = 4:6; tol = 0.1; u=[0.5 1 1.5 0.6981 1.3962 1.5707]; nn=0; for n=100:199 nn=nn+1; ...

How to re-arrange swapped elements in an estimated vector as compared to a reference vector

half_1st = 1:3; half_2nd = 4:6; tol = 0.1; u=[0.5 1 1.5 0.6981 1.3962 1.5707]; nn=0; for n=100:199 nn=nn+1; ...

plus d'un an ago | 0

Question

How to re-arrange swapped elements in an estimated vector as compared to a reference vector

I have a reference vector u=[0.5 1 1.5 0.6981 1.3962 1.5707]. I estimate several vectors of the same size using a metaheurist...

plus d'un an ago | 3 answers | 0

Question

Performance metrics of an algorithm

I have a desired vector u=[1 2 pi/4.1 pi/4]. I am using a metaheuristic algorithm BOA (Butterfly Optimization Algorithm). I esti...

plus d'un an ago | 1 answer | 0

Question

MSE, RMSE and any other useful evaluation metrics

If I have 100 vectors of error and each error vector has got four elements, then how can we we find its MSE, RMSE and any other ...

plus d'un an ago | 1 answer | 0

Answered

RMSE - Root mean square Error

If I have 100 vectors of error and each error vector has got four elements, then how can we we find its MSE, RMSE and any other ...

RMSE - Root mean square Error

If I have 100 vectors of error and each error vector has got four elements, then how can we we find its MSE, RMSE and any other ...

plus d'un an ago | 1

Question

I have 10 rows and four columns in variable two. I want to write one row in one cell, 2nd row in 2nd cell, 3rd row in 3rd cell and so on into an Excel file using Matlab. How can I do this?

I have a Matrix in Matlab Workspace having floating point data. The order of the matrix is 10x4. I want to write 1st row in A1 c...

plus d'un an ago | 1 answer | 0

Question

How to solve the problem in deepNetworkDesigner when outputs are more than input.

[x,t] = simplefit_dataset; Using this how can I enter my own inputs and traget data. e.g. if my input=[1; 2; 3; 4; 5]; and my t...

plus d'un an ago | 0 answers | 0