Correct Matlab scripts

This commit is contained in:
Thomas Dehaeze 2025-04-15 10:00:30 +02:00
parent 3f53a5977c
commit 9baa4c04d3
4 changed files with 6 additions and 11 deletions

View File

@ -5,7 +5,6 @@ clear; close all; clc;
s = zpk('s');
%% Path for functions, data and scripts
addpath('./mat/'); % Path for data
addpath('./src/'); % Path for functions
addpath('./subsystems/'); % Path for Subsystems Simulink files

View File

@ -5,7 +5,6 @@ clear; close all; clc;
s = zpk('s');
%% Path for functions, data and scripts
addpath('./mat/'); % Path for data
addpath('./src/'); % Path for functions
addpath('./subsystems/'); % Path for Subsystems Simulink files

View File

@ -5,7 +5,6 @@ clear; close all; clc;
s = zpk('s');
%% Path for functions, data and scripts
addpath('./mat/'); % Path for data
addpath('./src/'); % Path for functions
addpath('./subsystems/'); % Path for Subsystems Simulink files
@ -97,7 +96,7 @@ for Dx = Dxs
end
end
sprintf('Actuator stroke should be from %.0f um to %.0f um', 1e6*L_min, 1e6*L_max)
disp(sprintf('Actuator stroke should be from %.0f um to %.0f um', 1e6*L_min, 1e6*L_max))
%% Compute mobility in translation with combined angular motion
% Direction of motion (spherical coordinates)
@ -232,5 +231,5 @@ for Dx = Dxs
end
end
sprintf('Fixed joint stroke should be %.1f mrad', 1e3*max(max_angles_F))
sprintf('Mobile joint stroke should be %.1f mrad', 1e3*max(max_angles_M))
disp(sprintf('Fixed joint stroke should be %.1f mrad', 1e3*max(max_angles_F)))
disp(sprintf('Mobile joint stroke should be %.1f mrad', 1e3*max(max_angles_M)))

View File

@ -3502,7 +3502,7 @@ for Dx = Dxs
end
end
sprintf('Actuator stroke should be from %.0f um to %.0f um', 1e6*L_min, 1e6*L_max)
disp(sprintf('Actuator stroke should be from %.0f um to %.0f um', 1e6*L_min, 1e6*L_max))
#+end_src
#+begin_src matlab
@ -3662,8 +3662,8 @@ for Dx = Dxs
end
end
sprintf('Fixed joint stroke should be %.1f mrad', 1e3*max(max_angles_F))
sprintf('Mobile joint stroke should be %.1f mrad', 1e3*max(max_angles_M))
disp(sprintf('Fixed joint stroke should be %.1f mrad', 1e3*max(max_angles_F)))
disp(sprintf('Mobile joint stroke should be %.1f mrad', 1e3*max(max_angles_M)))
#+end_src
* Conclusion
@ -4904,7 +4904,6 @@ end
#+NAME: m-init-path
#+BEGIN_SRC matlab
%% Path for functions, data and scripts
addpath('./matlab/mat/'); % Path for data
addpath('./matlab/src/'); % Path for functions
addpath('./matlab/subsystems/'); % Path for Subsystems Simulink files
addpath('./matlab/'); % Path for scripts
@ -4913,7 +4912,6 @@ addpath('./matlab/'); % Path for scripts
#+NAME: m-init-path-tangle
#+BEGIN_SRC matlab
%% Path for functions, data and scripts
addpath('./mat/'); % Path for data
addpath('./src/'); % Path for functions
addpath('./subsystems/'); % Path for Subsystems Simulink files
#+END_SRC