Question


could anyone help me to overcome the error in following code:
code: A = 1:10; B = maxk(A,3) function function y=maxk(A,3) A=sort(unique(A,'descend')) y=A(1:3) end

5 years ago | 1 answer | 0

1

answer

Question


could anyone help me to overcome the error in the following code
Code A=rand(3,8) C=max(A,[],2) D=maxk(C,3) When i run the code i am getting error stating Undefined function or variable 'ma...

5 years ago | 1 answer | 0

1

answer

Question


could anyone help me to fix the issue.
I am having a matrix of A= (3,8) generating 3 rows with 8 columns by using the command line C=max(A,[],2) gives one maximum val...

5 years ago | 0 answers | 0

0

answers

Question


how to select highest three maximum values from each row of an matrix
A=rand(3,8) generates a matrix of 3 rows with 8 columns could anyone help me how to select highest three maximum values from e...

5 years ago | 2 answers | 0

2

answers

Question


how to select the top 5 five values in a matrix
If A=rand(5,15) whch generates 5 rows with 15 columns Could anyone help me how to select the highest 5 values in A.

5 years ago | 1 answer | 0

1

answer

Question


How to get different color with respect to an figure.
I have two figures first one with different colors and second one with one color. Could anyone help me how to get the second fi...

5 years ago | 1 answer | 0

1

answer

Question


could anyone help me to solve the issue
Input of the code are as given below: N_UE=[6]%no of users PPP =[ -0.0457 0.0814; -0.1931 2.3985; 1.8712 1...

5 years ago | 1 answer | 0

1

answer

Question


How to count the number of nonzero numbers in a row.
I having a matrix A=[ 0 0 0 0 0.4 0 0 0.3; 0.1 0 0 0.7 0 0.2 0 0 0; ...

5 years ago | 2 answers | 0

2

answers

Question


how to represent the purple color by a string value
There are 8 colors that can be specified by a string value: 'r','g','b','c','m','y','k','w'. How to specify the maroon,olive,pu...

5 years ago | 1 answer | 0

1

answer

Question


how to plot 40 different colors in matlab graph
i am plotting 200 users in a cells. Among 200 users first five users should be in one color,next five in other color,and so on ...

5 years ago | 2 answers | 0

2

answers

Question


Could anyone help to combine three matrix into single matrix.
I have three matrixes A with different number present in the first column.But the number present in second column of all matrice...

5 years ago | 1 answer | 0

1

answer

Question


how to find the index for the following code
If A=1:10,%A= 1 2 3 4 5 6 7 8 9 10 But I want to display the index of A using for loop. Could anyone help me to solve the is...

5 years ago | 1 answer | 0

1

answer

Question


how to find the indexing for the following code.
clear all; clc A=[1 2; 3 4; 5 6; 7 8; 9 10; 11 12; 13 14; 15 16]; C=size(A,1) B=1:3 D= r...

5 years ago | 1 answer | 0

1

answer

Question


how to choose the number in a random manner
A=[1 2 ; 4 5 ; 7 8 ; 10 11; 12 13; 14 15; 16 17 ; 18 19] G=size(A,1) C=1:G Could anyone h...

5 years ago | 0 answers | 0

0

answers

Question


could anyone help me how to change the number of clusters for every iteration
I am having an array of data set A=[1 2; 3 4; 5 6; 7 8; 9 10; 11 12] I want to group A into different number of clusters u...

5 years ago | 1 answer | 0

1

answer

Question


Could anyone help me how to find the seed of the centroid in a random manner.
The following code executes and gives the result. code: clear all clc centroids=2 dimensions = 2; iterations = 10; ...

5 years ago | 0 answers | 0

0

answers

Question


how to plot the graph with the required data
with respect to x axis i need to have the scale starting from 0 and ends till 1000.so i used the command line x=rand(1,1000) wi...

5 years ago | 1 answer | 0

1

answer

Question


could anyone help me how to solve the error for the following code
code: tic clc clear all close all rng default LB=[0 0 0 ]; %lower bounds of variables UB=[10 10 10 ]; %uppe...

5 years ago | 1 answer | 0

1

answer

Question


how to use more than one color for the plot with respect to the code given below
code: load fisheriris.mat plot(meas(:,1),meas(:,2),'s') the plot gives all the points to be in same color. Could anyone help...

5 years ago | 1 answer | 0

1

answer

Question


could anyone help me how to change the color of randomly distributed users within a cell
I am randomly generating 12 users within a cell with one base station. firstly all the 12 users should be in the same color at...

5 years ago | 1 answer | 0

1

answer

Answered
could anyone help me to solve the issue.
clear all; clc; user=12; particles=5; dimensions=2; for t = 1:length(user) d = zeros(user(t),1) ; Xmax=1; Y...

5 years ago | 0

Question


could anyone help me to solve the issue.
I am getting the figure when my code executes: With respect to the figure the 12 black small circle represents the number of us...

5 years ago | 1 answer | 0

1

answer

Question


could anyone help me to measure the distance between base station and users with respect to the following code.
code: user=[6]; for t = 1:length(user) Xmax=1; Ymax=1; radius=2; xsd=ones(1,user(t))*Xm...

5 years ago | 1 answer | 0

1

answer

Question


how to avoid the decimal values in fprintf
i want to display "1. particle index is 2" "2. particle index is 2" I tried with the followig command fprintf('%3d. particle ...

5 years ago | 1 answer | 0

1

answer

Question


how to plot the graph for the following result
I am getting the following result in the command window. iter = 1 1. global fitness is 1.9669 iter = 2 2. global...

5 years ago | 1 answer | 0

1

answer

Question


How to solve the error using plot stating color value must be a 3 element vector.
I am working with particle swarm optimization. In the code the following input are used centroids = 2; dimensions = ...

5 years ago | 1 answer | 0

1

answer

Question


how to load fisheriris data set by reducing the number of sample for each species
I am using fisheriris data set in my matlab code. As fisheriris contain 3 species of 50 samples each.In total it contains 150 s...

5 years ago | 1 answer | 0

1

answer

Question


Could anyone help me to fix the issue.
code: a=[1 2; 3 4; 5 6; 7 8] data=2; dimension=2; a=a(:,1+data:dimension+data); If i run this i am getting i...

5 years ago | 1 answer | 0

1

answer

Question


Could anyone help me to frame the equation in general form which needs to be implemented in matlab code.
could anyone help me how to frame all the 4 parts into one equation in general form such that P and G are (3x10) matrix.

5 years ago | 0 answers | 0

0

answers

Question


how to identify the user number with respect to the following code in the attached graph.
clear all; clc; user=2 subcarrier=4 for t = 1:length(user) radius=3 X=ones(1,user(t)) Y=ones(1,user(t)) ...

5 years ago | 0 answers | 0

0

answers

Load more