Domanda


Filtering the Content of an Array
Suppose I have an array, arr with contents as follow: A B C D 1 3 2 3 1 4 1 2 ...

oltre 11 anni fa | 1 risposta | 0

1

risposta

Domanda


Unique Rows in Cell Array
Suppose my problem requires me to use a cell array and the content is as such: (Please forgive my bad coding method. I just want...

oltre 11 anni fa | 1 risposta | 1

1

risposta

Domanda


Generating a number with specific number of times.
Is there any better way to perform these in matlab? eg: i) Generating a number with specific number of times. a=[1 2 3...

oltre 11 anni fa | 1 risposta | 0

1

risposta

Domanda


Indexing Based On Cell Array
randvar=cell(50,1); for h=1:50 randvar{h}=zeros(10,4); randvar{h}(:,1)=randi(10,10,1); randvar{...

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


Of Cell Arrays & Sort
Greetings, for i=1:5 x{i}=i end for j=1:7 y{j}=j end merge_twocell = [x y] Now say I ...

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


Cell Arrays Graph Plot
Thank you for your attention. Kindly refer to the code excerpt. (It's the most concise version of code that I have written) ...

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


Plotting a simple line graph from cell array
Greetings, I am trying to plot a 2D-line graph from the contents of a cell array but I am not able to achieve it. A simple code ...

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


Transforming Result to Meaningful Information
I have a 5x4 cell array with contents as such:- 14 2 5 10 27 1 2 3 10 2 9 4 45 5 9 9 2 1 4 10 I then impor...

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


Transforming Result to Meaningful Information
Suppose I have a cell array as such:- a=cell(5,1); for i=1:5 a{i}=i end I have an excel file with 2 col...

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


Stopwatch
I'm using the function tic and toc to measure the duration of an evaluation and I get *1.425484891851347e+03* as my value. Ho...

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


Alternative to cell2mat
I have a cell array, f with contents in it. Is there a way to sort the contents of the cell array using *[B,IX]=sort*(f) ...

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


For-Loop Algorithm
Can anybody help me with this? A = cell(10,1) %Cell Array with 10 Rows and 1 Column B is another cell array with contents...

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


Retrieving Arrays
Suppose I have 4 cell arrays with 4 matrices in each cell array; A{1}=[1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4; 4 8 12 16] ...

circa 13 anni fa | 1 risposta | 0

1

risposta

Domanda


Variable Conversion
for i=1:10 A=zeros(100,4); A(:,1)=randi(100,100,1) %Course(1) A(:,2)=randi(5,100,1) %Day(2) A(:,3)=randi(1...

circa 13 anni fa | 1 risposta | 0

1

risposta

Domanda


Adding Penalty for Violation
I have this code snippet that generates a matrix with the notation of chr(:,:,i) for i=1:10 A=zeros(100,4); ...

circa 13 anni fa | 1 risposta | 0

1

risposta

Domanda


Finding Duplicate Values per Column
Greetings, suppose *Column* A has these values - 7 18 27 42 *65* 49 54 *65* 78 82 8...

circa 13 anni fa | 5 risposte | 2

5

risposte