How to find the Maxima and Minima for each column of a 2D array?
Hello
I have a 2D chart and I would find the maxima and minima of each column of the 2-D table. Even though I know how to get maxima and minima for the whole picture but don't know how columnwise? Any ideas please?
Thank you
Rohit
Hello
@Smercurio-What you said is true, I should have shown using automatic indexing enabled which is really excellent choice. I just tried to show in a very simple way.
Anyway, here's the best way
Tags: NI Software
Similar Questions
-
How to find the first max value for each item
Hello
I have the me_result of the table as below,
SELECT * FROM me_result;
ID ||| ELITE ||||||||||| FREQ_ITEM | COMBINED_STR | SUP
1 ||; 1; 10; 2; 3; 4; 5; 7; 8. 1 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
2 ||; 1; 10; 2; 3; 4; 5; 7; 8. 2 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
3 ||; 1; 10; 2; 3; 4; 5; 7; 8. 3 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
4 ||; 1; 10; 2; 3; 4; 5; 7; 8. 4 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
5 ||; 1; 10; 2; 3; 4; 5; 7; 8. 5 ||||||||||||||; 1; 10; 2; 3; 4; 5; 7; 8 ||| 2
6 ||; 10; 2; 3; 4; 5; 8; 9. 1 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9; 1 ||| 1
7 ||; 10; 2; 3; 4; 5; 8; 9. 2 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
8 ||; 10; 2; 3; 4; 5; 8; 9. 3 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
9 ||; 10; 2; 3; 4; 5; 8; 9. 4 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
10 ||; 10; 2; 3; 4; 5; 8; 9. 5 ||||||||||||||; 10; 2; 3; 4; 5; 8; 9 ||| 2
I need to find the first COMBINED_STR max for each element of the ELITE,
I mean, max value is the max REGEXP_COUNT (combined_str,' ;')))
really, I try to write down, but I had a lot of values for each ELITE and I need only the first, that
SELECT * from me_result
WHERE (ELITE, REGEXP_COUNT (combined_str,' ;')))) IN
(SELECT ELITE, MAX (REGEXP_COUNT (combined_str,' ;'))))) ME_RESULT ELITE GROUP);
I need the result to be as below.
1; 1; 10; 2; 3; 4; 5; 7; 8-1; 1; 10; 2; 3; 4; 5; 7; : p
6; 10; 2; 3; 4; 5; 8; 9 1; 10; 2; 3; 4; 5; 8; 9; 1 1
any help please,.
Published by: user11309581 on July 10, 2011 22:03Can be
with t as (select 1 ID, ';1;10;2;3;4;5;7;8' ELITE, 1 FREQ_ITEM, ';1;10;2;3;4;5;7;8' COMBINED_STR, 2 SUP from dual union all select 2 ,';1;10;2;3;4;5;7;8' ,2 ,';1;10;2;3;4;5;7;8' ,2 from dual union all select 3 ,';1;10;2;3;4;5;7;8' ,3 ,';1;10;2;3;4;5;7;8' ,2 from dual union all select 4 ,';1;10;2;3;4;5;7;8' ,4 ,';1;10;2;3;4;5;7;8' ,2 from dual union all select 5 ,';1;10;2;3;4;5;7;8' ,5 ,';1;10;2;3;4;5;7;8' ,2 from dual union all select 6 ,';10;2;3;4;5;8;9' ,1 ,';10;2;3;4;5;8;9;1' ,1 from dual union all select 7 ,';10;2;3;4;5;8;9' ,2 ,';10;2;3;4;5;8;9' ,2 from dual union all select 8 ,';10;2;3;4;5;8;9' ,3 ,';10;2;3;4;5;8;9' ,2 from dual union all select 9 ,';10;2;3;4;5;8;9' ,4 ,';10;2;3;4;5;8;9' ,2 from dual union all select 10 ,';10;2;3;4;5;8;9' ,5 ,';10;2;3;4;5;8;9' ,2 from dual ) select ID,ELITE,FREQ_ITEM,COMBINED_STR,SUP from ( SELECT ID,ELITE,FREQ_ITEM,COMBINED_STR,SUP, ROW_NUMBER() over (PARTITION BY ELITE order by id) RN FROM t WHERE (ELITE,REGEXP_COUNT(combined_str,';')) IN (SELECT ELITE,MAX(REGEXP_COUNT(combined_str,';')) FROM t GROUP BY ELITE) ) where RN=1 order by id ID ELITE FREQ_ITEM COMBINED_STR SUP ---------------------- ----------------- ---------------------- ----------------- ---------------------- 1 ;1;10;2;3;4;5;7;8 1 ;1;10;2;3;4;5;7;8 2 6 ;10;2;3;4;5;8;9 1 ;10;2;3;4;5;8;9;1 1
-
How to find the value max and min for each column in a table 2d?
How to find the value max and min for each column in a table 2d?
For example, in the table max/min for the first three columns would be 45/23, 14/10, 80/67.
Thank you
Chuck,
With color on your bars, you should have enough experience to understand this.
You're a loop in the table already. Now you just need a function like table Max and min. loop. And you may need to transpose the table 2D.
-
I have copy of old tbird and seamonkey e-mail files with the files and emails for each. I need to add to new tbird install. can not find a way to do it. HELP PLEASE. previous e-mail files are under mail then mail.earthlink* .net and each of the five mail .net is an email address I have. I can't find a way to identify each file by email to the specific email address (IE mail.my E-mail name.net) so I can copy the files and emails from the past to the email addresses now under tbird. previous installed e-mail identities may not be the current configuration of e-mail files in tbird. I think that I must be sure that mail.name.net matches the previous mail.name.net to be able to copy and paste the old to the new. is there a way to find the file name correct the old email and correspond to the new? all my emails very important information are mostly in the old mail electronic id and must be available in the identification of email again (but same) how can I do this?
http://KB.mozillazine.org/Importing_folders
Use this module.
https://addons.Mozilla.org/en-us/Thunderbird/addon/ImportExportTools/
-
How to find the e-mail address for my HP 6700? Printer shows E-Print connected.
I am using the Forum to get a new code to the printer and the printer shows homepage that's on, but now I don't know how to find the e-mail address for my computer.
Hello
In the front of the printer, go to configuration. Locate and enter the Web Services. Aprove any step to activate the service... leave the system a few minutes to complete your registration, a page will be printed automatically with the code printer and directions to select the email address of hpeprint.com.
Kind regards.
-
How to adjust the brightness and contrast for Compaq Presario all-in-One CQ1-1007 D desktop PC
How to adjust the brightness and contrast for Compaq Presario all-in-One CQ1 - 1007 D desktop PC? THX.
There were buttons No. brightness and contrast on the front of the monitor-no onscreen menu.
On your desktop,.
Right-click to select graphic properties->in display settings, click Advanced settings
Here you go, you can do almost anything with the brightnessHope it helps
-
How to set the brightness and contrast for HP Omni 120-1125.
You will have to troubleshoot my mother-in-law who has a HP Omni 120-1125. Impossible to find info in the online books
I don't know any button to change the display settings on this computer. However, I think I can help you find the equipment and audio in the control panel. I hope that all you need to do is change the setting "display by. I suspect that right now, it's on one of the icon views.
Open the control panel and in the upper right, click the drop-down list next to "view in:
Select "category".
You should now see a list of categories, including equipment and audio.
And now, I hope that the steps that I posted before will work for you. Please let me know if you encounter any problems.
-
How to find the utilities and windows drivers VGN-CR36G 8?
Hello
I use laptop Vaio VGN-CR36G with vista ultimate. Now, I want to install windows 8 enterprise edition.
But I can't find the drivers and utilities on the site of sony vaio.
But my product is compatible for windows 8 OS.
Here is the link below:
http://www.Sony-Asia.com/support/product/VGN-CR36G
Can someone please help me to download all drivers and software?
Thank you
Hi Whiteeasy.
This model does not support Windows 8 operating system which you can confirm from the link below.
If my post answered your question, please mark it as an "accepted Solution".
-
How to find the object and remove from the WordPress site.
There is a search form that appear on each page. It is just below the entrance by the WP user content for each page.
I've been using Firebug in Firefox and I can see the code it puts in Firebug, but I can't find the source file so that I can change the code using DW to remove this search form.
Please help if you can.
I found it. It is searchform.php and she is called to sidebar.php where the other widgets are called from.
I hope this helps someone else.
Thanks for your help Nancy OShea
-
How to find the numbers and make it more 1
Hello world
I want to find a group of numbers in my selection, and then do it + 1
for example:
elderly (\d\d)
I want to do is + 1
and
201 (\d)
I want to do is + 1
What is the syntax?
Thank you
VK
Hi, VK,.
Try this. It looks up the number in the selection and added, for example, finds it "(20) years", "201 (2)" and will replace it for "elderly (21)", 201 3 respectively.
var _selection = app.selection[0]; app.findGrepPreferences = changeGrepPreferences = null; app.findGrepPreferences.findWhat = "(aged) (\\(\\d\\d\\))"; var found = app.selection[0].findGrep(); for(var i=0;i
Kind regards
Cognet
-
How to calculate the second and minisecond for audio landmark
I'm doing a sound synchronization for the clip audio and video in Flash. I found a tutorial on the web, and it seems to work. However, I do not know how to calculate the second and the mini (deuxieme from mp3 file. The first frame has the following lines to set the duration for each animation:
Import class
Import net.quip.sound.SoundSync;
Stop the main timeline
Stop();
Create an instance of SoundSync
var ss:SoundSync = new SoundSync();
ss.addCuePoint ("IT", 20100);
ss.addCuePoint ("admin", 20000);
ss.addCuePoint ("maintenance", 19800);
ss.addCuePoint ("treatment", 16479);
ss.addCuePoint ("engineering", 14598);
as.addCuePoint ("logo_epa_npdes", 12356);
ss.addCuePoint ("construction", 8967);
ss.addCuePoint ("370 mg/j", 7896);
ss.addCuePoint ("mc_650, 000 ', 5439);
ss.addCuePoint ("130 mg/j", 3254);
ss.addCuePoint ("1938", 2439);
ss.addCuePoint ("vintage_mc", 0);
Use the instance of loading external MP3
ss.loadSound ("Scn04 - 05.mp3", true);
Create a listener object for the
cuePoint and onSoundComplete events
var listener: Object = new Object();
listener.cuePoint = function (): Void {}
Play();
}
listener.onSoundComplete = function (): Void {}
Play();
}
ss.addEventListener ("cuePoint", listener);
ss.addEventListener ("onSoundComplete", listener);
and the soundsync.as file as follows:
Import mx.events.EventDispatcher;
Import mx.utils.Delegate;
class net.quip.sound.SoundSync extends its {}
PROPERTIES
private var _cuePoints:Array;
private var _currentCuePoint:Number;
private var _interval:Number;
private var _intervalDuration:Number;
private var _secondOffset:Number;
Event dispatcher
public var dispatchEvent:Function;
public var addEventListener:Function;
private var removeEventListener:Function;
CONSTRUCTOR
public void SoundSync(target:MovieClip) {}
Super (target);
init();
}
METHODS
private function init (): Void {}
Initialize properties
_cuePoints = new Array();
_currentCuePoint = 0;
_intervalDuration = 200;
_secondOffset = 0;
Initialize the instance of the class as the valid event broadcaster
EventDispatcher.initialize (this);
}
Add Cue Point
public void addCuePoint(cuePointName:String,_cuePointTime:Number):Void {}
() _cuePoints.push
{
type: "cuePoint",.
name: cuePointName,.
time: cuePointTime,.
target: this
}
);
_cuePoints.sortOn ("time", Array.NUMERIC);
}
Get cue point
public void getCuePoint(nameOrTime:Object):Object {}
var counter: Number = 0;
While (counter < _cuePoints.length) {}
If (typeof (nameOrTime) == 'string') {}
If (_cuePoints [meter] .name == nameOrTime) {}
return _cuePoints [counter];
}
} Else if (typeof (nameOrTime) == 'number') {}
If (_cuePoints [meter] .time == nameOrTime) {}
return _cuePoints [counter];
}
}
counter ++;
}
Returns a null value.
}
Get the Index of the current Cue Point
private void getCurrentCuePointIndex(cuePoint:Object):Number {}
var counter: Number = 0;
While (counter < _cuePoints.length) {}
If (_cuePoints [meter] .name == cuePoint.name) {}
return the meter;
}
counter ++;
}
Returns a null value.
}
Get the next Cue Point index
private void getNextCuePointIndex(seconds:Number):Number {}
seconds (seconds) =? seconds: 0;
var counter: Number = 0;
While (counter < _cuePoints.length) {}
If (_cuePoints [meter] .time > = seconds * 1000) {}
return the meter;
}
counter ++;
}
Returns a null value.
}
Benchmark deleted
public void removeCuePoint(cuePoint:Object):Void {}
_cuePoints.splice (getCurrentCuePointIndex (cuePoint), 1);
}
Remove all Cue Points
public function removeAll_cuePoints (): Void {}
_cuePoints = new Array();
}
Beginning
public void start(secondOffset:Number,_loops:Number):Void {}
Super.Start (secondOffset, loops);
dispatchEvent ({type: "onStart", target: this});
Reset benchmark
_secondOffset = secondOffset;
_currentCuePoint = getNextCuePointIndex (secondOffset);
Poll for cue points
clearInterval (_interval);
_interval = setInterval (Delegate.create (this, pollCuePoints), _intervalDuration);
}
Load sound
public void loadSound(url:String,_isStreaming:Boolean):Void {}
super.loadSound (url, isStreaming);
clearInterval (_interval);
_interval = setInterval (Delegate.create (this, pollCuePoints), _intervalDuration);
}
Stop
public void stop(linkageID:String):Void {}
If {(linkageID)
Super.Stop (linkageID);
} else {}
Super.Stop ();
}
dispatchEvent ({type: "onStop", target: this});
Kill the ballot
clearInterval (_interval);
}
Survey benchmarks
private function pollCuePoints (): Void {}
If the current position is close to the cue point.
var time: Number = _cuePoints [_currentCuePoint] .time;
var span: Number = (_cuePoints [_currentCuePoint + 1] .time)? _cuePoints [_currentCuePoint + 1] .time: time + _intervalDuration * 2;
If (position > = time & & position < = span) {}
Send event
dispatchEvent (_cuePoints [_currentCuePoint]);
Advance to the next landmark...
If (_currentCuePoint < _cuePoints.length) {}
_currentCuePoint ++;
} else {}
_currentCuePoint = getNextCuePointIndex (_secondOffset);
}
}
}
EVENT HANDLERS
onSoundComplete
public function onSoundComplete (): Void {}
Kill the ballot
clearInterval (_interval);
Reset benchmark
_currentCuePoint = 0;
Send event
dispatchEvent ({type: "onSoundComplete", target: this});
}
}
any help will be greatly appreciated.Wuzhishan,
> Hi Dave, your tutorial is very cute and it is very useful.
Thank you! My daughter is cute. She inherited all of
me, so I have not left. ;)> I'm sorry that I don't have my question clearly.
No worries. :)
> I have listen mp3 in Windows Media Player and try to
> get both for the tail, I found it on the bottom of the
> player time indicates 00:26.I'm with you.
> How can I writer this number in the code? Is it 0026 or 26?
The code expects milliseconds, then 26 seconds would be written as
this:26000
If he said 01:22 (one minute and 22 seconds), you must write it like this:
82000
... which is 60 seconds for now, 22 seconds
side, then multiplied by 1,000 to get milliseconds.David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design." -
How to find the maximum and minimum of a waveform between cursors
Hello!
Does anyone know an easy way to find the maximum and minimum of a waveform between two sliders?
Kind regards
Andreas
Hi Andreas,
attached, you get an example of it in MeasurementStudio.
-
How to assign the ID of group for each group in the SQL query.
Hi all
I want to assign the ID of group for each group (group ID of series). I tried with the row_number function but did not work for my requiredment. Here is my sample data and my requirement.
Col1 A A A A A B C D D D D E E E F G G G I want to get number of each column with ID group assign to it value. Here is my example output
Col1 County Group ID A 5 1 A 5 1 A 5 1 A 5 1 A 5 1 B 1 2 C 1 3 D 4 4 D 4 4 D 4 4 D 4 4 E 3 5 E 3 5 E 3 5 F 1 6 G 3 7 G 3 7 G 3 7 Select col1, count (1) NTC (col1 partition).
ROW_NUMBER() over (partition by col1 by col1 order) tbl_test grp_id.
Please help me solve this problem.
SELECT
COL1,
COUNT (*) ON MYCOUNT (COL1 PARTITION).
DENSE_RANK () OVER (ORDER BY COL1) GROUPID
Of
T1;
-
read the max and min of each column value
Dear qudoe
I'm doing a program in labview that challenge me to fight with a time.
Here, I enclose my labview code in which I have a data file, which includes 500 columns that I need to find the values min and max of each column.
I tried my best, but it takes 30 seconds to find the min and max value of each column.
I want to do this in less than a second.
so can anyone suggest me any necessary correction that can stimulate my program.
You don't have to open and close the file in a loop all the time and also you don't really need some time for this. Check the related code.
Of course, you can still optimize it for best performance, I just did a quick project to show how simple it is.
-
Last backup completed in September - how can I save now please
Hello1. you remember to make changes to your machine before the problem?
2. you have any third-party backup utility installed on your computer?
3. What are you trying to backup?
4. that you make a system image backup?Try another backup file and check.Follow the steps and check if that helps.Step 1:I suggest that you run SFC analysis and check if the problem is related to the file system damaged or missing.Step 2:Check your hard drive for errorsWarning of Chkdsk.
Important: when running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lostAziz Nadeem - Microsoft Support[If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]
Maybe you are looking for
-
broken? : new message arrived sound-selection
In tools-> Options-> general"When new message arrives"'Play sound '.by clicking on 'Browse' does nothing.and can not enter the path manually either.
-
Adding an SSD in HP Pavilion 15
Hi all. Consider buying an HP Pavilion 15 (model P002EJ ) to be precise. It comes with i7 4510U, 12 GB RAM, 1 TB HDD and 15.6 "screen FHD. I just wanted to ask: can I install an SSD in this laptop without removing the existing HARD drive? Just add to
-
Como puedo get the clave COA para realize downgrade from Windows 8 one of Windows 7 32 bit
Buenas tardes: The empresa in the trabajo ha comprado una 86 computers HP EliteDesk 800 G1 SFF, las which amount han venido con license OEM Windows 8 64-bit y con Windows 7 32-bit media. El problema radIca in Los sistemas y applications than utilizam
-
Sony Smartwatch 2 - How to remove apps?
How can I remove the smart watch apps? I have reset but it then just reload the apps when it reconnects to my Z1. See you soon Kevin
-
Error page_fault_in_nonpaged_area when installing Vista
Hello I am trying to install windows vista after desprating performance, but I get the blue screen of death with the following error when expand Windows startup files and happens to 0% after comping files windows. NTFS.sys PAGE_FAULT_IN_NONPAGED_AREA