Science topic

Computer Programming - Science topic

Explore the latest questions and answers in Computer Programming, and find Computer Programming experts.
Questions related to Computer Programming
Question
20 answers
I fit my data in MATLAB with a function and I can see the results and coefficients in the command window. I need this coefficient in order to continue with my codes, but
I can't input this coefficient in my codes, or I can't use the result in my codes.
Relevant answer
Answer
Question
3 answers
This is so far the procedure I was trying upon and then I couldn't fix it
As per my understanding here some definitions:
- lexical frequencies, that is, the frequencies with which correspondences occur in a dictionary or, as here, in a word list;
- lexical frequency is the frequency with which the correspondence occurs when you count all and only the correspondences in a dictionary.
- text frequencies, that is, the frequencies with which correspondences occur in a large corpus.
- text frequency is the frequency with which a correspondence occurs when you count all the correspondences in a large set of pieces of continuous prose ...;
You will see that lexical frequency produces much lower counts than text frequency because in lexical frequency each correspondence is counted only once per word in which it occurs, whereas text frequency counts each correspondence multiple times, depending on how often the words in which it appears to occur.
When referring to the frequency of occurrence, two different frequencies are used: type and token. Type frequency counts a word once.
So I understand that probably lexical frequencies deal with types counting the words once and text frequencies deal with tokens counting the words multiple times in a corpus, therefore for the last, we need to take into account the word frequency in which those phonemes and graphemes occur.
So far I managed phoneme frequencies as it follows
Phoneme frequencies:
Lexical frequency is: (single count of a phoneme per word/total number of counted phonemes in the word list)*100= Lexical Frequency % of a specific phoneme in the word list.
Text frequency is similar but then I fail when trying to add the frequencies of the words in the word list: (all counts of a phoneme per word/total number of counted phonemes in the word list)*100 vs (sum of the word frequencies of the targeted words that contain the phoneme/total sum of all the frequencies of all the words in the list)= Text Frequency % of a specific phoneme in the word list.
PLEASE HELP ME TO FIND A FORMULA ON HOW TO CALCULATE THE LEXICAL FREQUENCY AND THE TEXT FREQUENCY of phonemes and graphemes.
Relevant answer
Answer
Hola,
Para el cálculo de la frecuencia léxica de unidades simples o complejas, se suele utilizar WordSmith o AntCon.
Saludos
Question
7 answers
Hi,
I need to create a small cluster (2 nodes) using MS Windows and then creating an application that would run on this cluster. I am a beginner with MPI so need a help on it.
I am using Intel MPI 5.1. I have a made some test programs on one node and they are running quite well. But I want to do it on more than one node now. I am confused that how would it work. I would connect them using an ethernet switch. As far as I know MPI makes use of TCP as an underlying transport layer protocol, is it possible to use UDP instead ? If yes, how ? 
Relevant answer
Answer
It might be late, but I found this link (https://medium.com/mpi-cluster-setup/mpi-clusters-within-a-lan-77168e0191b1) very useful. Worked like a charm
  • asked a question related to Computer Programming
Question
6 answers
I had a problem that I failed to draw a head-model by "Draw Head-Model" button (error message below), when I lunched COMETS2, pressed "preprocessing" button, and read "testmodel.node" .
----------
Error using fread
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in CONE_tDCS
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in CONE_tDCS
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)CONE_tDCS('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
----------
[My environment]
OS: win7 professional sp1 64bit
RAM: 8GB
MATLAB ver: R2017a (I tested it on R2018a and R2015b. But there was same trouble.)
Could you tell me the way I can run COMETS2 ?
Relevant answer
Answer
Dear Yutaro. I had the same error. I simply ran Matlab as an administrator and it worked. Hope it helps
Question
19 answers
I have learnt that to implement different task scheduling policies (like RR, FCFS, ACO, SJF), I need to make changes to SubmitCloudlet method in DataCentreBroker class. However, I am having trouble coding the Round Robin Task Scheduling Algorithm. While in VMs, do we have to include Time Quantum or we just assign cloudlet to VMs in a Round Robin way.
Could you please send me the code or help me out with it.
Relevant answer
Answer
It will differ on case to case basis.
Question
4 answers
I was trying to install NETCDF-Fortran in ubuntu 16.04.2, but some problems had been occurred. the attached file shows the problem, which I bring that here too:
make[2]: Entering directory '/home/irrig/Reg/netcdf-fortran-4.4.3/nf_test'
make[3]: Entering directory '/home/irrig/Reg/netcdf-fortran-4.4.3/nf_test'
PASS: nf_test
PASS: create_fills.sh
PASS: tst_f77_v2
FAIL: ftst_vars
FAIL: ftst_vars2
FAIL: ftst_vars3
FAIL: ftst_vars4
FAIL: ftst_vars5
FAIL: ftst_vars6
FAIL: ftst_types
FAIL: ftst_types2
FAIL: ftst_types3
FAIL: ftst_groups
PASS: ftst_path
FAIL: ftst_rengrps
FAIL: f90tst_vars
FAIL: tst_types
FAIL: tst_types2
PASS: f90tst_vars_vlen
PASS: tst_f90_nc4
FAIL: f90tst_grps
ERROR: f90tst_fill
ERROR: f90tst_fill2
FAIL: f90tst_vars3
FAIL: f90tst_vars4
FAIL: f90tst_vars2
PASS: f90tst_path
FAIL: f90tst_rengrps
PASS: ftst_v2
PASS: ftest
PASS: tst_f90
make[4]: Entering directory '/home/irrig/Reg/netcdf-fortran-4.4.3/nf_test'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/irrig/Reg/netcdf-fortran-4.4.3/nf_test'
============================================================================
Testsuite summary for netCDF-Fortran 4.4.3
============================================================================
# TOTAL: 31
# PASS: 10
# SKIP: 0
# XFAIL: 0
# FAIL: 19
# XPASS: 0
# ERROR: 2
============================================================================
See nf_test/test-suite.log
============================================================================
Makefile:1397: recipe for target 'test-suite.log' failed
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory '/home/irrig/Reg/netcdf-fortran-4.4.3/nf_test'
Makefile:1503: recipe for target 'check-TESTS' failed
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory '/home/irrig/Reg/netcdf-fortran-4.4.3/nf_test'
Makefile:1814: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/irrig/Reg/netcdf-fortran-4.4.3/nf_test'
Makefile:534: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
I have already installed gcc, g++ and gfortran, but the problem was same.
I want to know how could I solve the problem.
Relevant answer
Answer
Hi Muhammad,
I dont know if you have tried Conda to install this package, but the best way for installing the packages is using conda.
Please google "miniconda" and try to install this package by following the instructions in the website, then try to use the following link to install the package. If the link doesnt work, please google " conda netcdf fortran " and find the related command to install your favorite package on ubunto using conda. The good thing related to conda is installing and upgrading all the depenedencies of your favorite package during the installation process.
Hope it helps
Question
64 answers
To reach researchgate easily.
Relevant answer
Answer
It's 2020, still no Android app. :(
Question
26 answers
Dear All, 
I try to simulate a moving heat flux. I make sure that I make sure that I linked Abaqus 6.13 with Intel Fortran XE 2013 and Visual Studio 2012. 
But, I try an exemple of a subroutine from the manual; It aborded with an error: "Problem during compiling". 
It can’t be a syntax problem because the subroutime is from the manual for sur!
Also, when I compile the code in Visual Studio: I obtain an error : error #5102: Cannot open include file ‘ABA_PARAM.INC’
Thank you 
Relevant answer
Answer
to Check the success of the compilation process open command prompt and write
abaqus verify –all
When you see the part of
Abaqus………..with user subroutines
PASS
Then your adding is successful and you can write your subroutines
Question
5 answers
  1. suppose that i wrote a code on MATLAB to track objects
  2. i hit RUN and it took x milliseconds to be implemented on an ibm machine with certain specs say x gigahertz processing speed , y Gbytes RAM...etc
  3. but i want to know how much time it takes to run on any machine??
Relevant answer
Answer
time() returns the total CPU time in milliseconds that was spent by the current MuPAD® process.
Question
3 answers
I have a phantom_omni haptic and want to render a deformable shape for this i define a plane of vertexes and when curser collide to shape, vertexes near the collision point moved down and it more or less deform. but the question is , this method is too slow and force feed back and rendering frequency come down , so what method do you suggest me to solve this problem?
Relevant answer
Answer
Use some graphics tricks to improve the graphics and haptics rendering rate. For example, you can a dense mesh nearer to the tool, and other places sparse mesh will do. The trick depends on your application.
  • asked a question related to Computer Programming
Question
4 answers
Thanks.
Relevant answer
Answer
Can you recommend a DNA alignment program that can sort heterogeneous sequences into groups and produce multiple consensuses?
  • asked a question related to Computer Programming
Question
9 answers
The ANN with a backpropagation algorithm is enough, this ANN will be used under the Fortran 95 and Python languages.
Best regards,
Ender Araujo.
Relevant answer
Answer
It is worth checking out the language Julia. It is as easy as python, and so far at least for my atomistic Monte Carlo and Molecular Dynamics codes, is as fast as Fortran. When it is slower than Fortran the difference is measurable in percentage, never order of magnitudes. Also, I find it to be significantly faster than python + numba. However, a skilled user in python can make it much faster. The thing I like about Julia is it starts out fast, and a skilled user can make it even faster :)
As for ANN, this is out of my field but there seems to be more and more options for it in Julia.
to link a couple of possibly useful sources
Just my 2 cents
Question
7 answers
Hi
I am Trying to Write a Fortran Code with Visual Studio and i get Stack-overflow error.
My code will run properly by another compiler, but in VS, it just give me this error.
Can someone help me?
Relevant answer
Answer
Hi,
You can increase the values of Stack size and Stack commit size (Project - Property - Linker - System).
If you don't know the value, you could try 1000000000 for them.
Question
2 answers
I have to insert the initial speed along x and y components of a block, which can fall.
This is for a 2D rock-fall computer program (Rocfall) of a block inserted in a fair sismicity area. I found in a publication 
x=1,5 m/s
y=0 m/s
Is it correct? Do you have other suggestions?
Thanks very much.
Relevant answer
Question
3 answers
This relates to a Linux code in which the access of an application is changed from root to non root. Initially in the former case, it was possible to create a TCP server socket by the application but as soon as the non root access was exercised, the socket didn't get created anymore with the same code. Can someone suggest what SE Policies should be added (and to which files) to solve this issue?
  • asked a question related to Computer Programming
