<div dir="ltr"><div>Thanks Christophe for your suggestion. I managed to solve. But later this error message appeared:<br></div><div><br></div>exec('D:\users\A_DLO_AreaTecnica\A_DLO_R&D\R&D\REM\ROMCRF\to_DLO\Input\first_opt\script_interpolazione.sci', -1)<br>at line 8 of executed file D:\users\A_DLO_AreaTecnica\A_DLO_R&D\R&D\REM\ROMCRF\to_DLO\Input\first_opt\script_interpolazione.sci<br><br>inconsistent row/column dimensions<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="margin-bottom:0.0001pt;line-height:normal"><span style="background-color:rgb(255,255,255)"><font color="#0b5394">Davide Daloisio</font></span></p><p style="margin-bottom:0.0001pt;line-height:normal"><span style="background-color:rgb(255,255,255)"><font color="#0b5394"><i>Application Engineer </i></font></span></p><p style="margin-bottom:0.0001pt;line-height:normal"><span style="background-color:rgb(255,255,255)"><font color="#0b5394"><i>SPDM - Simulation Process and Data Management<br></i></font></span></p><p style="margin-bottom:0.0001pt;line-height:normal"><span lang="EN-US"><img src="https://www.enginsoft.com/bootstrap3/images/ES_logo.png" alt="EnginSoft" width="200" height="35"> <br></span></p><p style="margin-bottom:0.0001pt;line-height:normal"><i><b><font color="#0b5394">LinkedIn</font></b></i>: <a href="https://www.linkedin.com/in/davidedaloisio/" style="color:rgb(17,85,204)" target="_blank">https://www.linkedin.com/in/davidedaloisio/</a><b style="color:rgb(11,83,148)"><br></b></p><p style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12.8px"><font color="#0b5394"><b><i>Office</i></b></font>: </span>+39 0461 979338</p><p style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:12.8px"><font color="#0b5394"><b><i>Mobile</i></b></font>: </span>+39 347 8769382<br></p><p style="font-size:12.8px;margin-bottom:0.0001pt;line-height:normal"><span lang="EN-US"><font color="#0b5394"><b><i>e-mail</i></b></font> : <a href="mailto:d.daloisio@enginsoft.com" target="_blank">d.daloisio@enginsoft.com</a></span></p><p style="font-size:12.8px;margin-bottom:0.0001pt;line-height:normal"><a href="http://www.enginsoft.com/" style="color:rgb(17,85,204)" target="_blank">www.enginsoft.com</a></p><p style="font-size:12.8px;margin-bottom:0.0001pt;line-height:normal"><a href="http://www.caeconference.com/" style="font-size:12.8px;color:rgb(17,85,204)" target="_blank">www.caeconference.com</a></p></div></div></div></div></div></div></div></div></div></div><div dir="ltr">
------------------------------------------<br>
Please, consider your environmental responsibility!<br>
Before printing this e-mail ask yourself: "Do I need a hard copy?"<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 24 nov 2020 alle ore 09:35 Dang Ngoc Chan, Christophe <<a href="mailto:Christophe.Dang@sidel.com">Christophe.Dang@sidel.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Davide,<br>
<br>
> De : users <<a href="mailto:users-bounces@lists.scilab.org" target="_blank">users-bounces@lists.scilab.org</a>> De la part de Davide<br>
> Daloisio Envoyé : lundi 23 novembre 2020 17:13<br>
><br>
> So I am writing a new matrix with two vectors that have the same timestep.<br>
> In this specific case I have a time vector with a timestep (step) of<br>
> about 2E-<br>
<br>
When you're writing:<br>
<br>
A = B(C)<br>
<br>
Where B is a matrix, then C must be a matrix of Booleans (the cells you keep or reject) or of integers (the indices).<br>
<br>
So the code<br>
<br>
t_vel(1:step:l_vel)<br>
<br>
is not valid as step is not an integer.<br>
<br>
I'm not sure what you're trying to do but I guess you should try something like:<br>
<br>
new_t_vel = t_vel(1) + step*(0:l_vel);<br>
<br>
Hope this helps<br>
<br>
--<br>
Christophe Dang Ngoc Chan<br>
Mechanical calculation engineer<br>
<br>
General<br>
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>