MATLAB and DDE LINKS - matlab

I have developed an trade automator in excel, but its too slow, now im trying to do this in matlab.
One of the links I use to feed my sheets in excel is :
=TWSVR|CMA!'0012PETR4;25'
I'm trying to receive the same data in matlab, here is what I did:
channel = ddeinit('TWSVR','CMA')
lastPetr = ddeadv(channel,'0012PETR4;25',callback)
So is this right? Where can I see the data? Where is stored?
This callback function is the one I have to developed to process the data?

Matlab does not support DDE any more. You can still use DDE, but you may run into troubles.
For data exchange with Excel, I would suggest using xlsread, xlswrite and xlsfinfo instead.

Related

Plot3D Reader Sample Data

Is there a place to find sample CFD data in this format please?
I am trying to create scripts for Paraview to automate files opening and want to use the track function.
Data from this article can be used to test out the file format:

How to save mpi profile summary report in matlab

I want to save the details of each worker as it is seen in the mpiprofile summary report. Profsave does not give all the details very clearly for the report generated by the mpiprofile viewer option.
Is there any other way to save the report?
One way I figured to do something similar is the following.
I am assuming you are using "pmode" because as far as my understanding goes, you need to run on "pmode" to run mpiprofile.
So this is how it goes.
Saving
Save the mpiprofile info inside each worker(or it is often called lab from my understanding).
mpiprofile mpistruct;
Then you transfer to the client using the following command
pmode lab2client mpistruct;
Then save the mpistruct into a .mat file
save('mpistruct');
Loading:
When you are trying to view the mpiprofile result:
Load the mpi file
load('mpistruct.mat');
Run mpiprofile viewer
mpiprofile('viewer', mpistruct);
This should pop up the browser.
Note. Above code was tested with 2015b.
(I wrote the same exact answer to Matlab community. I copied for your convenience.)

Combine two TCPDF documents

I'm using TCPDF to create two separate reports in different parts of my website. I would like that, in the end of the first report, the second report should be loaded.
It's different than import a PDF file, because the second report is also generated by TCPDF. Is there a way to do this?
I assume from your question that what you ultimately want to provide is one PDF file that consists of the first PDF concatenated with the second PDF.
One quick and dirty solution is to utilize the pdftk command line PDF processor and call it from within your PHP code using the exec() function. The pdftk command has many features and concatenating files is only one of them, but it does an awesome job. Depending on your hosting situation, this may or may not be an option for you.
The other option would be to use FPDI to import the two PDF files and concatenate them within your PHP code and then send the concatenated version to the user.
More information on using PFDI here:
Merge existing PDF with dynamically generated PDF using TCPDF
Given that you're already using TCPDF, importing the pre-existing file that you want to concatenate with the one you've just created shouldn't be too difficult.
Just add FPDI to your project/composer from:
https://www.setasign.com/products/fpdi/downloads/
Can you still used tcpdf.
FPDI support all the methods of tcpdf, just used new FPDI() instead new tcpdf() the result will be the same in your report, after you create your report marge the files with the code from this page:
https://www.setasign.com/products/fpdi/about/
In a loop, once set the first file and after this set the second...
If you will need help i am here for you.

Write XLSX file - Oracle forms

i am trying to create xlsx file based on block data in oracle forms.
Is it possible to generate xlsx using webutil(Text_io) or by using java beans?
any sample please share me.
thanks
V
In my opinion and experience it is best using UTL_File to generate text file then open it with Excel. You can use Text_IO also. If I find the example I will post it.

Accessing files on webserver with Matlab

I have written a Matlab script to perform some analysis on audio samples recorded at different locations. I have a mobile app that records audio and stores it on a web server. Is there a way I can access this file from Matlab as an input to the script? The url and individual file names will be available, I assume there is a Matlab command that uses this information.
Thanks,
Try something like this:
str = urlread('http://stackoverflow.com');