Calling MATLAB functions in Visual Basic
Show older comments
I made a very simple program to try how to call matlab functions in visual basic. My matlab program is this:
function showRGB()
origImage = imread('imagefromvisualbasic.jpg');
redChannel = origImage(:,:,1);
greenChannel = origImage(:,:,2);
blueChannel = origImage(:,:,3);
end
Here's the GUI of the app made in vb.


1. How will I use the imread in matlab to read the image from the openDialogBox of VB?
2. How will I use access the output from MATLAB to show the RGB Channels in the picture box?
Thank you
Accepted Answer
More Answers (0)
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!