Answered
How to assign negative values to a variable
V = -60 am = (0.01*(V+50))/(1-exp(-(V+50)/10)) am(V) in MATLAB means that you want to access the V-th index in the array...

9 years ago | 1

Answered
How can I count the values with the threshold value in a vector in MATLAB?
s1 = length(find(v1 < thres)); % count less than threshold s2 = length(find(v1 > thres)); % count greater than threshold ...

9 years ago | 0

Answered
FOR loop with IF condition alternative
Try this I = [1:1:10; 10:10:100]'; I(2,:) = 0; I(8,:) = 0; I(9,:) = 0;

9 years ago | 0

| accepted

Answered
what is error actually in my code, any one solve this?
A for loop will repeat a statement for a specified number of times. The line for k=[0.01,0.001,0.0001,0.00001] should be...

9 years ago | 0

Answered
creating matrix with iteration
Try this code, but you have to specify n for the number of rows. A = zeros(n,2); A(:,1) = 3; for i=1:n A(i,2) ...

9 years ago | 0

| accepted

Answered
select row in excel
I would use the code below to read the data into MATLAB. [~,~, raw] = xlsread('filename.xlsx') raw will be a cell arr...

9 years ago | 0

Answered
Simultaneously Merging and Editing multiple text files
I did a similar task using Excel file. My approach was to make an output file and read the last row of that output file and tell...

9 years ago | 0

Answered
Requires more input arguments to run
What did you type before you get that error message? You need to define the values for t and theta_hat_vec

9 years ago | 1

| accepted

Answered
Removing NaN from matrix
If all columns contain n rows of NaN values, then you could remove them by using: temp(isnan(temp(:,1)),:) = []

9 years ago | 0