Click here to Skip to main content
15,885,537 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 Score

MatLab 

4 Apr 2017 by n.podbielski
Using Matlab from a C# application
31 May 2011 by Richard MacCutchan
You have come to the wrong place, we do not (cannot) provide full solutions on demand, however nicely you may ask.
31 May 2011 by CodyDaemon
And if they had googled they would have a possible useful link... 7th link.
9 Mar 2011 by Member 7739596
How can I convert a sound frequency into an audio file?Please give me some ideas on how to do this.
17 Jul 2016 by dcmuggins
Breif tutorial on how to convert an RGB image to grayscale within MatLab
5 Aug 2011 by YvesDaoust
A simple way go get a normally distributed random number: - accumulate N uniformly distributed numbers, say in range 0..R. - substract the mean, NR/2. - divide by the standard deviation, Sqrt(NR^2/12).The larger N, the better the approximation. Use N=10.Also see...
7 Nov 2011 by Espen Harlinn
Have a look at Color space[^]Like mathematics, Gray level & intensity are human inventions - in nature there is no such thing as a Gray level or intensity - at least not in the sense we're used to speak about it when it comes to image processing. A color space as described by the article...
14 Feb 2012 by Richard MacCutchan
Then type your question into Google; this site does not provide code to order.
11 Jan 2014 by Andreas Gieriet
I strongly suggest to first get a "feeling" for the graph.1) sin(x) is periodically in 2⋅π and has roots every n⋅π (∀ n ∈ Ν0)2) sin(x) ≈ x (x much smaller than π/2)3) e-x goes monotoinc to zero (∀ x ∈ R, x ≥ 0)4) e-x has sample...
12 Dec 2015 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.
30 Mar 2010 by Kunal Chowdhury «IN»
What code you want? If you need any specific help on some code, I think CodeProject itself has a huge collection of code in it's article sections.If you don't find one, come & ask the CodeProject community members. We are always happy to help you.
10 Mar 2011 by Ramalinga Koushik
This[^] might help you.
13 Apr 2011 by #realJSOP
So do it. You're learning Matlab, not us.
9 Aug 2011 by Manfred Rudolf Bihy
A wall with no boards or furniture before it would be ideal.Point the webcam at the wall at such a distance that ideally all of the wall is covered by the webcam image.Have a program read the video stream from the camera and do the analytics to recognize clicks, double clicks, positioning...
24 Jan 2012 by Sergey Alexandrovich Kryukov
You can start from here: http://www.mathworks.com/help/techdoc/matlab_external/brpb5k6-1.html[^].[EDIT in response to the follow-up comment by OP:]3ssal wrote:The problem that I have a very limited time… is there a simple way or a direct way to do the linking?? [Spelling fixed...
17 Oct 2015 by Dave Kreskowiak
Who in their right mind is just going to hand over their hard work to you just so you can turn it in as your own work?Seriously, the only code you're going to get is the code you research and write yourself.
23 Mar 2010 by Christian Graus
Weird how often this question has been asked by first time posters recently. The answer is always the same. If you can't find something by searching the web, and if your question is a request for code, and not for help on your attempts to do your own homework/project, then your best bet is...
2 May 2010 by r.ps
Generating 40 kHz square waves by software on a PC is typically not easy to do (frequency accuracy will vary widely based on how busy or not your PC is). And i'm not even sure if 40 kHZ is possible.But depending on the DAQ board you should be able to generate such a signal by using...
3 May 2010 by Charles Keepax
This depends on which type of noise you are adding. I will presuming you are adding zero-mean Gaussian noise; firstly because that's mostly likely what you are using and secondly because its nice and easy to work with.If we have a quick look on Wikipedia[^] for PSNR we get a whole bunch of...
2 Feb 2011 by JF2015
This is definitely too much for a quick answer. Nobody here will provide you a ready to use code for your problem. I would say you should start to research the topic using the available sources on the internet. Here are some...
17 Feb 2011 by fjdiewornncalwe
Have you bothered to try Google? The third link on this search has a large listing of matlab scripts for this purpose. Always, always try google. It is where most answers are ultimately found.
9 Mar 2011 by wizardzz
I would post this question on the comment section for:Play and Visualize WAV Files using Managed Direct Sound with VB.NET[^]Perhaps the author will help you.Google returned this:http://www.iphonedevsdk.com/forum/iphone-sdk-development/45613-creating-audio-programmatically.html[^]It...
1 Jun 2011 by Pete O'Hanlon
Funnily enough, this was easily found through a simple Google search using the phrase Viola and John algorithm. Heck, it even returned details of a Matlab solution here[^].What I would suggest that you need to do is take a look at the way the algorithm is implemented here, and try to come up...
1 Jun 2011 by Smithers-Jones
I searched for you request at Google (of course you have write it correctly - it's Jones, not John), and found some very good results and so will you, if you give it a try.And dodn't urge people by mentioning, that you haven't enough time left. We are not responsible for your poor planning...
11 Oct 2011 by André Kraak
What seems to be the problem, nobody is stopping you writing the program you want.Use Google[^] to get ideas and start coding.Have a look at this[^] for example.Once you have code and run into problems you can always come back here with a more specific question and the community will...
7 Nov 2011 by Mehdi Gholam
They are essentially the same thing, as they are describing the same quantity in the context of a gray scale image. Namely the value for 0 to n of the value of that pixel (n usually is 255).
7 Nov 2011 by Sergey Alexandrovich Kryukov
There is no such strict term as "intensity" in optics, photometry or image processing. (People working in this area and using this term, dont's rush to object!) There is a fuzzy jargon usage of the word when no quantitative measure is important; something which is "the lighter, the more"....
22 Dec 2011 by Wendelius
Perhaps this would help: Single Layer Perceptrons[^]
24 Jan 2012 by Espen Harlinn
Control matlab using COM:Examples of a MATLAB Automation Server[^] - otherwise do as lewax00 suggests.That's how I sometimes use matlab at work :)Best regardsEspen Harlinn
30 Jan 2012 by Sergey Alexandrovich Kryukov
Please see:http://en.wikipedia.org/wiki/Simulated_annealing[^],http://www.mathworks.com/discovery/simulated-annealing.html[^],http://www.mathworks.com/products/global-optimization/description7.html[^],http://www.mathworks.com/help/toolbox/gads/bq2g2yi-4.html[^].As you can see,...
7 Feb 2012 by Sergey Alexandrovich Kryukov
Please see my comment to the question and explain what exactly you want.First of all, the handwritten recognition performed as you write is pretty much successful and quickly becoming a commonplace. However, if you want to submit some scanned text where some previously handwritten text...
17 Apr 2012 by Sergey Alexandrovich Kryukov
Sorry if it is not helping you. With a busy background, this is extremely difficult to do it the way which would make the change unnoticeable, because a human eye has unprecedented integration ability.The simple theoretical obstacle for solving this problem is that the part of information...
11 Dec 2012 by DinoRondelly
This should help, http://lmgtfy.com/?q=Draw+line+matlab[^]
20 Mar 2013 by nv3
The problems was actually OP was uncertain on how to extract the line images from the main image after having calculated the position of the line gaps. As a result of the discussion in the comment section (see above) the case could be resolved.
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
22 Oct 2013 by OriginalGriff
It doesn't quite work like that.We do not do your work for you.If you want someone to write your code, you have to pay - I suggest you go to VWorker.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys
12 Dec 2013 by OriginalGriff
Counting the lines manually, and guessing as to the error message:You forgot the word "struct": int len = (int)ceil(dheight*invscale) + 2*dheight; alphainfo ofs[len]; int k = 0;Becomes int len = (int)ceil(dheight*invscale) + 2*dheight; struct alphainfo ofs[len]; int k = 0;But...
25 Dec 2013 by Peter Leow
As you wish, check this documents out at MathWorks:Read Data from Text File in MatLabManipulate String in MatLabHappy coding.
26 Jan 2014 by thatraja
Similar questions with answersC# Facial Expression Recognition[^]Facial Expression Recognition[^]facial expression recognition[^]Search Codeproject & Google for more
30 Jan 2014 by Richard MacCutchan
Probably by studying MATLAB[^].
8 Jul 2014 by Matt T Heffron
This looks like the c# wrapper around the COM interface is not returning the result as a normal return value, rather it is returning it via an out parameter. So your code would look like: object result; matlab.Feval("WBC_SegProposed", 6, out result, name, num);If the additional...
25 Aug 2014 by Nathan Minier
The issue, as I understand it, is determining your STARTING reference quadrants. Your intent is to use a webcam. A webcam has a variable but finite number of possible steps sizes, or quadrants if we want to use that as our unit of consideration, as that's what the steps will refine. It would...
14 Jan 2015 by CPallini
Assuming you want to use numerical methods:The Matlab documentation covers the argument: "Numerical Integration and Differential Equations"[^].Just Googling you may find some numerical libraries for C/C++ (see, for instance, "Ordinary Differential Equations"[^] in GNU GSL).You may also...
16 Feb 2015 by OriginalGriff
Three months?Focus on what you do know, and make sure that you are as competent as possible in that / those languages.If all you have done is "college work" then you probably "know" the languages, but you probably aren't used to using them for anything much larger than "this week's...
28 Apr 2015 by Sergey Alexandrovich Kryukov
You messed up everything. Let's see how equal temperament works.You are trying to create equal temperament based on having 2 intermediate micro-tones between tones of 12-tone European system. It it also pretty apparent that you use the equal temperament and A440 pitch standard as the base....
5 Nov 2015 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
This is a place where we help eachother in programming issues.If you directly ask for code, noone is going to help you. Rather research on the topic and start exploring more. Then start coding by yourself.If you get problems, then come back and ask another question with all details and...
18 May 2016 by Matt T Heffron
In matlab the .* operator is an element-by-element multiplication.The matrices must be the same dimensions.If you intended a true matrix multiplication then just use the * operator, and the matrices must have the correct relative dimensions as noted in the Wikipedia article quoted by Sergey.
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...
18 Oct 2020 by Roozbeh Abolpour
The data-driven MPC is implemented in this project that can be easily exploited
10 Dec 2023 by Kenneth Haugland
Have you tried to type "format long" in matlab? What you see in matlab and what is saved might be two different things
1 Mar 2010 by ned_learner
I am doing a robotic based project, and I want to connect my robotic arm through a parallel port. I want to do this using Matlab programming. I need to know how I can interface a parallel port using Matlab.Kindly help me out by providing me the hints or the Matlab code. Waiting for your...
7 Mar 2010 by Richard MacCutchan
Dear Mohi rad,I would like to inform you that we consider this an excellent project but sadly have to decline your request for the source code. Unfortunately (for you) the CodeProject exists for developers to help each other, not for developers to do your work for you.regards,the rest of...
13 Mar 2010 by Sandeep Mewara
Here you go:clearclcnum=input('Enter a positive number: ');num2=num;while (num=1) b=rem(c,2); c=c/2; c=floor(c); d=[d char((b)+'0')]; %a=a*10;endlsb=rem(num,2);msb=b; fprintf('\n\n%g is written %s in binary form.\n\n',num2,d)fprintf('The...
28 Mar 2010 by Christian Graus
It's clear you have no idea what you're doing.ned_learner wrote: as soon a s possible.You've asked this sort of question many times and been given answers. Why do you feel you can be rude in asking us to answer you quickly, when you've already been answered ? I think you need to talk...
27 Mar 2010 by RichardM1
You should add some explanation of what you r problem is and then ask an actual question.
8 Apr 2010 by leckey
YOU WERE TOLD BEFORE that we do not do the work for you!:mad:
21 Apr 2010 by William Winner
I suggest finding a Matlab specific forum such as Matlab Central[^] or An unmoderated newsgroup that focuses on the software package Matlab. [^]
11 Jun 2010 by Henry Minute
Have you searched/asked in the MatLab forums. You are far more likely to get suitable answers there than here.
20 Jun 2010 by Smithers-Jones
Yours is a badly phrased demand for code without showing any effort of doing anything yourself, so you won't get an answer. Come back, when you understand the rules of codeproject and know how to behave properly.
1 Jul 2010 by #realJSOP
You do know that there are a lot of MatLab forums available where you'd probably get a faster response, right?Besides that, this site doesn't offer free coding services. We may be able to help you if you get stuck on a specific part of your code, but the likelihood that someone's going to...
6 Sep 2010 by Sandeep Mewara
Ok. Have a look at these videos and links. They should give you some idea:Virtual Mouse Project[^]How To Modify The Virtual Mouse On A Vista Touchscreen[^]Surely a basic implementation and use of this should be more than enough as a final year project.
24 Feb 2011 by Paul Heil
Yes, though I doubt you can do it in Matlab.If your phone is Windows Mobile, you can use the Remote API (RAPI2)[^] interface to send a DLL to your mobile device and execute code contained within that DLL. Within that DLL, you can use the RIL API[^]to watch for received SMS messages and...
8 Mar 2011 by OriginalGriff
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...If you had paid your pal a visit, then your own subject line would get you...
9 Mar 2011 by Manfred Rudolf Bihy
There is a very good article right here on CP: Extract Frames from Video Files[^] that you might want to check out.Searching google for the phrase "extract images from avi" yields approximately 28K hits which should be specific enough.Hope this helps you.Cheers!
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...
14 Apr 2011 by Sandeep Mewara
What else you need? :doh: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...
19 Apr 2011 by Albert Holguin
are any headers generated? if so, the headers should have the definitions you need, just need to include the headers (usually one main header that includes anything else required) and tell your linker to use the lib.Found these resources for...
24 Apr 2011 by Albert Holguin
This equation sums up your problem:No Effort = No Solution.
3 May 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...
4 May 2011 by Nagy Vilmos
The type of network is irrelevant. It's a case of opening sockets and sending stuff[tm] down the pipes.
20 May 2011 by Sergey Alexandrovich Kryukov
One Open Source library I'm familiar with is AForge.NET; see http://en.wikipedia.org/wiki/Aforge.net[^], http://www.aforgenet.com/[^].Look at the CodeProject articles by the original developer of AForge.NET Andrew Kirillov.—SA
20 May 2011 by Orcun Iyigun
For integrating matlab here it is all explained;1..2..3 ways of integrating MATLAB with the .NET[^]I personally prefer openCV[^]. Some other libraries that you can use;VLFeat[^],OpenSURF[^],Victor Image Processing Library[^].For shape detection you should check AForge.Net[^]....
25 May 2011 by Richard MacCutchan
Be unconfusing[^].
8 Jul 2011 by fjdiewornncalwe
Google is your friend.add toolbox matlab[^] returned about 2.7 million results. The first 3 links alone give solutions.
17 Jul 2011 by #realJSOP
I can save you some time. Eyelids - everyone has them.
5 Aug 2011 by Ravi-original
Does anyone have a random number generator in c# similar to the functions "randn" and rand in matlab
6 Sep 2011 by Gilberto Rodrigues de Souza
function [bank]=loadthem(filename)for (i=1:4) bank(:,:,:,i)=im2double(imread([filename '\' sprintf('%.0f', i) '.png']));end
15 Sep 2011 by Dalek Dave
Speech Recognition[^] Article from Code Project may help you.
17 Oct 2011 by Sergey Alexandrovich Kryukov
This question is practically the off-topic. What do you expect, someone to solve your problem starting from physics and mathematics all the way to the working program? I think this is your work.The problem is really not so much of programming, but first of all a problem of classical...
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 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.
24 Jan 2012 by lewax00
Can you just save the image created by the Matlab program, and then open it in the C# application? That seems like it could be the simplest solution (maybe not the most ideal).
11 Feb 2012 by rosy_89
Can someone help me to run a matlab code using C#? Should I convert the Matlab program code to C# for this invoking?? I found links for connection but don't know if I should rewrite the code using C#.[EDIT] Shortened subject line to the essentials. Added punctuation to make it readable.
23 Feb 2012 by enhzflep
I'd be amazed if it handled captcha detection, however for the remaining tasks - I'd be inclined to look into OpenCV (Open[source] Computer Vision)
23 Feb 2012 by jk chan
Hi shankha2010If you want to learn image processing/computer vision, i suggest you to read some basic books on digital image processing & numerical methods. for example Digital Image Processing by Rafael C is a good start. But it will take time to learn things also to implement it in C or...
1 Apr 2012 by OriginalGriff
Sorry, but we can't help.We know nothing about you, your course, your lecturer, what is expected, what is not expected, anythign realy.The best thing you can do is go to your lecturer and talk to him / her. They have a vested interest in you passing and I am sure they are used to this by now!
1 Apr 2012 by Richard MacCutchan
Nurnisah wrote:as i can't thinkThis is one of the major challenges of becoming a developer: given a problem, how do you convert that vague idea into a design. Think about the different elements of your project and what technologies you need to use to make it work. You have already mentioned...
16 Jun 2012 by Sandeep Mewara
There are good enough documentation of Neural network on web. Few:http://www.mathworks.in/help/toolbox/nnet/[^]http://www.mathworks.in/help/toolbox/nnet/ref/train.html[^]About blood cells, this should get you started:Algorithm for classification of White blood cells without neural...
18 Jun 2012 by Sergey Alexandrovich Kryukov
Please see the CodeProject articles:Neural Network OCR[^],Creating Optical Character Recognition (OCR) applications using Neural Networks[^],Neural Network Classifier[^],A C# Project in Optical Character Recognition (OCR) Using Chain Code[^],Unicode Optical Character...
24 Jul 2012 by Sergey Alexandrovich Kryukov
It's hard to say how fast is your implementation of the algorithm by just looking at it, but… I can give you just one idea.Did you run all the algorithm methods twice? How did you time it?Here is the thing: if you call some time-consuming method only once, it could be possible...
25 Jul 2012 by Dave Kreskowiak
First, don't use a List(Of Double) when an array will do. You're creating a list of a known size that doesn't change size during the loop, so an array will be more appropriate and faster. If the list does change size, try to compute the maxiumum size of the array first and allocate the array...
24 Sep 2012 by Kenneth Haugland
Whats wrong with a Google[^] search first?
12 Oct 2012 by Maciej Los
In my opinion your loop never ends... Why? Read more about loops: http://www.mathworks.com/help/search/doccenter/en/R2012b?qdoc=loops&submitsearch=Search[^]If you would like to write the data at the end of existing file, read this:...
25 Oct 2012 by Nelek
Please have a look:http://www.mathworks.de/de/help/stats/random.html[^]http://stackoverflow.com/questions/5077800/generate-a-random-number-in-a-certain-range-in-matlab[^]
28 Nov 2012 by Richard MacCutchan
Well I am afraid you will not be so eager when you realise that we are not going to do your work for you. When producing college assignments you are expected to do the work yourself; otherwise what is the point? Your first step should be learning how to research your subject and start putting...
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.
31 Dec 2012 by Sandeep Mewara
Start from here and it should help you out: Matlab - Lagrange Interpolation Polynomial[^]General info about the same: Wiki Lagrange polynomial[^]Try out!
30 Jan 2013 by Kiran Chandrashekhar
This tutorial gives you a complete overview on how to insert a Chart to an Excel file through Matlab
3 Mar 2013 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...