What command whould i use?
hi all, im not sure if this is the right place to ask, but i hope so ^^
im looking for an solution for my problem. im currently working in Matlab with an while loop witch calculates something for me, but he need's to do this 10000 times, so i made an while loop for it. so in the of the round of the loop it for example the number 10. im looking for an way to save this number.
the code i wrote is this (note: the ____ are just to make the reading fo the matrix easier, i left them out in the orignal code)
R = 12000
C = 1.6e-9
n = 0
%the while loop
n = n+1;
%insert of matrix 1
M1 = _[0___________(2/R)+(1/tRC)_(-1/R);
%insert of matrix 2
M2 = __[10/R;
%calculate unknown values in the matrix
M = M1\M2
Vin = 10
%grab the value i need or my calculation
H = Vout/Vin
so, now im looking for an way to store the value of H so i can plot into an graph later, any ideas how i can do this?