# Robert Demyanovich

**Statistics**

RANK**181 638**

of 246 836

REPUTATION**0**

CONTRIBUTIONS

**31** Questions

**1** Answer

ANSWER ACCEPTANCE **
67.74%
**

VOTES RECEIVED**1**

RANK

of 17 218

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Question

Output the amount of time it took to run a simulation

My simulations take a long time. I would like to be able to measure the amount of time it took for a simulation to run. I woul...

5 dagar ago | 2 answers | 1

### 2

answersQuestion

Semilog plot that includes curve fit

I have used the curve fitting app to generate code to plot the data and the curve fit. I am new to MatLab but it looks like the ...

17 dagar ago | 1 answer | 0

### 1

answerQuestion

Semilog plot in curve fitting tool

I am new to using the curve fitting tool. I have some data that I want to fit a curve to. I have clicked on the curve fitting ...

17 dagar ago | 1 answer | 0

### 1

answerQuestion

Ignore zero values when searching for minimum value in column of matrix

I have the following code to find the minimum value in the last column of matrix cANALY: [tnValueAnaly, tnRowAnaly] = min(cANAL...

18 dagar ago | 1 answer | 0

### 1

answerQuestion

Find the maximum value of a column in a table

I have a spreadsheet that is read into a Matlab table. I need to get the maximum value in column 1. I thought the following wo...

ungefär en månad ago | 1 answer | 0

### 1

answerQuestion

Highest row number in a table

I am reading an excel spreadsheet into a table in MatLab. The number of rows and columns can vary. I need to find the maximum ...

ungefär en månad ago | 1 answer | 0

### 1

answerQuestion

Scan a row and replace any values equal to zero

I need to replace any zero values in the columns of a specific row, i +1, of a matrix, cA, with a specific value, say 1E-07. How...

ungefär 2 månader ago | 1 answer | 0

### 1

answerQuestion

Sum of Least Squares

I have a table, Check, where I would like to subtract column 6 from column 5 (to obtain a residual) and then square the residual...

ungefär 2 månader ago | 1 answer | 0

### 1

answerQuestion

Dimensions of arrays being concatenated are not consistent.

I have no idea why I am getting an error in the following code: FluorDataInd = round(i/TimeFactor)+1 x=[ConcValues{1,1} Co...

2 månader ago | 1 answer | 0

### 1

answerQuestion

Select a record from a table where an exact value is not provided

I have a table which I will be loading with Excel data (I haven't ever done that, but I think I can just paste data in). My que...

2 månader ago | 1 answer | 0

### 1

answerQuestion

Initializing all rows with one set of values in one half and another set in the other half

The following line of code works for initializing the first row of an array: cA(1,:)=[cA0*ones(1,(N-1)/2+1),Kw/cB0*ones(1,(N+1)...

2 månader ago | 2 answers | 0

### 2

answersRetrieve curve fit coefficients

I tried using coeffvalues, but all it does is store a bunch of text including the values that I want in a 1x1 something or other...

3 månader ago | 0

Question

Retrieve curve fit coefficients

I am using a 4PL function written by someone and available from a MatLab search. I don't understand how to store the curve fitt...

3 månader ago | 2 answers | 0

### 2

answersQuestion

stop execution of code to check results

Is there a way to stop code from executing so that results can be checked. For example something like if i == 100000 Stop...

3 månader ago | 3 answers | 0

### 3

answersQuestion

Set upper and lower bounds of for loop

I would like to set the upper and lower bounds of a for loop based on the values of simulation parameters. I'm not sure how to...

3 månader ago | 1 answer | 0

### 1

answerQuestion

How to handle NAN when summing

I have the following code: for k = 1:N W(i,k)=W1*(cB(i,k))^W2; Fluor(i,k)= cB(i,k)*W(i,k)*dx; end FL = su...

3 månader ago | 1 answer | 0

### 1

answerQuestion

How to sum a portion of a row in a table and get a single value

How do I sum a portion of a row in a Matlab table and get a single value? For example assume that the row number is i and the c...

3 månader ago | 1 answer | 0

### 1

answerQuestion

if statement with greater than and less than

The following doesn't seem to be working as intended: if 0 <= MBPosition <= 2*Delta ; Even though MBPosition is within the ran...

5 månader ago | 2 answers | 0

### 2

answersQuestion

if statement for two arrays

I am programming a chemical reaction. I want to make sure that the amount of product produced does not exceed the amount of ava...

5 månader ago | 1 answer | 0

### 1

answerQuestion

Run "if" logic on a row

I have the following code for the reaction interface between acid and base (A-acid, B-base,S-salt): dS=k1*cA(i+1,:).*cB(i+1...

5 månader ago | 1 answer | 0

### 1

answerQuestion

Matlab less than comparison

The Matlab documentation is confusing me. I want to test each cell in a specific row of an array (cA). If that cell has a valu...

5 månader ago | 2 answers | 0

### 2

answersQuestion

Include value requirement in array multiplication

I currently have the following line of code: dS=k1*cA(i+1,:).*cB(i+1,:)*dt dS is the amount of product S resulting from a reac...

5 månader ago | 2 answers | 0

### 2

answersQuestion

if statement with ge and &

I don't understand why the following line is producing an error: if j ge 2 & cANALY(i+1,j-1) < 0 j is a scalar and cANALY(...

6 månader ago | 1 answer | 0

### 1

answerQuestion

"Highlight" a vertical gridline on a figure

I have a figure where the range of x values starts at a negative value and goes to a positive value. I would like to "highlight...

6 månader ago | 1 answer | 0

### 1

answerQuestion

set xticks by calculation but also force 0 to be displayed

I am setting xticks manually based on user inputs for distance. The plot will span the distance range; for example -1.3E-06 to ...

6 månader ago | 2 answers | 0

### 2

answersQuestion

string for figure title ignores text after variable

I have the following code while creating a figure: titlestr=sprintf('Time=%6.5f',t(1), 'sec'); title(titlestr); No error...

6 månader ago | 1 answer | 0

### 1

answerQuestion

min function on two arrays

I've read the documentation on the min function, but still don't understand how it works on two arrays. I have the following: ...

6 månader ago | 1 answer | 0

### 1

answerQuestion

Sum function on part of an array

I don't understand what the following sum function does. mA=zeros(M,1); mA(1)=sum(cA(1,:))*dx; mA is a column vector, s...

6 månader ago | 1 answer | 0

### 1

answerQuestion

Initializing 1/2 of a row with one value and the other half with another

I don't understand why the following works. It initializes row 1 of the array c with values of 1 in roughly the first half of t...

6 månader ago | 2 answers | 0

### 2

answersQuestion

Find the first element of a column in a matrix that has a value equal to zero

I have an m by n matrix and I'm interested in the nth column. Initially all of the values in the nth column are greater than ze...

6 månader ago | 1 answer | 0