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...
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) ...
10 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...
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
10 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)),:) = []