Question
4 answers
For example, I have 4 variables with numeric values (var1, var2, var3, va4). And I would like to create a 5th variable, which would check the maximum value among 4 variables and display the name of the variable as a result (if var1 has maximum value across the original 4 variables, var5 would show the name of var1). Or maybe it can be possible by coding var1 as a numeric expression in var5? Any input is appreciated!
Relevant answer
Answer
Hi Alisa
Definitely yes.
You can transform any variable or create any new variable through the option: Transform
Compute variable
....
Two document are attached.
Regards,
Zuhair
  • asked a question related to Computer Programming
Question
6 answers
In my last question regarding the choice of architecture between MIPS and Intel x86 variants, I decided to go with MIPS in the new course syllabus and programme for teaching computer architecture, instruction sets and assembly language.
Now, I'm looking for a good MIPS emulator for practical lessons and use in laboratory classes to teach students architecture and assembly programming with use of such a tool, since, obviously, I cannot acquire enough physical units for students to work on.
Can someone suggest adequate MIPS emulator/simulator software with a straight-forward interface that can be used for practical lessons in laboratory classes for this course?
Relevant answer
Answer
So this is several years late...
I wrote a MIPS/ARM/Nios II simulator intended for education use. It runs inside a web browser (avoiding installation problems), has a built-in debugger, and models I/O devices and interrupts. The MIPS mode is somewhat MARS/SPIM-compatible. The Nios and ARM modes have been used at the University of Toronto (and a few others) for a few years already, while MIPS was added January 2018.
Question
5 answers
What is the PHP or Javascript code for continuous running the several links without redirecting?
Relevant answer
Answer
you could simply iterate over the different variables and keep the base url the same
for(var id=0;id<5000;id++){
document.getElementById('targetFrame').src=baseUrl+id;
}
Question
6 answers
I want to find a value in the range 0-x, using the binary iteration this interval will be halved each iteration but at each iteration I need to solve complex time consuming problem, are there algorithms or approaches faster than the binary iteration algorithm?.
Relevant answer
Answer
There are lots of heuristic optimization algorithms. You may find them on my contributions
Question
4 answers
I had byte array which was derived from an image , then this array text was encrypted to be saved in database, I want to retrieve this text decrept it then transfer it to byte array again to retrieve the image , how can this be done?
Relevant answer
Answer
I think you are talking about you open image in a text editor. So, in this case, you only see the characters sequence. This encrypted code. There are various methods: JPEG, ZIP, etc. If you want to decrypt, you need to know the key (if the encrypt algorithm is two-ways).
Question
11 answers
I'm doing some dosimetry research on the MIGB-I123, MIGB-I131 and 68 Ga-DOTANOC using Internal Dose Computer Program called IDAC but this software doesn't has the preadult phantoms therefore I can't estimate the organ and effective dose for children (1,5,10 and 15 year old patient) in ICRP Publication 103 . After an extensive literature search I noticed that there is a software called OLINDA/EXM® 2.0 which has the preadult phantoms but it is very expensive to buy it for this purpose...
I was wondering is there any free software similar to OLINDA/EXM® 2.0 which has preadult phantoms?
Relevant answer
Answer
I do not know relevant free software, but the following paper may help
FYI, the predecessor of the OLINDA/EXM (Organ Level INternal Dose Assessment/EXponential Modeling) version 1.0 code was the formerly freely available MIRDOSE 3.0 and 3.1 codes, and these codes were written and rewritten by the same investigator.
Question
4 answers
There are general programs that can be harnessed to calculate some of the criteria for evaluating projects economically. But are there any recent programs that have direct relevance to the economic feasibility of projects?
Relevant answer
Answer
Thank you very much
  • asked a question related to Computer Programming
