I have 10 different MATLAB Tables in my workspace. I wish to do the same operation to the 10 Table variables. I have written the code for 1 Table variable. Now I am wondering whether can I use a for loop to complete my work. But I don't know how to use a for loop for Table variables. Please help me.
%% Datasets from Experiments
load dataset%% Finding BHP
%converting velocity from knots to m/s
v_ms = dataset7.v_k * 0.5144;%converting outside air temperature(oat) from celcius to kelvin
oat_k = dataset7.oat_c + 273.15;%finding brake horse power
bhp = (dataset7.rpm .* dataset7.mp_hg * Ts * rHP) ./ (rrpm * rmp * oat_k);
This is my code. The dataset file has 10 Tables like dataset1, dataset2 etc.
Best Answer