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...

oltre 10 anni fa | 1

Risposto
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 ...

oltre 10 anni fa | 0

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

oltre 10 anni fa | 0

| accettato

Risposto
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...

oltre 10 anni fa | 0

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...

oltre 10 anni fa | 0

Risposto
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...

oltre 10 anni fa | 0

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

oltre 10 anni fa | 0