Question
3 answers
/home/anuradha/Desktop/boltztrap-1.2.5/src/BoltzTraP x_trans BoltzTraP
================ BoltzTraP vs 1.2.5 =============
At line 30 of file gtfnam.F90
Fortran runtime error: Bad integer for item 1 in list input
please help me with this?
Relevant answer
Answer
did you get the answer?
Question
3 answers
Dear colleagues,
I am investigating the population genetic structure of a forest-dwelling bird species using the STRUCTURE program on 9 STR loci.
As my dataset is unbalanced (11 sampling sites, ranging from 4 samples to 56 samples per site, on average 17 samples per site), I want to use the alternative ancestry prior described by Wang (2017).
My question: when entering the alternative ancestry prior "initial ALPHA=0.33" (as the assumed number of populations is three) and checking "seperate Alpha for each population" in the menu "ancestry model>Advanced>Configure", I am unsure on how to deal with ALPHAPRIORA and ALPHAPRIORB. Do these stay in default (0.05 and 0.001 respectively) or do I have to adapt them accordingly?
Other parameters: admixtured model, correlated freq.
Thank you for your help!
Wang J (2017) The computer program structure for assigning individuals to populations: easy to use but easier to misuse. Mol Ecol Resour. 2017 Sep;17(5):981-990
Relevant answer
Answer
Florian,
my impression from checking the Structure manual and menu is that there are actually four options for setting/inferring ALPHA:
(menu of the frontend of 2.3.4 on Linux: New Parameter Set -> Ancestry Model -> Use Admixture Model: Advanced -> Infer ALPHA check: Configure -> we are here)
Initial ALPHA: default=1, Jinliang Wang suggests to use 1/K .
This is the initial ALPHA for the MCMC chain used by all four options. Over the run of the MCMC chain this value should change and converge to a new value within the chain (it should not jump around), and also converge to the same value between runs.
Option1:
"Separate Alpha for each population": (default: unchecked)
If unchecked, all populations/clusters share the same degree of admixture. The parameter ALPHA is the same for all populations and this one parameter is inferred using either a uniform prior or a Gamma distributed prior.
Suboption 1.1:
"Use a uniform prior for ALPHA": box is checked (it's the default)
The next two rows of settings are applicable, setting ALPHAMAX (default=10.0) and ALPHAPROPSD (default=0.025).
If you run the default settings, it's this option and these settings.
Suboption 1.2:
"Use a uniform prior for ALPHA": uncheck the box
Now the prior for ALPHA is assumed to be a Gamma distribution with its parameters defined in rows three and four, setting ALPHAPRIORA and ALPHAPRIORB.
You are still inferring only a single ALPHA for all populations. Just a different prior is used for this one parameter.
Option 2:
"Separate Alpha for each population": check the box
My impression is that this is called the "alternative prior" by Jinliang Wang. Here a different degree of admixture is inferred for each population. There is a discussion of/warning (identifiability) about this option in the manual under 6.3 "Estimating admixture proportions when most individuals are admixed". My note would be that you are adding K more parameters, thus your dataset needs to be sufficiently informative.
Suboption 2.1:
"Use a uniform prior for ALPHA": box is checked (its the default)
If I understand it right, each of the population-specific ALPHAs is inferred using a uniform prior (same settings for the priors of all separate ALPHAs).
Suboption 2.2:
"Use a uniform prior for ALPHA": uncheck the box
Now the priors for the population-specific ALPHAs are assumed to be each a Gamma distribution characterized by the same parameters.
****
How to decide which option and parameter values to use for your concrete dataset? You could run the different options and compare their overall likelihoods, as well as check if the cluster memberships of individuals make sense. For parameter values of the priors, you could choose extreme values (maybe in the manual) and check if there is an impact on the overall likelihood and again if the clustering results are reasonable.
If you are only expecting to find three clusters, you might not be in the parameter space that Wang 2017 considers. Eg. if several of your small population samples really belong to one large population and you expect them to cluster together, sample sizes might not differ that drastically in the end.
Also, you could visualize the genetic structure in you dataset using a PCA to get an overview over what to expect (eg. using adegenet in R). While, PCAs are also sensitive to sample sizes, they are a completely different approach, might give you a different visual idea and provide an independent result to which to compare your Structure solution.
Jutta
  • asked a question related to Computer Programming
Question
3 answers
Dear,
I am looking for the MICROSAT software (Microsat (version 1.5): A computer program for calculating various statistics on microsatellite allele data) to insert it into a script, but the links on the internet are giving an error. Someone would have this software to send me (my email: adamrickbessa@gmail.com). Thank you so much.
Relevant answer
Answer
Dear Adam Rick Bessa,
I had been used many Software for MICROSAT
pleas follow my home page;
  • asked a question related to Computer Programming
Question
4 answers
Algorithm analytics
Relevant answer
Answer
Thank you very much for your answers.
Question
3 answers
For example,
to minimize Z= [P1, P2, P3]
subject to some specified constraints
with non-negativity restrictions
where P1, P2, P3 are objective functions with different priority levels.
Relevant answer
Answer
Your question is very unclear.
Show your model.
Linus textbook how to treat the multi-object.
Or, you understand the differnces of soft margin SVM and portfolio model.
See my Springer book.
Question
1 answer
Means which type of computer program can be used for it.
Thank you very much for your time and help.
Relevant answer
Answer
Hi. I think you can use Corel drow or AI. It depends on which program is comfortable for you.
  • asked a question related to Computer Programming
Question
4 answers
Many Computer Science Freshmen come to college with little or no background in computational thinking and almost no computer programming background. In my part of the world, only a very small number of freshmen become adapt at programming at graduation.
Relevant answer
Answer
I thank you all for your answers.
  • asked a question related to Computer Programming
Question
2 answers
This is an artificial project created by the RG computer. I find this unacceptable the RG software should be rectified to avoid such cases.
Relevant answer
Answer
Teach them to read and write. Then they will want to vote.
Question
4 answers
Civil engineering
Relevant answer
Answer
You can read the collapse load on the capacity curve. It is the base shear value at max horizontal (inelastic)  displacement of the floor-diaphragm loading point along the direction under consideration. In non-linear analysis of a building with ductile members, the collapse load corresponds to the (almost) horizontal branch of the curve where inelastic displacements have been developed in many of the extreme cross-sections of its members. However, if there are members under brittle failure or premature formation of unstable mechanisms then the pushover analysis will stop shortly and the capacity curve will present abrupt drop in strength (in many cases not reflected on the curve). The later point corresponds to the collapse load.
Question
3 answers
The samples were done in SOLiD.
The Staden Package program does not come with a tutorial as the gap4 program for sequence alignment, which would have been very useful.
Please step by step would be nice because I understand that there is a lot of linux or unix commands involved and I am pretty green on that department.
I am using a Mac just in case there are differences between other platforms.
Relevant answer
I have one of my Industrial Placement students looking at this problem, Mr Michael Garcia (Kingston University) and he found out the following link very interested:
*This are the steps that needs to be done to create a gap5 database with NGS files in the command line app:
          $ samtools index my.bam my.bam.bai
          $ samtools view my.bam > my.sam
          $ tg_index my.sam
The tg_index command will make files my.0.g5d and my.0.g5x, which are the Gap5 database files. To open Gap5 database you can select 'my.0.g5d’.
More information in the link provided.
My next questions would be: IGV vs UGENE vs gap5 which one is the best, advantage and disadvantages.
  • asked a question related to Computer Programming
Question
43 answers
For me, I am very sure it is solved. If you have interest, first download the problem, run it. Then, read my paper and think, then, you may also be sure.              
How to use the program
1. I believe that most of people who download my program would be professionals. So I please you leave your contacting message and welcome your opinions if you download my program. You can leave your message here or to my email: edw95@yahoo.com. Thanks a lot.
2. This program is an informal one, also it is not the quickest one. But it includes my algorithm, also it can work correctly and works very well. No fails for it.
3. How to use: if you have a 0-1 matrix standing for a simple undirected graph with n vertices which has at least a Hamilton path from vertex 0 to vertex n-1, you only press the “ReadMatrix” menu item to read and calculate it, then you press the “Write the result” menu item, to write the result in a new file, you can get a Hamilton path from vertex 0 to vertex n-1 in the new file.
4. How to use: if you have an edges matrix standing for a simple undirected graph with n vertices which has at least a Hamilton path from vertex 1 to vertex n, you only press the “ReadEdges” menu item to read and calculate it, then you press the “Write the result” menu item, to write the result in a new file, you can get a Hamilton path from vertex 1 to vertex n in the new file. If without such a path, you get a message “no...”. The input file format: each row: 1,3 or 1 3. It means that an edge from vertex 1 to vertex 3.  
5. The maximum degree is 3. Though I am very sure my algorithm can calculate any degree of undirected graphs, but this program not. The maximum vertex number is 3000, due to that the PC memory is limited.
6. I would like to thank Professor Alexander Chernosvitov very much. He and his one student take a long time to write a program (different from mine) to implement my algorithm and he give me and my work a good comment (see the web codeproject.com and researchgate.net). Mr. Wang, xiaolong also. Before them, no body trust me. Some not smart enough editors and reviewers reject me just on this logic: for such a hard problem, Lizhi Du is not a famous man, so he cannot solve it. Some editor or reviewer does not use his or her brain, say: your paper is apparently wrong, or, your paper cannot be understood. “apparently wrong”, funny! I study it for a lot of years, apparently wrong! If a reviewer is really powerful and use his brain and cost his time, he surely can understand my paper. If you think I am wrong, tell me where is wrong, then I explain to you that is not wrong. If you think my paper cannot be understood, tell me where cannot be understood, I explain to you. In my paper, in the Remarks, I told how to understand my algorithm and proof. I think it is very clear.
7. I studied this problem for a lot of years. I put a lot of versions of my papers on arxiv. Though the former versions have this or that problems, I am very sure the newest version of my paper is the final version and it is surely correct. It may contains some little bugs due to my English expression, but this does not affect the correctness and I can explain or revise the little bugs easily.
8. Surely I think I have proved NP=P and have solved the problem NP vs. P.
9. Thank you for you pay your attention and time on my algorithm!
Relevant answer
Answer
Apparently, Norbert Blum is convinced of a negative solution to the question. See "A Solution of the P versus NP Problem" up on arXiv.
Question
4 answers
Can anyone provide me Arduino and  Open BCI code for  connecting two external button on 8 channel Open Brain computer interface system ( ADS1299). Please ?
Relevant answer
Answer
Thank You Dibakar Pal, but Link is not working.
  • asked a question related to Computer Programming
Question
1 answer
I have installed  Rosetta, A computer program for estimating soil hydraulic parameters with hierarchical pedotransfer functions. But if I look into the programs  installed to computer I can't find it. I have tried to follow the installation guide from the Arizona university website still it I can't see it on my PC. Could someone help please.
Thanks
Relevant answer
Answer
What operating system are you using?
What is the URL from which you downloaded the software?
Question
7 answers
How to simulate CSMA-CA algorithm in MATLAB? There are several nodes in the network with its own state. For example, some node may be sending the data at the start of the simulation, some other nodes may be waiting to send the data, some nodes may be idle, some nodes may be waiting for ACK, etc. When some node is sending the data, at the same time the other nodes may be changing the state. Computer programs run sequentially. How it is possible to update the states of other nodes or back-off counters etc. at the same time when the transmission of data of a node is going on?
Of course, this is easy in NS2. But I am not at all familiar with NS2.
Relevant answer
Answer
I think this document may really helps: 
  • asked a question related to Computer Programming
Question
5 answers
Methods is important when teaching programming languages. Alongside the development of computers, one of the aims was to teach all children
computer programming  (Resnick et al., 2009). However, the difficulties experienced by students while writing programs on a program-compiler and the use of uninteresting activities in computer programming teaching (Resnick et al., 2009) caused students to consider computer programming a difficult task (Aşkar & Davenport, 2009; Caspersen & Kolling 2009). The idea that computer programming was difficult for students and teachers (Armoni, 2011; Gökçearslan & Alper, 2015) has tried to be removed via practical programs like
Scratch, Alice and AppInventor that were developed for visual programming.
Programming is a difficult process to learn, it is important to choose educational methods.
  • asked a question related to Computer Programming
Question
2 answers
I found the APDL command of ANSYS is quite diffcult to remember.Some commands are abbreviations and acronyms that are easy to remember,BUT even more commands are seems not to be dedicated designed and quite diffcult to remember and understand especially for its parameters.
Is there any tricks to remember those commands?
Relevant answer
Answer
I uses the same approach explained by Dr. Denis Benasciutti.
  • asked a question related to Computer Programming
Question
2 answers
I blindly tried ./profit-cli -f test.fits -p moffat:fwhm=1:con=1 but it returns an empty image fits file
Relevant answer
Answer
Thanks. That probably does make more sense as a default. I will ask Rodrigo Tobar (the person who implemented the command line side) about this.
  • asked a question related to Computer Programming
Question
6 answers
Did anyone manage to compile Colin Zelt's FAST package in Linux Operating System (such as ubuntu or redhat) ?
Did anyone manage to compile Colin Zelt's FAST package in Linux Operating System (such as ubuntu or redhat) ?
As we know that FAST was written in Solaris OS,
I downloaded FAST and the patch for installed them in Linux written by Brenders, Andrew from colin zelt's webpage.
But it doesnot work in linux OS.
Is there anyone who has successfully compiled and run them in linux OS or Mac OS?
If you have the successful one , please email them to 1020116@hnust.edu.cn
,thanks.
Relevant answer
Answer
The 3d_example the FAST provided did not run successfully, if you run the program successfully ,please give me some suggestiones!
Question
11 answers
Dear researchers,
I'm looking for an open-source FEM software compatible with ABAQUS subroutines. I know there are a few open-sources FEM software available. But the question is; Is there any open-source FEM compatible with ABAQUS routines? or can be compatible with minor changes in the code?
To conduct my simulation, I need to run a few routines but they are ABAQUS subroutines and are written in FORTRAN and I don't have access to ABAQUS license for now. I know that ABAQUS has a student version, but this version has limitations among which is a restriction on running routines.
Any comments and pieces of advice are highly appreciated.
Best,
Farhad
Relevant answer
Answer
Hi Farhad,
You could try Calculix. I've used it for running ABAQUS-like input files, although I haven't tried out its user subroutine interface.
Let me know how you get along - I am curious :)
Milan.
Question
3 answers
In other word , if am get it my project idea from GUI Fuzzy logic  by MATLAB using different condtions ,How can route this work to outer by Arduino microcontroller type of 2560 since am using set of sensors to automation something .
Relevant answer
Answer
Thanks a lot Mr.Yew-Chung Chak, Now I have idea
Question
5 answers
I want to know how a sequence is tested in ubuntu terminal. I want to know clearly atleast a clear sequence approach of one test using NIST test suite (sts - 2.1.2). Or any other suggestions to test the randomness using runs test and autocorrelation test.....
Relevant answer
Answer
Just run it over your data as described in the readme.
  • asked a question related to Computer Programming
