Help me for get this with array
I have a 2D array of integer number. I need compare each element of array and determine if this number is greater than 0.8; if number is greater than 0.8 I must remain the number, else if the number is less than 0.8 I must replace the element for a cero "0".
I would like thet you do suggestions for this. Help. I think use search 1D Array, but my array is 2D....Thanks
tyk007 wrote:
My advice would be similar to the brute force method mentioned with nested FOR loops, though I would tend to using the In Place Element structure and using the indices of the FOR loops to specify the index that needs checking. This also limits memory allocation if the 2D array is particularly large.
While the in place element is a good suggestion there is no benefit or advantage to using the loop index instead of using auto indexing. Is there a reason you believe this is a better approach?
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Similar Messages
-
device disabled after entering wrong passcode.
Please help me in getting this unlocked without lossing the data as the data is really important for meI think you should call via phone or perhaps take it to a phone store. I suggest taking your id, box packaging and other necessities such as the reciept of the phone being purchased.
Hope this helped -
hi ..... i forget my icloud id and i format phone with pc when it turn on it say (activating iphone) now plz plzzzzz help my i get this iphone before 10 days ONLY this is my first time to use iphone plzzzz help
but i already try to remember ,,,,,,,,,,,,, that mean my iphone it will not open again
-
Help me for solve this Question this is my problem
help me for solve this Question this is my problem
i installed EBS 11i fresh not vision
i did cart of account and did set of book
then assigned it with profile option gl set of books name
and when enter to make ajournal appeare this messege
[http://www9.0zz0.com/2009/10/06/03/232202588.jpg]
[http://www9.0zz0.com/2009/10/06/03/634050066.jpg]Hi,
Not sure why are you getting this kind of error (which is pointing to a URL with Jpg file) while creating a journal.
Could you please bounce your server once and try..
Please let us know if the error/warning stopping you to enter a journal in GL??
We don't think profile option is a show stopper here.... We assume that you have assigned Sets of Books, MO: Operating unit & HR USer Profile option at Responsibility level correctly....
Regards,
S.P DASH -
How to do like this with array?
How to do like this with array?
I have 2 constants array put in main while loop ( array1{6,6}; array2{4,4} ). Those arrays will be come the input data for st in the small while loop inside.
The input data look like : [6,6],[4,4],[6,6],[4,4]...... I have to put input data to result array[8]. The method is:
input data result data
[6,6] --------------------------------------------> [6,6,0,0,0,0,0,0]
[4,4] --------------------------------------------> [6,6,4,4,0,0,0,0] ( this period, just add each element in new array)
[6,6] --------------------------------------------> [6,6,4,4,6,6,0,0]
[4,4] --------------------------------------------> [6,6,4,4,6,6,4,4]
[6,6,4,4,6,6,4,4] ( 1st period )
When the las index of result data array is filled in, I have to collapse the result data array to be this array:
----------> collapse: [6,4,6,4,0,0,0,0] ( take the average of 2 continuous element add to new result data array)
Next input data
[6,6] --------------------------------------------> [6,4,6,4,6,0,0,0]
[4,4] --------------------------------------------> [6,4,6,4,6,4,0,0] ( this period, add the average of 2 continuous elements in new array )
[6,6] --------------------------------------------> [6,4,6,4,6,4,6,0]
[4,4] --------------------------------------------> [6,4,6,4,6,4,6,4]
[6,4,6,4,6,4,6,4] ( 2 nd period)
----------> 2nd collapse [5,5,5,5,0,0,0,0] ( take the average of 2 continous element add to new result data array)
Next input data
[6,6] ....wait until input data has 4 elements
[4,4] -------------------------------------------------------------------------------------> [5,5,5,5,5,0,0,0]
[6,6] ....wait until input data has 4 elements
[4,4] -------------------------------------------------------------------------------------> [5,5,5,5,5,5,0,0]
[6,6] ....wait until input data has 4 elements
[4,4] -------------------------------------------------------------------------------------> [5,5,5,5,5,5,5,0]
[6,6] ....wait until input data has 4 elements
[4,4] -------------------------------------------------------------------------------------> [5,5,5,5,5,5,5,5]
[5,5,5,5,5,5,5,5] ( third period )
----------> 3rd collapse [5,5,5,5,0,0,0,0]
This wayl to make the tren graph.I made an VI to do that , but it's not yet correct.
Attachments:
tryyyyyyy.vi 39 KB
trend_mode.JPG 49 KBFrankly, I don't understand your problem description or your VI.
In the description, the output array has a fixed size of 8 elements, is this correct? In this case you should initialize an array of 8 elements and do all operations "in place". I don't udnerstand the purpose of all the other code.
There are a lof of things that don't make any sense at all.
The second largest loop has no purpose, because it iterates only once per call
Sometimes you are concatenating an empty array to an existing array. This makes no difference.
Why is some of your data EXT representation???
What's up with complicated constructs such as that small loop shown in the picture. I show a somewhat simpler alternative.
Anyway, I have a hard time understanding your description. What should happen at the end? Do you have a link to a website that describes the algorithm? Does the algorithm have a name?
Message Edited by altenbach on 01-10-2008 09:55 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Simplify.png 5 KB -
Help I just get stuck with the blank screen and the white circle
help I just get stuck with the blank screen and the white circle after i erase all content and setting
i dont know how to do pls help.Try connecting the device to your iTunes library and restoring it. If necessary place the iPod into recovery mode using the instructions in this Apple support document.
iOS: Unable to update or restore
B-rock -
Hi there - Every time I try to open an app, it seems to crash. Has anyone experience this problem? Suggestions are appreciated for getting this fixed. Thx!
- Reset the iPod. Nothng is lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Purchase/.install any new app.
- The remaining items here:
iOS: Troubleshooting applications purchased from the App Store
- Last, restore the iPod -
I forgot restrictions cod in ipad air1 and don't off it , please help me for recovery this cod
i forgot restrictions cod in ipad air1 and don't off it , please help me for recovery this cod...
Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
A
1. iOS- Forgotten passcode or device disabled after entering wrong passcode
2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
3. Restoring iPod touch after forgotten passcode
4. What to Do If You've Forgotten Your iPhone's Passcode
5. iOS- Understanding passcodes
6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
7. iOS - Unable to update or restore
Forgotten Restrictions Passcode Help
iPad,iPod,iPod Touch Recovery Mode
You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
Also, see iTunes- Restoring iOS software.
And also see How to Recover Forgotten iPhone, iPad Restrictions Passcode. -
hi everybody,i have a ipad 2 wifi 3G , and i want to share my internet from ipad to an other ipad or pc , when i check setting menu,i cannt see ,"personal hotspot" ,please help me ,for active this option on my ipad
how can i ,install this function on my ipad ?please help me
is there any way for solution my problem?i mean that how can i personal hotspot or an onther application for this purpose
i will have a internet sharing by ipad for my labtop -
Why do I get this message? It drives me crazy and I can not find any support in the support pages...
The request for account “iCloud” failed.
The server responded with
“400”
to operation CalDAVUpdateShareesQueuableOperation.Follow the links given in the right panel, under "More Like This", they should provide answers.
-
Can some one HELP me , I keep getting this error with my Time Machine Back up, "The backup disk image “/Volumes/JKPN Safe/JKPN IMAC.sparsebundle” is already in use.
See > http://pondini.org/TM/C12.html
-
Can some one help me in getting VLC player for my touch ipod.
It's not possible, because VLC is not in apple market
You can use AcePlayer to view different types of film
Best Regards -
Columns for spreadshee​t with arrays
I have a data acquisition program that saves arrays as .txt files for
further analysis. I'm writing a program and having problems getting the
data in 4 columns like I want.
My data consists of 4 files, 10 data points obtained per iteration.
Each iteration is saved as a new column. The files have a lot more that
2 columns in reality. For example
A B C D
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
I would like som
e help in getting my 4 files put into one file,
consisting of 4 columns only. I would like my data to look as follows.\
A B C D
1 3 5 7
1 3 5 7
1 3 5 7
1 3 5 7
1 3 5 7
1 3 5 7
1 3 5 7
1 3 5 7
1 3 5 7
1 3 5 7
2 4 6 8
2 4 6 8
2 4 6 8
2 4 6 8
2 4 6 8
2 4 6 8
2 4 6 8
2 4 6 8
2 4 6 8
2 4 6 8
and so on. Essentially I want to take each iteration of data and place
underneath the previous iterations data in one column. I have tried
many different methods with for loops and various array tools and can
not get it right. Any ideas and help would be greatly appreciated!
Heather
Sent via Deja.com http://www.deja.com/
Before you buy.> How about...
>
> If you open your text files into strings, then 'match pattern' within
a
> while loop or otherwise search the strings to replace any 'newline'
> characters with Tabs. If you then convert the string to an array, you
should
> have one long row. You can then transpose this to one long column with
one
> of the array tools - 'reshape array' maybe - I can't remember. If you
do
> this for all 4 files, then use 'build array' to stick them together,
you
> should get what you want.
>
> Paul
>
>
Paul,
Thanks for your help. I used the match pattern to find and replace
the new line characters with tabs. The four columns have 10 data
points, then two zero's separating them from the next 10 points. I used
the same idea to get rid of the retur
n characters and replace them with
tabs, which got rid of one row of zeros. I've tried the same idea using
backspace, form feed, space characters, etc, and I still have one row of
zeros separating my data points. Do you have any idea what this
character could be? I tried all of the characters in the manuals and
none will get rid of this problem. Again, thank you very much for your
push in the right direction!
Heather
Sent via Deja.com http://www.deja.com/
Before you buy. -
Help..keep getting this error
I use Acrobat Pro 7.0 and I am starting to get this error
when I open a pdf file.
"The Organize database is damaged and will be reset the next
time Acrobat is launched. Quit the application and close any other
opened web browsers."
Any advice would be much appreciated.Hi finestins,
Thanks for your post. However, this Forum is meant to discuss
issues related to acrobat.com and not acrobat. To post an issue
related to acrobat please visit the acrobat forum :
http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/
You may also open a web case with Adobe Support. To do so,
please visit the following link :
https://www.adobe.com/cfusion/support/index.cfm?event=portal -
Help needed,
I am getting this message sandbox environment error no test user account, when downloading any application from iTunes, friend told me to sign out and sign in iTunes it might solve the problem , and i triyed it but still I cannot login I to my itune account. Same message keeping. Popping up, this problem started supricly today.Take a look at the instructions here.
http://www.technogal.net/2012/03/this-is-not-test-user-account-please.html
Maybe you are looking for
-
Dear all, We are in ECC 6.0 from past 2 yrs and we are planning to activate the new G/L as it has not been activated before. 1. I want to know the steps ,Pros & Cons and do & don't of new G/L migration from clasic G/L. 2.Is there any program which ca
-
Network setup app is missing from the marketplace
Hi Nokia network setup app is missing from Nokia lumia 710 marketplace Please help me ..... I am unable to run internet on my phone
-
Dynamic parameter with an IMPORT statement
Hello experts. I hope you can help me with this issue: I have a report performing an EXPORT statement into a Buffer: EXPORT I_USER FROM P_USER I_NAME FROM P_NAME I_SURNAME FROM P_SURNAM TO DATA BUFFE
-
Areca RAID Battery Backup Module Problem
From the advice on this forum, I decided to go for an Areca 1680ix-12 and I've had it for about a week. I now have a 6 disk RAID 3 running. However, the battery back up unit was delayed, so I have only been testing the RAID so far and haven't enabl
-
Is anybody using this functionality in your SAP system ? This is different than regular change number.