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

8 years ago | 1

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0

| accepted

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

8 years ago | 0

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

8 years ago | 0