Question
3 answers
I got a code for implementing task scheduling in cloudsim. in that user made a following call to a method in cloudlet:
cloudlet.getCompletedRequests (getClassId.getSimplename())
now there is no such function by default in the cloudlet class. and i am unable to find this method anywhere, even not in cloudlet.java file.
where can i find the defintion of this method.
Relevant answer
Answer
actually i wanted to share that i feel that the output has been faked. i am unable to find this method any where. i dont know where the function has been defined. i am able to locate all other finctions in cloudlet.java but not this function.
Question
5 answers
Hi,
Relevant answer
  • asked a question related to Computer Programming
Question
2 answers
I am simulating a metal cutting process in Abaqus / explicit and want to implement a damage model using the VUSDFLD and VUHARD subroutines. As it is the first time I am going to write a subroutine and I am not experienced with programming, I do not have idea on how to do it.
Does anyone could share any examples of these two subroutine models (pdfs or a fortran file) from which I can base my work on? It would be a great help!
Thanks
Relevant answer
Answer
It's been a while since I worked on this, but I think the two files here should help you: I used a user-defined boundary condition to store the position of the tool tip so that elements are only deleted there; the deletion is done using VUHARD with a johnson-cook law.
  • asked a question related to Computer Programming
Question
3 answers
I know MATLAB doesn't have a good performance in for loop computation, and I know that if some variables' size increases at each iteration of the for loop, more and more memory space will be occupied. But in my case, my purpose is to do batch processing to several data files. At the begin of the each iteration, I will clear all the variables except the for loop index (see below), but I noticed that the program turned slower and slower. Can any explain what happened and help me fix it? Thanks!
The framework of the for loop is as follow:
clear;close all;clc;
% define data ID
WTNO = [15,3,1:2,4:14,16:24];
for i = length(WTNO)
    clearvars -except WTNO i
    load(num2str(WTNO(i)),'.mat');
    % data processing
    ...
    % data save
    ...
end
Relevant answer
Answer
do you allocate memory for your data saving before you call the for loop?
Question
3 answers
I developed a code to generate and solve a system of linear equations using SYMBOLIC TOOLBOX. I want to create binary file (.exe file). But MATLAB is not supporting binary file creation as i use symbolic toolbox. A binary is created but not working well.
Help me if you have any ideas.
Relevant answer
Binary file is created but it is not recognizing symbolic variables and shows error while the binary file is executed.
Question
2 answers
I use getarg subroutine  in my FORTRAN program to call file names and related parameters from command line itself. I would like to print the whole execution command in my output file, so that the output file contains the information about what ever input file and parameters I had used to generate it. Is there a way to do that?
Relevant answer
Answer
Thanks a lot Jerome.
  • asked a question related to Computer Programming
