Risposto 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...
Risposto 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) ...
oltre 10 anni fa | 0
| accettato
Risposto 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...
Risposto 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
oltre 10 anni fa | 1
| accettato
Risposto Removing NaN from matrix
If all columns contain n rows of NaN values, then you could remove them by using:
temp(isnan(temp(:,1)),:) = []