Community Profile

photo

Naime


64 2018 年以降の合計貢献数

Naime's バッジ

  • Thankful Level 4

詳細を表示...

貢献した分野
表示方法

質問


generate Gaussian noise with certain mean and variance
I want to produse Gaussian noise. So, I use normrnd. m=0.17; n=normrnd(6.*m,m.*m); I think the n should be sometimes negative...

30分 前 | 0 件の回答 | 0

0

回答

質問


change the iteration in for loop
I have For Loop that calculate c. Sometimes c become nan or big number. When I get big amount or Nan for c, I want to repeat th...

4日 前 | 2 件の回答 | 0

2

回答

質問


find Nan in cell
I want to find nan element in A, A={[],[],[31],[2,1]}; %first case A1={[],[2],[3],[6]}% second case I used this code, but di...

8日 前 | 1 件の回答 | 0

1

回答

質問


extract the most repeated element of a cell array
A={[],[18],[14],[],[],[],[14],[],[14],[18]}; I want to get most repeated element in A, (except nan). result should be B=14 f...

9日 前 | 1 件の回答 | 0

1

回答

質問


use Tic Toc for function
I want to calculate simulation time of only bigest length of A. A={[1,2],[1,2,4,5,6,7],[4,8,2],[1,3,5,7]} [~,index] = max(cell...

11日 前 | 1 件の回答 | 0

1

回答

質問


omit nonzero elemnt in cell
A={[3,4],[8,9],[1,2],0,0,0}; A(cell2mat(A)==0)={[]}; I used this code, but have error Error using cat Dimensions of arrays b...

21日 前 | 2 件の回答 | 0

2

回答

質問


find zero and nonzero elemnt in cell
A={[21],[0],[32],[4],[60],[0],[0]}; B=A; temp=cell2mat(A); temp_1=find(temp==0); B=cellfun(@(m,y) y(m)==0.1,temp_1,A, 'Unifo...

約2ヶ月 前 | 1 件の回答 | 0

1

回答

質問


put number in cell
A={[21],[],[32],[4],[60],[]}; length_A = cellfun(@(m) length(m),A,'uni',0); B= cell(1, size(A,2)); B(cell2mat(length_A)) = 0....

約2ヶ月 前 | 2 件の回答 | 0

2

回答

質問


solving memory problem for this code
I run this code for X that has size 42*12 if size(X,2)==1 M=0; end n = size(X, 1); rank_X = rank(X); ...

2ヶ月 前 | 1 件の回答 | 0

1

回答

質問


find largest magnitude in array
A=[-0.1;1;-5;-0.8;-0.4]; tto=find(A == max(abs(A))) tt=find(A ~= max(abs(A))) I want to find index of largest magnitude in ar...

2ヶ月 前 | 1 件の回答 | 0

1

回答

質問


odd and even index in cell
A={[113],[112],[42],[29],[113],[69],[86],[9],[0]}; B={[18],[14],[5],[39],[27],[11],[9],[7],[0]}; I want put even index in A to...

3ヶ月 前 | 1 件の回答 | 0

1

回答

質問


length of arrey in cell and remove 0
A={[113],[112],[42],[29],[113],[69],[86],[0],[0]}; B={[18],[14],[5],[39],[27],[11],[9],[0],[0]}; C=cellfun(@(m,u) length(m)+le...

3ヶ月 前 | 1 件の回答 | 0

1

回答

質問


how many times specific number repeated in cell
E=[1 2;1 5;2 3;2 4;2 5;3 4;4 5;4 7;4 9;5 6;6 11;6 12;6 13;7 8;7 9;9 10;9 14;10 11;12 13;13 14]; N=(1:max(E(...

3ヶ月 前 | 1 件の回答 | 0

1

回答

質問


select specific row in a matrix
A=[1;2;237;250;800;805]; B=[1,1,0.5;2,1,2;3,1,1;4,1,3;16,1,1;237,4,5;240,2,3;250,2,4;280,6,7;800,4,5;805,7,8]; I want to selec...

3ヶ月 前 | 1 件の回答 | 0

1

回答

質問


omit zeros from matrix and have the shape of matrix
A=[0,0;0,0;0,0;1,2;2,5;5,7;7,8]; I want to omit zero from this matrix. result should be New_A=[1,2;2,5;5,7;7,8]; I use this c...

3ヶ月 前 | 1 件の回答 | 0

1

回答

質問


make a Sequence number
Layout=[1,1,1;2,2,2;3,2,1;91,3,1;95,4,2;98,4,0.5]; % first column is node, second column is x coordination, third y coordination...

3ヶ月 前 | 1 件の回答 | 0

1

回答

質問


select random row inside the cell
A={[1,4,6;6,5,4;1,2,4],[1,3;5,4],[1,2;1,7;6,8]}; number_of_choosen_row=1; choosen_row=cellfun( @(m) datasample( m,number_of_ch...

3ヶ月 前 | 1 件の回答 | 0

1

回答

質問


find how many times same element is repeated
A=[9,8;7,6;1,2;2,4;3,4;3,4;4,7;6,7;8,6;9,8;7,6]; a = sort(unique(A,'rows'),2); a is [1,2;2,4;3,4;4,7;6,7;6,7;6,8;8,9]; I want...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


omit same element inside cell
A={[1,2,3,4],[4,2,3],[1,2,5,6,78,9],[1,2,3,4],[1,2,5,6,78,9],[4,2,3],[5,6,7]}; c=cellfun(@(x) unique(x),A,'UniformOutput',false...

4ヶ月 前 | 2 件の回答 | 0

2

回答

質問


change a value in matrix
A=[1,0,5,3,0;2,0,6,0,9;0,0,5,3,1]; idx = randperm(size(A,1),1); [~,col,val]=find(A(idx,:)); changed=val+0.5*rand; I want to...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


How could I change this Python code to Matlab?
This is python code. I want to write this code in matlab. is there any tools for that? # Python program to detect cycle # ...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


keep index of omited array
A={[1,2,3,4,5],[1,3],[1],[1,3,4,5,6,7,89,0],[1,3],[1,3,4,5],[4,6]}; N = cellfun(@length,A) ; A(N==2) = []; I want to have in...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


add zero elemant inside cell
A={[95],[112],[98],[84],[69],[121],[108]}; B={[1,2,4],[4,3],[6,9,98],[3,7,88],[2,9,1],[55,7],[1,4],[0],[0]}; if size(A,2)<size...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


find in cell array
A={[1,2,3,4,5],[1,3],[1],[1,3,4,5,6,7,89,0],[1,3],[1,3,4,5],[4,6]}; MM = cellfun(@(m)find(numel(m)==2),A,'uni',0); b= cellfun(...

4ヶ月 前 | 2 件の回答 | 0

2

回答

質問


save result in while loop
I have a this code index_A=[]; while (ibd <= max_it) i=i+1; index_A =[tt;index_A] end in i=1; index_A=[19...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


save result in cell
I have a for loop (4 iteration) and A is changing in each loop. A in first loop (for example) A=[106] A in second loop A=[]; ...

4ヶ月 前 | 2 件の回答 | 0

2

回答

質問


find and omit element from array
vv=(1:100)' A=[3;8;21;44;60;79;99] f_vv=find(vv==A); vv(reshape(f_vv,length(f_vv),1))=[]; I got this error Dimensions of ar...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


make cell and put number on it
n=20; I want to make a cell from 1 to n result should be result={[1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12],[13],[1...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


general code for sorting inside cell
ref=69; A={[1,2,3,12],[19,34,37,15,33,35,36],[19,20,21,22,23,5,8,11,13,15,17],[37,38,65,40,42,49,66],[5,11,3,12],[69,19,21,22,2...

4ヶ月 前 | 1 件の回答 | 0

1

回答

質問


merge cell data in cell
A={[69,19,21,22,23],[69,70,75]}; B={[19,34,37,15,33,35,36],[19,20,21,22,23,5,8,11,13,15,17]}; C={[37,38,65,40,42,49,66],[5,11,...

4ヶ月 前 | 2 件の回答 | 0

2

回答

Load more