Question
4 answers
Dear Friends,
I am new in android and developing an autocall receive app . We have a basic code in github which work upto kitkat. It's url is : https://github.com/steghio/auto-answer
Please advise how it can work out in lolipop and above versions. We try it for 3 weeks and above . But no result.
Waiting for a fast, helpful response
Thanks
Anes
Relevant answer
Answer
What does it do currently to answer calls? The default phone app changed in the most recent versions.
But I reckon what you can do is enable notification access on the device for your app, read an incoming call notification, grab the intent related to receiving that call, and execute it on your own.
  • asked a question related to Computer Programming
Question
3 answers
Dear all.
Hi, I'm a student from Hanyang univ., writing to get some help.
In any field in engineering, mathematics, etc. it is needed to generate data points in a domain. It can be nodes, points or vertices depending on the field.
It could be to generate mesh for finite element method, or to scatter points for interpolation, estimation or something.
I don't know exactly what it is and how can I google it appropriately.
Is there anyone who knows well about this field?
Thank you
Minsik Seo
Relevant answer
Answer
Hi,
Well, the simplest way is ... to use a mesh generator !! :)) see GMSH for example.
See also literature on "space filling algorithm" on google
See also "Voronoï tesselation"
The Matlab clone "Octave" also now has efficient 2D/3D mesh generation toolkits and mesh-related data manipulation primitives.
Question
1 answer
I need it for my course on databases. I tried to use EyeDB (http://www.eyedb.org/) but it has a lot of serious bugs.
Relevant answer
Answer
I don't know about the OQL but NuoDB is supposedly ODMG93  and has a free community edition. ( https://www.nuodb.com/dev-center/community-edition-download ).
  • asked a question related to Computer Programming
Question
3 answers
MDA (model driven architecture)
Relevant answer
Answer
Frankly said, I cannot see any reasonable way of using MDA approach in genetic programing. MDA is perfect for building large software applications having exact requirement specification and exact software implementation - it is a deterministic process of modeling.
Question
42 answers
For many years C++ has been the dominating language to start with.  Recently Python is getting an edge over C++ and Java as the most popular programming language.  Is it a good idea to switch to Python as a start instead of C++?
Relevant answer
Answer
I think it's a good idea, because as bloody beginner there is no benefit in learning most of the features of C++. In my opinion C is preferrable to C++ and Python is preferrable to C.
It is frustrating to learn things like pointers, references, headers, compiling stuff etc. and their sense theoretically without understanding in practice why we really need them.
Concluding, I think it makes more sense to get started with some simple and funny programming instead of hard work.
Question
4 answers
We have a wireless receiver system on FPGA and all of data processing units are in fixed-point arithmetic.
Relevant answer
Answer
Dear Sayed,The system level MODELLING and simulation are carried out in Matlab/ Simulink. Then the system is designed on FPGA using the hardware description language VHDL. If you model your system on Simulink you can covert your design into VHDL by using the system generator, which is a matlab tool to translate your design into VHDL. Once you have VHDL code you can simulate and synthesize your  design on specific FPGA chip.
But this method is less flexible than direct writing your VHDL code. You can also build the whole system on an FPGA design suite such as that of the XILINIX tools ISE. xx.
Best wishes
Question
3 answers
We would like to find a freeware software tool which analyse besides the written code also the remarks in the code which replaces a Detailed Design document. (floating licenses).
Relevant answer
Answer
Thanks Bruno.
I will check this tool.
  • asked a question related to Computer Programming
Question
3 answers
I am trying to learn DL with an example.However, running the following code (attached in image) results in an error :
Undefined function 'categories' for input arguments of type 'double'.
I understand that categories in the original example is string based labels. But mine is int values. Not sure why it isn't working. Kindly help
Relevant answer
Answer
in your case looks like the variable is double, so you can use unique() instead of categories(), another way to do this is to convert the double array to a cell array of strings and then use categories() on it e.g.
a1=[1,2,3]'
unique(a1)
%%% OR
categories(categorical(cellstr(num2str(a1))))
  • asked a question related to Computer Programming
Question
5 answers
One of the most challenging aspects of developing the previous version of ForTrilinos was devising a reference-counting scheme to ensure safe type finalization in Fortran and corresponding object destruction in C++.  It's interesting to see that the SWIG-generated file forepetra.f90 on the new develop branch contains an Epetra_Object derived type with a type(c_ptr) component.  Will that component become associated with the C++ object that the Fortran object shadows?   Given that there's no final subroutine on the type, is there a strategy to avoid memory leaks and dangling pointers?  How will the C++ code get notified when the Fortran object goes out of scope so that C++ knows its safe to destroy the object?  How will the Fortran code get notified if C++ destroys the object?  
What will happen with an expression such as
type(Epetra_Object) :: a,b,c
a = f(b) + g(c)
where f and g are functions that have Epetra_Object results containing c_ptr components that presumably are associated with C++ objects that were instantiated at the direction of Fortran inside each function.  After the above assignment completes, the Fortran code no longer has a name associated with the two function results so the Fortran program has no way to direct C++ to destroy the corresponding C++ objects.
Damian
Relevant answer
Answer
Regarding 1, it's probably best to read the papers we wrote on the subject:
Email me if you have trouble accessing these and I'll reply with PDF's.  We were also awarded a related patent, which the Sandia intellectual property staff assured me posed no problems with using the algorithm in ForTrilinos:
Regarding 2, I'll be very curious to see the details of what you're describing.  When you write "a referenced counter pointer to C++ class," I assume assume you mean "a reference-counted pointer..."  The SWIG-generated forepetra.f90 file contains a Epetra_Object derived type with a type(c_ptr) component named "ptr".   Is this the reference-counted pointer to which you're referring?  If so, are you referring to a reference-counting scheme in Fortran or to the reference-counting scheme that already exists in C++?  If the reference counting scheme happens in Fortran, then it will be interesting to see how one can be generated with SWIG.  I don't see anything in the current SWIG output that suggests there's reference-counting happening.  If the only reference counting happens in C++, then I'm not aware of schemes to avoid dangling pointers and memory leaks other than the scheme we developed.  
It would probably be worthwhile to try compiling code like what is written in the clarification that I posted just after posting my initial question. Run the resulting executable through valfgrind and check for memory leaks. And also consider whether there are scenarios that could lead to dangling pointers. If C++ destroys an object, I don't think that automatically nullifies any type(c_ptr) pointers holding the C address of the C++ object.
Damian
  • asked a question related to Computer Programming
Question
7 answers
Hello, Dear colleagues
i have a little background about dynamic programming and i want to know if dynamic programming will be sutible technique for solving layout problems?
and what are the most application of DP in manufacturing?
All answers are appreciated 
Relevant answer
Answer
Thank you Sir for your reply
I will start reading them 
Question
4 answers
Hi,
    I am new to cytoscape and have limited bioinformatics experience. I am having trouble importing XML file generated from STRING into cytoscape 3.4.0.
It is showing
Loading PSI-MI 2.5x XML File
you must have a non null JAXB source.
However,I have created network using .tsv format but computer getting hanged while performing network analysis.
Please help.
 Thanks,
Parmita
Please help.
Relevant answer
Answer
thanks very much Lakshmi Ma'am.
Question
9 answers
What programming language Should I use? I need the code which execute this results?
web service, response time, hmm model
Relevant answer
Answer
I think scala is fastest in distributed computations.
  • asked a question related to Computer Programming
Question
2 answers
after replace PC, winQ gives following message: initialing, conveyor clearing  Respectively.on conveyor clearing message doesn't change. Does anyone have any trouble shooting advice? We carried out the  tasks. turn off and on Quant and PC. uninstall and install COM port. wait 50 hour then turn on Quant
Relevant answer
Answer
Sometimes this error occurs from system memory (power failure, incomplete protocol , ... ) you need to clean memory from WINQ software or by Quantulus CMOS battery removing and replacing.
Question
5 answers
I've done a project on biometric identification whit PPG signal and i want to create a gui for it,do you have any matlab codes or any examples of gui for biometric identification?
I'd like to thank you for very much in advance.
Relevant answer
Answer
Question
4 answers
Eclipse IDE, JAVA language
Relevant answer
Answer
Hello,
have you tried accessign Github? They usually have a lot of freely available code there. For example,you have this code for Android: https://github.com/gdwangh/mobile-cloud-Computing-with-Android
I hope this helps!
Question
17 answers
I want to generate a vector of random numbers between 0 and 1 in matlab and I use the "rand " function. However, I need that every time I generate this vector  one number only has a value above 0.8 the other numbers will be randomize between one and 0. Any help ? 
Relevant answer
Answer
Thanks Mahamad Nabab Alam I tried it again as a function not just simple steps and works  fine . Thank you for your kind help.
Question
7 answers
I'v been working on a python code for an easy data processing and visualization of a simple numerical model written in fortran and parallelised with MPI. I need to use some fortran code from python and I've been unsuccessfully trying to wrapper this fortran/mpi code with f2py. Any suggestions.
Relevant answer
Answer
Hi Rajab Legnain, thank you for the advice. I would translate all my code to python if possible, this way I would probably save 500 lines of code, however, I use fortran for justified reasons: it's about 100 times faster. In this case I only use python for the scipy, netcdf and matplotlib libraries.
  • asked a question related to Computer Programming
Question
3 answers
I am getting cracking noise with my multimedia project, I have hardware limitation that support only 16 bit integar value , where as incoming data is in float,
So i want to convert float to short with minimum precision losing i have used multiplication technique that is giving much lose, can any body help me for same?
Relevant answer
Answer
Not enough info for a definitive answer.  So following may apply (or not).
If you are talking about "playing" the media on hardware that supports only 16 bit ints, then scaling, quantizing, etc., probably  won't work UNLESS you can "tell" the hardware that the data has been scaled/quantized (and HOW it has been), OR if it already expects the data to be scaled/quantized (in which case, you'd have to scale or quantize the way that the hardware expects...)
In general, it would seem to me (again, not knowing the actual specifics involved in this case) that the best you'll be able to do when converting float to int is to "round" - as an integer has no fractional part (unless the hardware accepts scaling of some sort).
  • asked a question related to Computer Programming
