Despite searching on mathworks site, I did not succeed in finding some way that can generate a flow chart of the matlab .m program file.
Do anybody know any clue about it?
Related
I am trying to solve a Linear problem programmatically with C# using Microsoft Solver foundation library.
Currently our business is solving the problem manually using the Excel Solver Add-in.
Now, I am trying to automate the same thing in C#.
I am providing the link to the excel file, you can run the solver and see the results.
Notes file will provide the description of data and the problem statement and the what excel solver is solving.
https://github.com/shashiram-p/simplex-excel-solver.git
Please guide me on how to add variables and constraints using C# to solve this problem.
Thanks,
Shashiram
I am using vs code for code editor. One feature I really like is "go to definition". However, my code is mixed with c++ and matlab source code. When I open c++ code, I can use the feature to jump to a new location in different file. However, for matlab code I could not do it. In gvim, I can use gf command to jump to files with suffixes add. In source insight, I can add simple definition for matlab function. But in vs I can not do it. I want to create my own go to definition for matlab function. But the vs code is too complicated (compare with gvim and source insight) to create such feature for a new language.
Could someone pointed me a location that I can get a complete implementation of this feature, so I can modify the code to fit for matlab function? To create by myself without such code is really out of my capability. I googled around and do find some information about this. But they are not complete and hard to understand for me.
Thanks
Frank
I'd like to save a matlab figure with transparent background, on mac, and import into Keynote.
This question was asked in 2013, but I understand matlab has changed its graphics handling since then. Is there a 'good' way to do this? The plotting syntax is so scattered and overloaded.
I looked for this myself some time ago. Mathworks seems to state that this is not directly possible in matlab and that it isn't a feature they plan on introducing as well:
http://ch.mathworks.com/matlabcentral/answers/19907-transparent-background-for-figures
But as stated in the link it can easily be achieved using a third-party program (for example inkscape, which is freeware(opensource?) program) if you export the figure as a .eps or .pdf. This basically enables you to directly edit or delete certain parts of the image.
This is probably not exactly what you were looking for, but I know of no easier native solution than this. However the author refers to export_fig which might directly solve you porblem (I don't have any experience using it, sorry).
I am supposed to work with an existing code in my work and at some places the previous programmer has extensively used Fimath function. Unfortunately, I am not having the license for the Fixed Point Designer toolbox and was looking for some alternatives.
I tried getting the fimath.m file from another source but it is referencing to some embedded libraries in the toolbox.
Is there some other way in which I can bypass this problem?
Thank You
Im sure there are a thousand different posts on Maple vs Matlab, but i have a bit of a unique set of requirements and before i go off to learn one of the two i would like to know which one will do it best.
I have a set of data from an accelerometer recording an impact. I need to do the following:
fit a curve to the data
Find the equation for that curve
solve the equation listed at the link
http://upload.wikimedia.org/wikipedia/en/math/2/d/3/2d39556df1dbbd467dc914253e93cdb0.png
which solves for a family of curves,i.e the MAX under the interval.
I would like to do this as seamlessly with visual studio as possible. The GUI and all the other elements of the app are built in VB and I would like to keep it there. I know maple has a code generating part to it that will convert to VB, would it be able to handle something like this? Does Matlab integrate with Visual Studio well? I would be thrilled if there was an object i could place on the VB form which would facilitate the communication to and from the matlab or maple framework. Currently i have it working with R, however to do so i need to write the data to a file, launch the R script, wait for it to finish, return control to my VB app and take it from there. This process takes too long and since i do not have experience with multi threaded programming the GUI freezes up when control is passed to the script.
Any help or suggestions would be very much appreciated!
In your case I would choose neither of the two. You may have a look at Python Tools for Visual Studio. The blog post mentions support for NumPy & SciPy for .Net which gives you all the math power you need at hand well integrated in the .Net world.
EDIT:
By looking at matplotlib's gallery I'm tempted to say that matplotlib is on par with MATLAB.
MATLAB doesn't auto-generate VB code, but it can easily be called from a VB application without the indirection of writing a file. It has COM interface that can be called directly from within VB code. See this example from the MATLAB documentation to find out more.
To carry out the technical analysis you've mentioned, you would probably save time by using Curve Fitting Toolbox in addition to base MATLAB.
Note that the above method of connecting to MATLAB via its COM interface relies on there being a live copy of MATLAB present when the VB application is executed. If you need to share your application with people who don't have a copy of MATLAB, you can also create standalone COM components and .NET assemblies from MATLAB code that can be called in the same way by your VB code, but can be deployed freely to people without a MATLAB license - however, this requires an extra product, MATLAB Builder for .NET.