Constantly Changing Range

NegativeKurtosis

New Member
Joined
Jan 14, 2018
Messages
15
Hello all Excel Users,

Wondering how I might go about achieving the following :

I have a link from Matlab 9.5.0.944444 (R2018b) to Excel 2016 and below is a code snippet and explanation of what I am trying to achieve -

1. MLEvalString "AD = wdenoise(AC,5, 'Wavelet', 'db9','DenoisingMethod', 'UniversalThreshold',
2. 'ThresholdRule', 'Soft', 'NoiseEstimate', 'LevelIndependent');"
3. MLGetMatrix "AD", "AD5"
4. MatlabRequest
5. Range("AD4100").Copy Range("AE4101")
6. Range("AE5").Delete Shift:=xlUp
7. Range("AE4101").Copy Range("AF4101")
8. Range("AE5").Delete Shift:=xlUp
9. Range("AF5").Delete Shift:=xlUp
10. MLGetMatrix "AF", "AF5"
11. MatlabRequest


Code snippet line notes :
1 & 2 - Wavelet parameters getting assigned in Matlab to Excel column AD
3 - Wavelet parameters getting listed beginning in column AD 5
4 - Matlab making the request from # 3 to Excel
5 - 9 These lines should be pretty familiar to most Excel users....basic copy / paste stuff with a couple delete shift up commands.
10 - Wavelet parameters getting listed beginning in column AF 5
11 - Matlab making the request from # 10 to Excel

The problem I am trying to solve is to update range AF5 : AF4100 but ONLY the LAST value. How can I bring in current values to it, to begin the analysis, THEN, only update AF4100 every time a new values comes into Matlab and then delete / shift up those values so that I always maintain the same number of values in my
range which is 4096. I am having no issues what so ever communicating with Matlab, just trying to figure out how to begin and update this ever changing range in Excel. Any examples, links, suggestions etc would be
greatly appreciated.

Thanks,
Richard
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,223,676
Messages
6,173,761
Members
452,534
Latest member
autodiscreet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top