Question
22 answers
Assume I need a random number between 0-100. What is the difference if I
1. generate a single random number in the range 0-100.
2. generate a single random number in the range 0-10, and square it.
3. generate two independent random numbers namely, r1 and r2, in the range 0-10 and then r1*r2.
Relevant answer
Answer
Aw the aethernal question about "How much random must be the output of a randomizer?", "What is random enough?", or more sickening: "Is my random set of objects R E A L L Y random or is there a subtle, elusive regularity which escapes my obsessive scrutiny?"... OK, lets be practical, if after a reasonably high number of objects generated, your histogram gives "equiprobable" for each one, your random degree is acceptable, but if you have a tendence or tendences, of course not. If you increase to a GREAT number of objects generated via the same randomizer criterion and the tendence/es vanish, ok, the randomizer runs properly, because your previous statistics could simply be based on an insufficient number of cases. BUT If after a H U G E number of objects generated via this randomizer (continuous case!) the tendencies remain, your randomizer fails... It could sound stupid, but I cannot think about this problem in other terms. Of course in proper literature are described randomizer criteria that are extensively used, so, by using them, we could remain comfortably unworried about this almost metaphysical problem... Greets from Mendoza, Argentina. Gustavo. 
Question
8 answers
Hello dear all,
I want to synchronize all threads of a child kernel before executing other operations in a parent kernel in CUDA. How can I do this? I have many threads in many blocks. I used 1D blocks and 1D grid.
Thank you very much
Relevant answer
Answer
I think that cudaDeviceSynchronize works also on Device
  • asked a question related to Computer Programming
Question
4 answers
I need to fix a problem on Nvivo. All my interviewees' audio files are grouped as sources and I can't classify them according to gender, age, etc. Any suggestion on how to solve it?
Relevant answer
Answer
Raven's Eye is an online natural language analysis tool based. Raven's Eye provides its users with dynamic, powerful, and instantaneous automated analyses of written language. Raven’s Eye facilitates an incomparably intimate and multifaceted understanding of people, as well as the ability to speak to them in highly resonant ways.
65 languages to analyze data with! Multi analytic functions and features! Graphic user interface. SaaS pricing, super cost effective!
Have a nice day and good luck with your research!
Question
3 answers
I have a dictionary which its values are matrices and its keys are the most frequent words in the train file. There is a test file which I have to see if the words in each line of that is in the dictionary (the keys), get their values and add them together and then divide that to the number of the words in each line which matches to the keys. The answer is one matrix. I tried "sum(val)", but it doesn't add the matrices together. How can I fix the code (the end part of that) which I've enclosed? 
Relevant answer
Answer
You can add numpy.array objects by using the '+' Operator. You have to pay attention to the shape, but your arrays seem to have the shape (1,2).
Sou you can use the following code. This will return a np.array.
Question
18 answers
I am currently learning how to code efficiently. I wrote some codes using Java, Matlab, and SimTalk languages. I want to learn how to code efficiently and neatly, which may allow myself and other programmers to easily understand and modify my codes later. Could you please suggest some good websites which I can refer to? Thank you.
  • asked a question related to Computer Programming
