Click here to Skip to main content
15,891,652 members
Everything / MatLab

MatLab

MatLab

Great Reads

by n.podbielski
Using Matlab from a C# application
by dcmuggins
Breif tutorial on how to convert an RGB image to grayscale within MatLab
by JinWenQiang
This tip is a brief introduction of Network Calculus. I used Matlab codes to show you the results and to explain how it works.
by Roozbeh Abolpour
The data-driven MPC is implemented in this project that can be easily exploited

Latest Articles

by Member 4206974
The article is about Matlab - Octave scripts for easy create forms with the most useful controls (texts field, lists, radio buttons, check boxes, sliders, ...)
by Roozbeh Abolpour
The data-driven MPC is implemented in this project that can be easily exploited
by Huseyin Atasoy
An image classifier / tagger based on convolutional neural networks. Now more than 10 times faster with the Intel MKL support.
by Mahsa Hassankashi
Best practice for learning Basic of Machine Learning and Gradient Descent based on Linear Regression. This article will explain step by step computational matters.

All Articles

Sort by Title

MatLab 

29 Apr 2023 by Member 8840306
I am new in using tensorflow keras using python.I am trying to run this statement in Jupter Notebook import matlab.engine It is givng this error ModuleNotFoundError: No module named 'matlab.engine'; 'matlab' is not a package For...
29 Apr 2023 by Richard MacCutchan
The relevant messages are: FileNotFoundError: [WinError 2] The system cannot find the file specified // and RuntimeError: MATLAB installation not found in Windows Registry: [WinError 2] The system cannot find the file specified And the...
17 Apr 2012 by Mehmet Mutlu
Details of my solution algorithms, implemented programs, and the results I have concluded.
29 Apr 2011 by Member 7885176
Hi I am trying to decompile a 32KB .exe MATLAB file. I tried the "Boomerang" software, it extracts the project m-files and figures. the figures are ok and the MATLAB can show them. but when I open the m-files, it contains unmeaning characters.how can I see the m-files codes? Do you know...
30 Apr 2011 by Albert Holguin
Decompilers don't typically do a very good job of producing easily readable code. Unfortunately, you may be stuck with what you have (unless someone knows something I don't).
6 Dec 2012 by zabih_danesh
Please Help me!I am dealing with (A 2D positioning system using WSNs in indoor environment) project which once has been done by Hakan Koyuncu and Shuang Hua Yang -in this link-->(http://www.ijens.org/Vol%2011%20I%2003/119503-0707%20IJECS-IJENS.pdf[^]), and I want to improve it.But I have...
6 Dec 2012 by Dave Kreskowiak
You really think someone is going to do all the research for you?? That's not how it works, here or anywhere.
6 Apr 2015 by QutaibaMustafa
Hi ^_^ I want to make a 3D painter using Matlab.First of all I want to display 3 panels - XY, XY and YZ Views. The user will paint what he wants in each panel. After that he will click on a button to combine the 3 views and get a 3d model from these panel. He also can render this model...
9 Jul 2015 by zkl59381
MatLab may not fully meet your needs.Can you use others 3D library ? Like : OSG,VTK,Opencascade,EWDraw CAD Component.
2 Jan 2014 by m.r.m.40
Hello, here is a code of creating a 2d circle in a 3d plot using liear algebra,r=1;theta=-pi:0.01:pi;x=r*cos(theta);y=r*sin(theta);plot(x,y,zeroes(1,numel(x)));how can i give the circle an specific degree / give it some tilt ?
2 Jan 2014 by CPallini
Just rotate it around X (or Y) axis. You may find rotation matrices formula here: Rotation matrix at Wikipedia[^].
26 Jan 2013 by m.saikanthreddy@gmail.com
Hi, I am trying to call competitive layer on kdd data set ,but im getting this :??? Error using ==> plot3 Conversion to double from cell is not possible. plot3(p(1,:),p(2,:),p(3,:),'+r');some 1 can help me..clear all;p=importdata('kdd train.txt');tar=[];for i=0:size(p); ...
28 Jun 2013 by gzdreamway
how could use the plot function mark the peak? a=[0 1 3 23 3 9 10 28 2][p,locs]=findpeaks(a) Result:p = 23 28locs = 4 8
3 Mar 2014 by Member 10510822
Have you tried this ? Please try youself and ask question if any problem you faced. Thanks!
3 Mar 2014 by Sergey Alexandrovich Kryukov
You need to hire a software developer. And this is the site for software developers; so you probably don't need to be a member here.—SA
13 Feb 2014 by Peter Leow
No, we do not do your homework/project/assignment, nor supply code.I suggest you help yourself by learning MATLAB programming[^]If you encounter any difficulties with your coding, always consult Google first, everything else fails, then visit CP and ask questions related to specific issues.
20 Mar 2010 by Sandeep Mewara
Please don't repost the question.Follow it here only:http://www.codeproject.com/answers/67154/how-do-we-write-coordinates-of-robotic-arms-moveme.aspx[^]Update it if you need to make any change.
26 May 2010 by Sandeep Mewara
Follow it at one place: http://www.codeproject.com/Questions/64721/Virtual-Mouse-using-webcam.aspx[^]Popping it out of unanswered section!
13 Apr 2015 by OriginalGriff
We still do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may...
18 Jul 2020 by Member 14891535
You Retrieve sensor data from a specific REST endpoint are required to produce a software solution, using the programming language of your choice, to address the following requirements: • . This would be achieved by using a HTTP GET issued...
17 Jul 2020 by OriginalGriff
We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us...
17 Jul 2020 by KarstenK
Ofcourse you should continue, but best is to get clear about which language you want to use. You better ask which libraries are recommended for that task, so you have some proper database, networking and ui tools. But anyway - it is your task....
17 Jul 2020 by Richard MacCutchan
This is the same question as How to retrieve only the first 2 data from a specific REST endpoint (no the entire data) Python[^], which you posted yesterday. And I already gave you a suggestion for how to extract the data. In fact this is the...
18 Jul 2020 by Richard MacCutchan
As I have finally figured out the format of the data and how to decode it I offer the following: # decode the response from the REST service restjson=json.loads(httpresponse) # get the string of sensor data rawblob=restjson[0]['blobJson'] #...
5 Nov 2010 by coolhice
as titleubuntu 9.10 , matlab R2009amy matlabroot is in /opt/matlab78i want to use a C program to read a MAT-Fileand i use the matOpen() but it doesnt work#include #include #include #include "/opt/matlab78/extern/include/mat.h"int...
30 Aug 2021 by Member 4206974
The article is about Matlab - Octave scripts for easy create forms with the most useful controls (texts field, lists, radio buttons, check boxes, sliders, ...)
12 Nov 2012 by salamooo
help me to write a matlab code for implementation of learning automata.plz help me.I don't know how do this .I need this code for implementation of an article.my friend help me,plz.thanks
12 Nov 2012 by Richard MacCutchan
It is impossible to answer such a question in a Quick Answers forum. If you do not know how to use Matlab, then go to the Matlab website[^]. For learning about automata I would suggest www.google.com[^].
3 Apr 2019 by Mahsa Hassankashi
This article also has a practical example for the neural network. You read here what exactly happens in the human brain, while you review the artificial neuron network.
9 Jun 2012 by Sandeep Mewara
It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy...
25 Oct 2018 by sandeepbiswal
hiiiii,i m sandeep persuing m.tech in power system i m dng project based on intelligent water drop algorithm but i face some problem regarding matlab codingplz send me the code.Thanking You
25 Oct 2018 by Mehdi Gholam
People are here on this forum to answer genuine questions and problems, they are not donating their time for lazy individuals who are not even bothered to write sentences correctly. Homework is for your benefit not ours, and this site does not do "plz send me the code".
1 Jul 2011 by kelliny
How to translate a .m file to a .cpp file?I have a .m file named B.m ,I use mcc -lcpp B command,but matlab tell me that Warning: Duplicate directory name: d:\ProgramFiles\MATLAB\R2009a\toolbox\compiler. Depfun error: 'Invalid directory: d:\Program Files\MATLAB\R2009a\toolbox\-p'??? Error...
7 Jul 2011 by fjdiewornncalwe
You can check this article and source code: MATLAB MEX-files[^]
30 Jul 2010 by kurhe
I want matlab code for CBIR. and also code for Object recognization.
30 Jul 2010 by Sandeep Mewara
Surely, you didn't read about the rules before posting your question. Let me tell you in short. Here is what is expected by enquirers:1. TRY first what you want to do!2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues. Members...
4 Jan 2011 by khurram baba
salam brothers,plz help me I have some poblem.how to access matlab code form c#.:confused: plz help me.thanks to all.
4 Jan 2011 by William Winner
see here: Matlab C#[^]
4 Jan 2011 by #realJSOP
Google "c# and matlab", and you'll get 1.4 million results...
4 Apr 2013 by NannoJohannes
a usb driver for an ocean optics usb2000+ driver is already installed and used by the SpectraSuite program. How can I use this driver in my own application programmes like VB,C#, Matlab, ... ?When using Matlab or NI software to build a driver I get confusing messages about path settings and...
2 Dec 2011 by fariima
How could I add DACE toolbox for Kriging to MATLAB?
2 Dec 2011 by Richard MacCutchan
I have no idea what you are talking about, but Google seems to have lots of suggestions[^].
26 Jun 2011 by Sergey Alexandrovich Kryukov
Get my one for laziness and subject-less question and then search CodeProject articles (before you Google for the rest of the Web). I saw several very interested articles on the topic. Also see AForge.NET, http://en.wikipedia.org/wiki/AForge.NET[^], http://www.aforgenet.com/[^]. After that,...
27 Jun 2011 by Sandeep Mewara
It does not work like this here.I am sorry but there is no quick question here. This sounds like your college project/assignment, you should put some effort.We expect you to put some time in trying the issue that you are facing and then some time in formulating the question while posting...
1 Jun 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
16 Apr 2012 by yasmeenahmad
I need to know some of algorithms that used in object recognition using SIFTComputer vission
8 Oct 2012 by zaxoeng
i have project to select best path i want to know how can i program this by using matlab code for choosing more than one path(alternate)
8 Oct 2012 by Richard MacCutchan
First choose your algorithm[^].
19 Apr 2010 by siju varghese
close all;clear all;clc;num = [exp(-5.5)];den = [1 5 10 10 5 1];h = tf(num,den);t=0:0.25:25;[mode1 t1]= step(h,t);for i = 1:10 num1 = [exp(-5.5)]; d1 = 1; d2=1+rand*5; d3=1+rand*10; d4=1+rand*10; d5=1+rand*5; d6=1; den(i,:) = [d1 d2 d3 d4 d5 d6]; ...
22 Nov 2014 by Member 10808329
I want to combine fuzzy system and neural network models.I mean that the output of neural network will be given as an input to the fuzzy system or the output of fuzzy system will be given to neural network but i don't know how i achieve this goal ? Is it possible or not? Please help me Tanx a lot
22 Nov 2014 by Peter Leow
Neuro-Fuzzy belongs to hybrid AI system where one AI technique is used to tune or learn the architecture for another, e.g. using NN to learn the membership functions and rule weights of a fuzzy system. It is too large a topic to be discussed in this quick answer forum. Read this: ANFIS: Adaptive...
20 Aug 2010 by #realJSOP
I want 1000 rounds of .223 ammo for $5, but that's equally unlikey to happen as someone giving you "the codez".
20 Aug 2010 by Smithers-Jones
What, you want to do a dissertation on other people's work? It's your dissertation, not ours.And here is a little hint, that is totally free of charge: Do not use textspeak in your dissertation.
20 Aug 2010 by Sandeep Mewara
Here is what is expected by enquirers:1. TRY first what you want to do!2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues. Members will be more than happy to help like this.
3 Dec 2011 by yalda.m
Hi I'm a university student. My thesis is a facility location problem. It has a complex objective function and there are a lot of constriants. I studied some books but yet I'm not able to choose the best method (mmas,as,...). I need books or documents that could guide me to learn this algorithm...
3 Dec 2011 by OriginalGriff
Not going to happen - we do not have the time to expend in mentoring you, helping you to get a qualification. Either talk to your tutor, or start reading your course notes: we can help when you get stuck, but doing the project with you is not something we can attempt here.
6 Jan 2012 by sandeepsany44
what is the main advantage of ant colony optimation algorithm ?where are this ant colony optimation algorithm is used ?what is main use of this ant colony optimation algorithm in image processing?how this ant colony optimation algorithm is used for EDGE DETECTION ??pls answer this...
6 Jan 2012 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
17 Feb 2013 by chandu banot
sir ,i need this code sir can u send me my mail plz sir
28 Jul 2010 by sumanbhagat
hii need matlab code for the Ant Colony Optimization. if anybody can help me.thanks.
28 Jul 2010 by Sandeep Mewara
What have you tried so far?Here is what is expected by enquirers:1. TRY first what you want to do!2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy to help like this.
21 Sep 2012 by Sandeep Mewara
It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy...
10 Jun 2013 by dhuha.a
hello,I look for any information about ntru algorithm or code to encrypt audio file (wav,mp3)but i do not found any thing about it please help me, i really neade it so much and quicly all my future depend on it.(sorry about the language).
10 Jun 2013 by nv3
If "all your future" depends on it, I would have tried a Google search. My first attempt brought up this C library: http://sourceforge.net/projects/ntru/files/[^] and this website http://tbuktu.github.io/ntru/[^] of the author of the library.Good luck.
15 May 2015 by DomLee
I am trying to detect objects in RGB MRI images, but not sure what is the best one for the objects ellipse shape recognition, any experts would suggest ?
11 Dec 2011 by zagorka34
Hi, I need your help to translate the matlab code in visual code. I'm new on this subject, and the conversion is very important to me. Thank you in advance, Waiting for your help.Matlab Code is here;clc,clear allx = 0: 0.2 :1; %get a dimensional array of real number typefid =...
12 Dec 2011 by Richard MacCutchan
Lots of links here[^] that will help you.
12 Dec 2011 by zagorka34
I know that but I don't know VB and so I don't use VB, so I want help you. If you know VB using, help me for translate.It's important for me, waiting for help.
11 May 2011 by Member 7916845
I want to use ICA (Independent component Analysis) for Blind Signal Separation. Please, I need suggestion to implement ICA and BSS for signal separation in wireless communication.
11 May 2011 by Richard MacCutchan
It is impossible to answer such a broad question in a programming forum. Go and do some research into your subject and come back here when you have specific technical questions.
22 Oct 2010 by Robbie Chen
It is desired to determine the DFT of the analogue signal x(t) = 25 cos(10PIt)cos(400PIt).(a)Find the Nyquist rate of the signal.410Hz(b)What is the record (signal) length if the desired frequency resolution is 5Hz?0.2s(c)If the Nyquist rate from part (a) and the record...
22 Oct 2010 by #realJSOP
Weren't you paying attention in class when the instructor told you how to do it?
13 Apr 2016 by Member 12457860
I am working on a project where an autonomous vehicle navigates around a map while avoiding a moving target. I have most of the code done, but I am having a problem coming up with ways to allow the vehicle to navigate by itself while also staying away from the bot. The only way I have come up to...
13 Apr 2016 by Garth J Lancaster
How about using 'A-Star'/'A *' search algorithm to define a path between your vehicle start point and your target - the path is the set of 'directions' the vehicle will move along - I'm guessing you'll have to recalculate the path everytime you make a deviation to dodge your 'bot'
7 May 2012 by Sandeep Mewara
i need back prapogatin algorithm in mat lab,No. No one will provide you the algo.Here is what is expected of enquirers:1. TRY first what you want to do!2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be...
12 Jan 2012 by kumok
I am trying to execute cuSVM (SVM implementation using CUDA) using mex file from matlab, but it gives following error in matlab,??? Unexpected Standard exception from MEX file.What() is: bad allocationAnd this error comes because of following statement from...
5 Nov 2013 by Member 10382899
would some body please suggest me how to use bat algorithm for error optimisation...
5 Nov 2013 by MuhammadUSman1
try following linkDemo
9 Jan 2011 by Abul Kashim
Sir, i am not clear about Bayesian Neural Network. Is it a training algorith or itself a Neural Network like MLP or Radial Basis Function Network?If its a Network then how its architecture will be.Thank you in advance for your help.Sangeeta
9 Jan 2011 by Hiren solanki
See THIS[^] Cached copy of wikipedia may help you.
11 Apr 2012 by Steven Burns
Bayesian Networks and Bayesian Neural Networks are two different things.Usually, "Bayesian Neural Networks" refers to the use of Bayesian methods within the Neural Network framework in the learning process and for regularization.It provides a different way to interpret the training...
18 Jan 2017 by Sujoy Basu
Here are few things to keep in mind when creating your analytics using Predix Analytics Services, starting with prepping the data itself through deploying the analytic in a production environment.
16 Dec 2010 by Sandeep Mewara
Wrong place! :doh: Firstly you are asking for code without making any effort that too related to Matlab!Here is what is expected by enquirers:1. TRY first what you want to do!2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face...
4 Apr 2011 by Member 7702812
Does anybody know whether Matlab supports serial communication via Bluetooth, i.e. does Matlab recognize Virtual Bluetooth Serial Port????
27 Sep 2019 by Shailendra Saxena
currently we are working on this project. As name suggests that we are detecting the tumor from MRI images and classifying Astrocytoma type of brain tumors. plz suggest how to get the mri image ?
5 Feb 2013 by OriginalGriff
The best solution for you at this stage would be to contact the MRI scanner manufacturers and ask them. If you explain your project to them, they may be willing to help you, and possibly even let you have a copy of the specification. AFAIK, there is no one standard to which all MRI scanners are...
24 Apr 2010 by Elyas Mohajeri
Hello.My m file is:x=0: 0.01:2*pi;y=sin(x);plot(x,y)I want build this program by .exe formatI want run this program in a computer that dont has matlab.Can you help me?[SM]:Please send your answer : [EmalId removed]
24 Apr 2010 by Sandeep Mewara
Please have a look at these: Matlab Tutorial - Executable Files[^]How to create standalone executable for matlab file[^]Build standalone executables and software components from MATLAB code[^]P.S.: Iremoved your email id to avoid spamming on that... strikedout the statement that was...
2 Oct 2011 by J imran
I have a black and white picture on which I want to remove white areas that are more than 50 pixels.I found bwareaopen in MATLAB for this purpose. I am using EMGU and want equivalent in EMGU.Thank you for helping.
30 Nov 2011 by C_Johnson
Hi,Well in short NO there is not a built in function that performs the same operation as bwareaopen. You will simply have to loop through your image and look for a white pixel.When you find 1 make a blank copy or a list of points that records all pixels attached to the original that...
28 Jul 2014 by KarstenK
Here is the spec of DVB.Try the live 555 libryry. It can handle a lot of streaming types. Another tip can be the VLC project.Good luck :-O
17 Sep 2012 by PRIYAOJAS
I require to find all the solution of linear system of equations where no of variable are more than no of equations.There can be more than one solution. I need to do some calculation on all solutions.Thanks in advanceFor example H=[1 0 0 0 0 0 0 0 1 0 0 0 1...
17 Sep 2012 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
28 Mar 2011 by popstar-123
How can I call the Matlab function in the WinForms to solve a nonlinear programming? Would anyone give me some examples? Thanks a lot!
4 Apr 2011 by MaulikDusara
You can create a MATLAB script/function to solve the equation (I would recommend first testing your function with some sample data before you try invoking it from .NET). Once you have that ready, you can follow the "Calling MATLAB Software from a C# Client" example to pass in variables required...
30 Sep 2010 by ialeksi
I want to load mat files from MATLAB to C++ code with the use of matlab C-code.I am using MATLAB 2010a and the c-file given by MATLAB comand: edit([matlabroot '/extern/examples/eng_mat/matdgns.c']);I linked the libraries in VS 2010b1 via Project->>Properties->>VC++Directories.I have...
30 Sep 2010 by Sandeep Mewara
Try looking something similar here[^]. If you don't find, you can ask this question there. It would be quicker and people out there might be better for such question.
30 Sep 2010 by ARopo
I think your problem is more likely to do with lib format.If you open your matlab lib in notepad the search for ?diagnose@@YAHPBD@ZIf it finds it your library is compatable. If it is not compatable your may have to run a conversion on the lib file to make a version the VC++...
3 Aug 2013 by Member 10187528
How can I call a MatLab function from C++?Regards,UJ
3 Aug 2013 by Sergey Alexandrovich Kryukov
Please see the original MathWorks instructional video on this exact topic: http://www.mathworks.com/videos/calling-matlab-from-c-code-68913.html[^].See also: http://www.mathworks.com/support/compilers/interface.html[^].Good luck,—SA