[Scilab-users] Nightly builds
Hello, is there any possibility to get a current nightly build somewhere? Best regards Wolfgang ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Shift indices
Le 08/11/2017 à 15:07, Richard llom a écrit : Hello, is there a function available to shift indices? E.g. I have aa = [1:10] and want bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. If you need to shift i = 1:n indices by /any/ p -- not necessarily n/2 --, you may do si = modulo(i+p-1, n)+1// with n = length(i); Example: i = 1:10, p = 2; si = modulo(i+p-1, length(i))+1 --> i = 1:10, p = 2; i = 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. --> si = modulo(i+p-1, length(i))+1 si = 3. 4. 5. 6. 7. 8. 9. 10. 1. 2. Samuel ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP
Le 08/11/2017 à 14:29, David Brant a écrit : > Thanks for getting back Philippe. > > Only so.4 appeared. Checking with Nemo I have: > > libtiff.so.4 > libtiff.so.5 > libtiff.so.5.2.4 > > All have identical size and time stamps. > Nemo reports 'link to unknown' for so.4 and so.5, and 'unknown' for so.5.2.4 it looks that you don't have libtiff.so.4 on your system try download it from internet (http://www.filewatcher.com/m/libtiff.so.4.16-0.html not the best souce probably ...) and put it in the directory /usr/lib/x86_64-linux-gnu/ Best regards, Philippe ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Shift indices
Is this solution fine with you? aa = [1:10]; ix = [6:10,1:5]; bb = aa(ix) Regards, Rafael -Original Message- From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Richard llom Sent: Wednesday, November 08, 2017 3:08 PM To: users@lists.scilab.org Subject: [Scilab-users] Shift indices Hello, is there a function available to shift indices? E.g. I have aa = [1:10] and want bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. This is what I come up with: log_data2 = zeros(log_data); log_data2 = log_data(4001:size(log_data,1),:); log_data2((size(log_data,1)-4000+1):size(log_data,1),:) = log_data(1:4000,:); But I'm wondering if there is a prettier solution? Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Shift indices
See fftshift -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
[Scilab-users] Shift indices
Hello, is there a function available to shift indices? E.g. I have aa = [1:10] and want bb = 6. 7. 8. 9. 10. 1. 2. 3. 4. 5. This is what I come up with: log_data2 = zeros(log_data); log_data2 = log_data(4001:size(log_data,1),:); log_data2((size(log_data,1)-4000+1):size(log_data,1),:) = log_data(1:4000,:); But I'm wondering if there is a prettier solution? Thanks richard -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] How to read in date & time ?
Hello, thanks for all the replies! Somehow datenum and datevec slipped thorugh my search ... :-/ Jan's approach seems the most suitable to me, however I forget to mention that my log file also contains some missing / empty values, e.g. 01.01.2017;06:00;419,942 01.01.2017;07:00;513,273 01.01.2017;08:00;478,268 01.01.2017;09:00; 01.01.2017;10:00;606,592 01.01.2017;11:00; 01.01.2017;12:00;594,92 01.01.2017;13:00;524,933 But I could fix this with: [log_data, comments] = csvRead(log_file,';',',','double',['.',';';':',';'],"/^[^0-9\-]/"); and using log_date = datenum(log_data(:,3),log_data(:,2),log_data(:,1),log_data(:,4),log_data(:,5),0); mprintf('Log Start: %d-%02d-%02d at %02d:%02d\n',datevec(log_date(1,1))); etc... richard > Hello, > Assuming you have two header lines in your files, try this: > tt=csvRead(log_file,";",[],"double",[".",";";":",";";",",";"],[],[],2) > tv=datenum(tt(:,3),tt(:,2),tt(:,1),tt(:,4),tt(:,5),0) > td=datevec(tv) > > Jan > > On 07.11.2017 15:38, Richard llom wrote: >> >> Hello, >> I have logfiles in the following form: >> DESC: AAA 2017 >> Datum;Zeit;kWh >> 01.01.2017;06:00;419,942 >> 01.01.2017;07:00;513,273 >> 01.01.2017;08:00;478,268 >> 01.01.2017;09:00;711,572 >> 01.01.2017;10:00;606,592 >> 01.01.2017;11:00;594,92 >> 01.01.2017;12:00;594,92 >> 01.01.2017;13:00;524,933 >> ... -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
[Scilab-users] SIVP problem via ATOMS with Linux Mint 18.1 - HELP
Thanks for getting back Philippe. Only so.4 appeared. Checking with Nemo I have: libtiff.so.4 libtiff.so.5 libtiff.so.5.2.4 All have identical size and time stamps. Nemo reports 'link to unknown' for so.4 and so.5, and 'unknown' for so.5.2.4 Could you please advise on terminal commands to set up symbolic links to correct files? Regards, Dave (Moderator note: I can see but can't reply directly to the thread. Some kind of ongoing problem, so sent email) ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users