Question
14 answers
Dear C++ experts,
I'm a beginner with C++ and I've programmed my first numerical game for training. Here, a random number was chosen between 1-15 and the gamer has three chances to guess the right number. After each attempts, the program tells you that the guess number is greater or smaller than the goal.
Would you please evaluate my code and tell me about the efficiency of my program.
Relevant answer
Answer
first, as @pimiskern said never use goto statement.
second, try to keep your main function as simple as possible. Instead of that, separate your code into functions and call them. As an advance step try to use OOP.
third, if you have more than 5 statements use switch instead of if else.. the reason is that is switch the compiler uses a lookup table and a hash list that make the switch more optimized than simple if-else.
good luck
Question
3 answers
I am trying to understand the color of amber glass cantaining reduced iron Fe(II) and sulfide sulfur in relation to crystal field spliting of the d orbitals.
Relevant answer
Answer
Dear Mr. Lippert, a very easy approach is described in my article "An RGB approach to prismatic colours," (http://dx.doi.org/10.1088/0031-9120/48/6/750) and a slightly more advanced version in "An RGB approach to extraordinary spectra" (http://dx.doi.org/10.1088/0143-0807/36/5/055018). The main idea is to divide the visible spectrum into three parts that are basically red, green, and blue, and to obtain the color effect by applying RGB mixing. Kind regards - Sascha Grusche
  • asked a question related to Computer Programming
Question
1 answer
Data Partitioning in Sybase Adaptive
Server®
Enterprise 15 for Lower Costs,
Higher Performance
Relevant answer
Answer
A data partition is an independent database object with a unique partition ID. It is a subset of a table, and shares the column definitions and referential and integrity constraints of the base table. I'm not sure if Sybase 11 support partitioning, but version 12.5 onward support it. But be informed that it need separate license to implement partitioning of tables in Sybase.
  • asked a question related to Computer Programming
Question
5 answers
Can anyone help me to find some info about WATHUN heat transfer computer program?
Relevant answer
Answer
I propose to see  other computer programs specialised also in heat transfer like
Ansys, Femlab ...
Question
4 answers
the complete error is:
"This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."
the tool is kiva. Kiva is a free and open source ground heat transfer calculation tool written in C++ and Kiva is a command line tool.
Relevant answer
Answer
Question
5 answers
Need this ENVI Image file (.Img) for further use in IDL and visualization in IDL.
Chip method doesn't work and provide results needed.
IDL, ENVI img, convert tiff to img
Relevant answer
Answer
Hi there,
Open the TIFF file in Envi and use Save File As (Envi Standard) either in Main Menu or in the Save Image As in the display Menu and save it as Envi Image File.
The details for the Header should be automatically generated.
Vidhya
  • asked a question related to Computer Programming
Question
8 answers
s=[0 1]; Let k{1,2}{1,1}=01010001,k{1,2}{1,2}=11010101,k{1,2}{1,3}=01010001,k{1,2}{1,4}=11010001,{1,2}{1,5}=00010001(continued upto {1,2}{1,7})
if (strcmp(k{1,2}{1,1}, '00000001') (strcmp(k{1,2}{1,1}, '10000000')))&& s(1)==0 p{i,j}='00000001';
elseif (strcmp(k{1,2}{1,1}, '00000001') (strcmp(k{1,2}{1,1}, '10000000')))&& s(1)==1 p{i,j}='10000000';
elseif (strcmp(k{1,2}{1,2}, '0000001') (strcmp(k{1,2}{1,2}, '1000000')))&& s(1)==0 p{i,j}='0000001';
elseif (strcmp(k{1,2}{1,2}, '0000001') (strcmp(k{1,2}{1,2}, '1000000')))&& s(1)==1 p{i,j}='1000000';
elseif (strcmp(k{1,2}{1,3}, '000001') (strcmp(k{1,2}{1,3}, '100000')))&& s(1)==0 p{i,j}='000001';
elseif (strcmp(k{1,2}{1,3}, '000001') (strcmp(k{1,2}{1,3}, '100000')))&& s(1)==1 p{i,j}='100000';
elseif (strcmp(k{1,2}{1,4}, '00001') (strcmp(k{1,2}{1,4}, '10000')))&& s(1)==0 p{i,j}='00001';
elseif (strcmp(k{1,2}{1,4}, '00001') (strcmp(k{1,2}{1,4}, '10000')))&& s(1)==1 p{i,j}='10000';
elseif (strcmp(k{1,2}{1,5}, '0001') (strcmp(k{1,2}{1,5}, '1000')))&& s(1)==0 p{i,j}='0001';
elseif (strcmp(k{1,2}{1,5}, '0001') (strcmp(k{1,2}{1,5}, '1000')))&& s(1)==1 p{i,j}='1000';
it is running fine as expected but what i want is
suppose at the condition
>> elseif (strcmp(k{1,2}{1,5}, '0001') || (strcmp(k{1,2}{1,5}, '1000')))&& s(1)==1 is met.
i want p{i,j}= '00011000'i.e it should contain the value '1000' and its before original values also. similarly for other cases also. kindly can anybody suggest and help me.
Relevant answer
Answer
The source code looks like it is some version of SAS statistical software scripting language, maybe SAS/IML? The elseif does bother me as well, but if you could explain the problem better (even in words, not in code),maybe we could help or give a suggestion for a better or adequate solution.
So, here are some questions:
  1. What language is this that you are using?
  2. Are you sure that you are not missing an and or an or operator in the if clause, because it seems incomplete?
  3. Can you explain the problem that you are trying to solve (in text, not in code, and clearly)?
  4. Are you using an IDE? Maybe it has an integrated debugger? It would make sense that it does, since it is an IDE and not just an editor.
After you give more details, we could try to resolve this issue that is "bugging" you. Pun intended.
Question
5 answers
I am interested in the history and theory of the Open Source movement, which in the last decade expanded into open data, open access, open science, open government, etc. Is the use of the word "open" in a direct line from Popper? How have these movements stayed true to or diverged from Popper's original conception in The Open Society and Its Enemies (1945)? I am most interested in the theoretical-historical relationship between these cultural movements, which are separated by about 30-40 years. Knowledge of Popper's work is important to that.
Relevant answer
Answer
Ted,
You should take a look at some of the work by Jaron Lanier. He is a computer-scientist, cognitive scientist, computer science philosopher, visual artist and classical music composer. He has written several books on the dangers of the modern internet age, including the danger of "wikis," which I imagine mirrors in many ways the open-source tradition that has evolved in your field. 
Somewhat ironically, here's one quote from "One Half a Manifesto"  from the wikipedia page on him where I think investigation could uncover some interesting relationships between transistor count, software design, and human ideology.: 
'While transistor count increases according to Moore's law, overall performance rises only very slowly. According to Lanier, this is because human productivity in developing software increases only slightly, and software becomes more bloated and remains as error-prone as it ever was. "Simply put, software just won't allow it. Code can't keep up with processing power now, and it never will."[16] At the end he warns that the biggest problem of any theory (esp. ideology) is not that it is false, "but when it claims to be the sole and utterly complete path to understanding life and reality." The impression of objective necessity paralyzes the ability of humans to walk out of or to fight the paradigm and causes the self-fulfilling destiny which spoils people.'
Another relevant quote from wikipedia in which Lanier directly criticizes the "open source" movement as a form of "Digital Maoism":
You Are Not a Gadget (2010)
In his book You Are Not a Gadget (2010), Lanier criticizes what he perceives as the hive mind of Web 2.0 (wisdom of the crowd) and describes the open source and open content expropriation of intellectual production as a form of "Digital Maoism".[21] Lanier argues that Web 2.0 developments have retarded progress and innovation and glorified the collective at the expense of the individual. He criticizes Wikipedia and Linux as examples of this problem; Wikipedia for what he sees as: its "mob rule" by anonymous editors, the weakness of its non-scientific content, and its bullying of experts. Lanier also argues that there are limitations to certain aspects of the open source and content movement in that they lack the ability to create anything truly new and innovative. For example, Lanier argues that the open source movement didn't create the iPhone. In another example, Lanier claims that Web 2.0 makes search engines lazy, destroys the potential of innovative websites like Thinkquest, and hampers the communication of ideas like mathematics to a wider audience. Lanier further argues that the open source approach has destroyed opportunities for the middle class to finance content creation, and results in the concentration of wealth in a few individuals—"the lords of the clouds"—people who, more by virtue of luck rather than true innovation, manage to insert themselves as content concentrators at strategic times and locations in the cloud. In the book, Lanier criticizes the MIDI Standard for musical instrument commonality. His comments brought on rebukes from industry and artists knowledgeable of the standard and suggestions that Lanier published his comments merely as bait for debate.
Here is his criticism of wikis: 
Wikipedia and the omniscience of collective wisdom
In his online essay "Digital Maoism: The Hazards of the New Online Collectivism", in Edge magazine in May 2006, Lanier criticized the sometimes-claimed omniscience of collective wisdom (including examples such as the Wikipedia article about himself, which he says recurrently exaggerates his film directing work), describing it as "digital Maoism".[18] He writes "If we start to believe that the Internet itself is an entity that has something to say, we're devaluing those people [creating the content] and making ourselves into idiots."[18]
His criticism aims at several targets which concern him and are at different levels of abstraction:
any attempt to create one final authoritative bottleneck which channels the knowledge onto society is wrong, regardless whether it is a Wikipedia or any algorithmically created system producing meta information,
sterile style of wiki writing is undesirable because:it removes the touch with the real author of original information, it filters the subtlety of his opinions, essential information (for example, the graphical context of original sources) is lost, it creates a false sense of authority behind the information,
collective authorship tends to produce or align to mainstream or organizational beliefs, he worries that collectively created works may be manipulated behind the scenes by anonymous groups of editors who bear no visible responsibility, and that this kind of activity might create future totalitarian systems as these are basically grounded on misbehaved collectives which oppress individuals.
This critique is further explored in an interview with him on Radio National's The Philosopher's Zone, where he is critical of the denatured effect which "removes the scent of people".[19]
In December 2006 Lanier followed up his critique of the collective wisdom with an article in Edge titled "Beware the Online Collective".[20] Lanier writes:
I wonder if some aspect of human nature evolved in the context of competing packs. We might be genetically wired to be vulnerable to the lure of the mob....What's to stop an online mass of anonymous but connected people from suddenly turning into a mean mob, just like masses of people have time and time again in the history of every human culture? It's amazing that details in the design of online software can bring out such varied potentials in human behavior. It's time to think about that power on a moral basis.
Lanier argues that the search for deeper information in any area sooner or later requires that you find information that has been produced by a single person, or a few devoted individuals: "You have to have a chance to sense personality in order for language to have its full meaning."[20] That is, he sees limitations in the utility of an encyclopedia produced by only partially interested third parties as a form of communication.
Hope this helps!
  • asked a question related to Computer Programming
Question
5 answers
Relevant answer
Answer
Dear Hedieh Alipour
I enclose for you one of the  M. Sc. Thesis that covers the  design of Many circuits using Memristor.
Good Lick
Prof. S. EL-Rabaie
  • asked a question related to Computer Programming
Question
8 answers
When researcher use software or computer program how to cite that in paper
for example how to cite Matlab in academic research
Relevant answer
Answer
1.      MATLAB and Statistics Toolbox Release 2012b, The MathWorks, Inc., Natick, Massachusetts, United States.
2.       MATLAB 8.0 and Statistics Toolbox 8.1, The MathWorks, Inc., Natick, Massachusetts, United States.
  • asked a question related to Computer Programming
Question
11 answers
Donald Knuth said:
Programmers waste enormous amounts of time thinking about, or worrying about, the speed of noncritical parts of their programs, and these attempts at efficiency actually have a strong negative impact when debugging and maintenance are considered. We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.
When is that holds to be true? How do I know that I am not wasting my time? 
Relevant answer
Answer
I think what Knuth means is that you should not start optimizing because of a "gut feeling" that some algorithms in the program may run faster. You should first finish the program and then measure the performance. If the performance is sufficient, stop; else identify the problematic parts and optimize only as much as necessary.
Faster code is less readable, and a non-critical perceived problem probably solves itself in one or two processor generations (or your optimization becomes obsolete), so keeping it simple is a very good advice. As Peter implies, the actual most critical parts are often in the most unusual and unexpected places.
So the message is to base the optimization decision on facts (measurements) and not on guessing (programmer intuition).
Question
15 answers
The integer division is a common and useful operation in Computer Science. It comes up in many domains, as in the manipulation of matrices and grids.
Is there any formal symbol for this operation? Or at least a widely recognisable symbol that can be easily differentiated from the standard division (i.e. inverse of multiplication)?
Update: Please do not answer explaining how to use the integer division on this or that programming language. This question is strictly on the formalism to represent this operation.
Relevant answer
In Python, you can use double standard operation division: //
Example: 7//3 returns 2
  • asked a question related to Computer Programming
Question
2 answers
I would appreciate if anyone can point me to latest literature on students(especially first years) learning difficulties in programming.
Relevant answer
Answer
You might find relevant the following studies, whose assumption is that the abduction of algorithms relies on  kinematic mental simulation :
Khemlani, S.S., Mackiewicz, R., Bucciarelli, M., e Johnson-Laird, P.N. 2013. Kinematic mental simulations in abduction and deduction. Proceedings of the National Academy of Sciences of the United States of America, 110, 16766-16771.
Bucciarelli, M., Mackiewicz, R., Khemlani, S.S., e Johnson-Laird, P.N. 2016. Children’s creation of algorithms: Simulations and gestures. Journal of Cognitive Psychology, 28(3), 297-318. doi: 10.1080/20445911.2015.1134541
  • asked a question related to Computer Programming
Question
33 answers
I know C++ and want to improve my level more. I am thinking to improve my level. What about Python?
Relevant answer
Answer
C++ is *THE* industrial strength language period. Primers are good, however two books you should have are 'The C++ Programming Language' - Stroustrup, and 'The C++ Standard Library' - Josuttis. Stroustrup is very understandable and before you waist money on primers, give this a shot. STL takes some getting used to, but is very powerful and can be made to make sense.
Python is very powerful, but because it's late binding and essentially type-less makes it easy to create bugs until you get more experience with it; it's also very annoying if you come from a strongly typed language like C++. However, there are numerous tools to do all sorts of things including on-line code snippet testers which are great. Python has also simplified data structures immensely with it's dictionary/list paradigm however there is no type-ing to catch your typos, so if you inadvertently create a variable what you intended can get lost. My opinoin.
The two languages stack up in my mind like the old comparison between a point and shoot camera, like on  your iPhone, and a Hasselblad. Depends on what you need to do and how long you plan to stay in the game.
  • asked a question related to Computer Programming
Question
1 answer
I am currently looking to improve tracing method using Mango. However I need a solid protocol. Does anyone have a good protocol for Mango? Thank you in advance!
Relevant answer
Answer
Please have a look at Mango NET certificate which is being used in India for tracebility
  • asked a question related to Computer Programming
Question
7 answers
If we have this nonlinear equation
F=exp[a*(N-Z+1)/A]*b*(1+A^1/3)^2,   How we can determine the coefficients a, b, by using MATLAB or other program, the data of F, S, A it in the attached file?
Relevant answer
Answer
Dear Dashty,
Although  I rarely use Matlab because I usually use Mathematica, but I hope the following video to has helpful examples for you.
Follow the second example technique in this video, I think It will help you to solve your problem.
The second video also has detailed data about fitting curves in Matlab.
With Best Wishes
Question
4 answers
Hello!
I would like to implement a VANET prototype in an Arduino or something similiar and I don't know how to start.
If someone could give me some advice on what do I need to start implementing the protocols and those kind of things, it will be very helpful.
Thanks in advance.
Relevant answer
Answer
You want to use Arduino because of it is easy to program. Arduino is a general platform, so you will also need a wireless comm daughter board. Identify which of them provides you the best specs and then just try to connect two devices, one as transmitter other as receiver. After do this, start to configure this simple system doing either transmission and reception, basic physical layer. Then, continue implementing the protocol stack step by step. Check everything twice and DO not remove any SW that works, just make a backup by the way...
Good luck
Question
1 answer
Razavi
Relevant answer
Answer
Hi Vikram,
   If I understand your question, you want to be able to model a high frequency inductor in SPICE with the typical input file  (is this what you mean by "dot" model?).
If this is the case, you could model high frequency effects with an "equivalent" circuit model.   If the frequency effect is nonlinear (obtained from empirical data), you would need to write a C-code that fits the I-V characteristics over the entire frequency range. In this way, you would then include this into SPICE in the same way that CMOS models are included.
Regards,
David.
Question
1 answer
Redis and Memcached systems performs well in hash based tables.
I am trying to explore the tree-based main memory databases.
Some researches wrote in their papers that they replace hash table with B+-tree in Redis.
But i can't find the resources about B+-tree based Redis on the internet.
I was wondering if it is possible that somebody could share the resources about B+-tree based Redis or B+tree based Memcached.
Thanks.
Relevant answer
Answer
Ci sarei io se ti fa piacere  .Grazie
  • asked a question related to Computer Programming
Question
2 answers
As we all know that VORTEX computer program is a simulation of the effects of deterministic forces as well as demographic, environmental and genetic stochastic events on wildlife populations and is widely used in population viability analysis of many wild animals but can it be used for the vulnerable human tribes population viability analysis too? Are there any such studies already done? What changes we have to make in the model for the same?
Relevant answer
Answer
The demographic parameters of human populations are the same as any other animal population, so yes, you can certainly use Vortex to undertake a population viability analysis of humans.
A quick search on Google Scholar brought up this interesting title that might prove useful to your inquiry: Smith, Cameron M. "Estimation of a genetically viable population for multigenerational interstellar voyaging: Review and data for project Hyperion." Acta Astronautica 97 (2014): 16-29.
Question
5 answers
Please can any one help with the following: I am planning to use GA for function optimization using Java, and I believe I should use real encoding. However, I thought I could implement real encoding with the knowledge of binary encoding. But unfortunately, I am having difficulty implementing real coding.
Relevant answer
Answer
Thank you very much. Your suggestions were very helpful.