질문


Could anyone help me how to plot the graph for more than one variable.
code: x=[0.1 1 2 3 4] y=[0.05 0.06 0.06 0.06 0.06 ] z=[0.14 0.18 0.18 0.18 0.18] plot(x,y,'-*') plot(x,z,'-^') I want to p...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


could anyone help me to solve the issue
I want to plot the graph with respect to the following code: x=1:10 for x=1:10 y=log(x) end plot (x,y,'*') When I run ...

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


Could anyone help me how to shuffle the numbers in each column
A=[3.8723 3.6040 3.3271 3.0534 2.8094 2.6242; 0 0 0 0 0 0; ...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


Could anyone help me to display the non zero numbers with respect to each column
code: C =[ 0 254.1128 0 ; 233.3050 0 0 ; 0 0 79.3894]...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


could anyone help me to solve the issue with respect to the code
code: A=1:7 B=length(A) idx=randperm(B,1) disp(idx) the above code run one time and it displays idx value. Could anyone h...

대략 7년 전 | 답변 수: 3 | 0

3

답변

질문


could anyone help me to solve the issue in the following code
code: particles=10; users=4; dimensions=2; for particle=1:particles clusters= randi(users,1); swarm_pos = rand(...

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


could anyone help me to solve the following issue in the code:
code: a=[ 3.9035 4.4602 4.6417 3.8581 4.0078; 4.2688 4.4651 3.8681 4.2601 3.8822; 4.6194 ...

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


how to count the number of non zero elements present in each row and column.
If a=[3.6910 4.5873 0 0 0; 0 7.2707 0 0 3.7516; 0 0...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


could anyone help me how to randomly select the values.
I am having b= 1 3 4 5 8 9 10 11 13 15 I want to randomly select any 5 va...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


could anyone help me to solve the issue in the following code.
When i run the code it executes and gives me the result.But what i actually need is AA and BB should not contain any zeros. Cou...

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


could anyone help me how to check the idx position containing value is not equal to zero
my code generates idx =[2 5 7 12 15] Before i want to proceed i need to check whether the above mentioned position contain zero...

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


Could anyone help me how to randomly display the values in the selected places
Could anyone help me how to randomly display the values in any of the selected places 1 3 4 5 8 ...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


could anyone help me to solve the issue
I am having a matrix size(4,8) which is having a combination of zero and non zero values. could any one help me how to display...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


Could anyone help me to solve the issue in the following code:
code: a=[4.1288 5.2574 0 4.9757 3.0069; 0 3.7672 4.7411 3.4989 0; 4.7132 ...

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


Could anyone help me to solve the following issue.
I am trying from today morning but unable to get the desired result. I am having matrix a =[ 4.7908 5.0104 5.1329 5.3...

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


Could anyone help me how to solve the following issue with respect to the following code
code: a= [4.7908 5.0104 5.1329 5.3186 5.3094 5.3070 5.4452 5.5001; 0.0958 0.0994 0 ...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


Could anyone help me to solve the following issue
Code: a = [1 2 3 4 5; 6 7 8 9 10] a_rand = a(randperm(length(a))) When i run the above two commands it executes and giv...

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


could anyone help me to solve the following issue
A=[4.7908 5.0104 5.1329 5.3186 5.3094 5.3070 5.4452 5.5001; 0.0958 0.0994 0 0 0...

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


Could anyone help me how to display the top three highest values in each column and display the other values to be zero.
I am having a matrix A= [2.3433 2.8950 2.9967 3.8753 3.9190 3.9104 3.9563 3.9525; 0.5167 0.4839 ...

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


could anyone help me how to select four maximum values of each row in a matrix size(10,8)
I am having a matrix of size(10,8) (% 10 rows and 8 columns) I want to select 4 maximum values from each row by having the resu...

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


Could anyone help me how to solve the following issue
i am having the matrixA= [3.1110 3.5665 3.5816 3.6923 4.2398 4.3484 4.3399 4.3447; 0.7787 0.5452 ...

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


how to generate numbers from 1 to 5 with respect to 1 row versus 10 columns.
could anyone help me how to generate numbers from 1 to 5 repeatedly in a randon manner with respect to 1 row versus 10 columns.

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


Could anyone help me how to solve the following issue.
I am using the command line randi([1,5], 1, 10) to generate numbers with respect to single row versus 10 columns. when i ru...

대략 7년 전 | 답변 수: 3 | 0

3

답변

질문


how to remove 0 while plotting the graph.
I want to plot the graph such that the x axis and y axis needs to start with 1. I tried with the following command xlim([1,12]...

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


could anyone help me why the command line execution is getting displayed in the command window while having semicolon at the end of the statement.
I have run my matlab code having semicolon at the end of each matlab command. If i used semicolon that command execution should...

대략 7년 전 | 답변 수: 2 | 0

2

답변

질문


could anyone help me to solve the following issue.
code: A=partitions(4,3) total_number_of_partitions = length(A) idx=randperm(total_number_of_partitions,1) ...

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


could anyone help me to solve my question
As i am unable to get the answer i am asking it again. I am having two matrices A=[0.6399 0.8965] and B=[ 0.7684 0.0120; ...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


could anyone help me to overcome the error in the following code.
code: A=[ 0.7684 0.0120; 0.5333 0.9666; 0.0684 0.8322; 0.1996 0.4453] B=[0.6399 0.8965] if siz...

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


could anyone help me how to reshape the matrix.
I am having two matrices A=[3x2] and B=[1x2] i want to reshape the size of A such that it should be equal to B,which mean A sho...

대략 7년 전 | 답변 수: 1 | 0

1

답변

질문


could anyone help me how to check the size of bigger matrix and run the code accordingly.
I am having two matrices of different sizes A and B generated by the code. When I run the code in some cases, size of A will be...

대략 7년 전 | 답변 수: 1 | 0

1

답변

더 보기