Hello everyone, I have a matlab in class exercise due in few days. I am new to matlab and the instructions provided with the assignment is minimal. Can Someone help me with the basic understanding as in how can I map the problem's solution to matlab script ? I am not able to post question here as it is a jpeg file. Please let me know and then we can discuss further. ...

Hello, I'm evaluating products for writing my final university thesis. I want to perform image processing algorithms (C-Code compiled for a DSP). I have the feeling that manual programming of this algorithms is no longer state of the art. Instead MDSD (model driven software development) - that means Code Generation - seems to be smarter to me. Unfortunately Mathworks offers no licenses of Matlab Coder (or Simulink Coder etc.) to individual students. And I cannot afford to buy a commercial license (which probably would cost me more than 5.000 EUR/$ / my absolute limit is 1.000 EUR/$). Is there any possibility for me to use MDSD (code generation) for image processing for my university thesis ? Maybe by using cheaper alternatives ? Or by using 3d party software (like target link) ? Or export/import to another product ? Any idea ? (I want to avoid manual coding - like using OpenCV) By the way, does anyone know, why Mathworks hides the MDSD features from students ? It doesn't make sense to me that Mathworks reduces the amount of engineers available on the job market that are capable of handling (serious) Matlab projects. (Microsoft offers the "Visual Studio Express Edition" for free for education and the amount of people on the job market that are experienced in Visual Studio is tremendous.). Thank you, Roelof ...

This is a small part of my whole project (Speech/Music Discrimination). I can wavread all the wave files when the code is in the current directory. Using this file=dir('*.wav'); for i=1:length(file); [s, fs]=wavread(file(i).name); commands statements etc, in here... end The problem is i want to used this code to other folders without moving it in that directory. For example there are wave files in the Musicvoice folder I edited the code to something like this to access the wave files in the Musicvoice. file=dir('Musicvoice\*.wav'); for i=1:length(file); [s, fs]=wavread(file(i).name); commands statements etc, in here... end It gave me the error below. Please help. ??? Error using ==> wavread Cannot open file. Error in ==> extractFeature at 16 [s, fs]=wavread(file(i).name); %wavread function returns s and the sampling frequency kingdavid3 wrote: > This is a small part of my whole project (Speech/Music > Discrimination). I can wavread all the wave files when the code is in > the current directory. > > Using this > > file=dir('*.wav'); > > for i=1:length(file); > > [s, fs]=wavread(file(i).name); > > commands statements etc, in here... > > end > > The problem is i want to used this code to other folders without > moving it in that directory. For example there are wave files in the > Musicvoice folder I edited the code t...

Hello All, I'm working with an aplication that use the matlab engine. I made the C++ program and it is working well in my pc with matlab 2007b, but the same very basic program shows an error when I tried to compile it in a pc with matlab R2010b. The error is about the icuuc32.dll. ¿Why is asking this DLL? How can I solve this?. Thanks¡ ...

I am trying to write code to iterate a function 50 times, however, every time i write it without help i get ()-indexing must appear last in an index expression. I'm not sure what this means or how to fix it, can someone please explain. Also, my input is this: x(i)=a*x(i-1)(1-x(i-1)+h*x(i-1)^2/2) On Jan 24, 12:45=A0pm, michelle taylor <miss.smileyf...@gmail.com> wrote: > I am trying to write code to iterate a function 50 times, however, > every time i write it without help i get ()-indexing must appear last > in an index expression. > > I'm not sure what this means or how to fix it, can someone please > explain. > > Also, my input is this: > > x(i)=3Da*x(i-1)(1-x(i-1)+h*x(i-1)^2/2) Aren't you missing an operator? x(i)=3Da*x(i-1) here (1-x(i-1)+h*x(i-1)^2/2) x(i)=3Da*x(i-1)*(1-x(i-1)+h*x(i-1)^2/2) or x(i)=3Da*x(i-1)/(1-x(i-1)+h*x(i-1)^2/2) or x(i)=3Da*x(i-1)^(1-x(i-1)+h*x(i-1)^2/2) On Jan 23, 3:58=A0pm, TideMan <mul...@gmail.com> wrote: > On Jan 24, 12:45=A0pm, michelle taylor <miss.smileyf...@gmail.com> > wrote: > > > I am trying to write code to iterate a function 50 times, however, > > every time i write it without help i get ()-indexing must appear last > > in an index expression. > > > I'm not sure what this means or how to fix it, can someone please > > explain. > > > Also, my input is this: > > > x(i)=3Da*x(i-1)(1-x(i-1)+h*x(i-1)^2/...

I downloaded the MS visual C++ 2008 Express Edition and the SDK as detailed in http://www.mathworks.com/support/solutions/en/data/1-6IJJ3L/?solution=1-6IJJ3L My embedded function didnt work at the beginning because I did "mex -setup" before I installed my SDK. But after I installed the SDK, I ran "mex -setup" in Matlab once again and choose the MS visual C++2008 as my compiler. Then, my embedded matlab function worked. Thanks to the contribution from above! ...

Hi all Sorry to advertise within the user group but I really need some help! I was hoping that people in this usergroup could help other fellow Matlab developers who may be looking for a new role, or might be interested in what I have on offer. I need to find a Application engineer who is a confident developer with Matlab and its toolboxes. Competent at explaining to people how and why they are doing things with the technology, able to solve complex problems with simple solutions. Plus, have have a burning desire for technology. Personally, I have been looking for this type of person for almost 4 months and I am almost ready to give in, but I wont be beaten! If anyone is a experienced within C++ / C or Java, and have a lot of experience with using Matlab, then please get in touch with me. My contact details are danielsheppard1983@gmail.com or call me on 0282523120 thanks for letting me post this, I just really needed the help Thanks Dan "Dan Sheppard" <danielsheppard1983@gmail.com> wrote in message news:bd137cfa-cbbb-4069-8d6b-3721cba3b17b@t8g2000pbe.googlegroups.com... > Hi all > > Sorry to advertise within the user group but I really need some help! > I was hoping that people in this usergroup could help other fellow > Matlab developers who may be looking for a new role, or might be > interested in what I have on offer. > > I need to find a Application engineer who is a confident developer >...

Any one know how to work this problem? In this exercise you are to compute a power of the diagonalizable matrix A. Let A = pascal(5). Use the eigenvalue decomposition of A to calculate the ninth power of A. You cannot apply the power operator ^ to the matrix A. "Lynn Koch" <ankrunner@aol.com> wrote in message news:jfca37$r46$1@newscl01ah.mathworks.com... > Any one know how to work this problem? > In this exercise you are to compute a power of the diagonalizable matrix > A. Let A = pascal(5). Use the eigenvalue decomposition of A to calculate > the ninth power of A. You cannot apply the power operator ^ to the matrix > A. AToNinth = (A+0)^9; The exercise just said you couldn't apply ^ to A; it said nothing about the expression A+0. The more serious answer is that this sounds like it's a homework problem and in general, the readers of this newsgroup won't help with homework problems unless the student shows what they've tried first. Show the group how you've started and you may receive some help; if you're not sure even where to begin, you should contact your teacher or TA and ask them to help you get started. -- Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com ...

Hi Maybe a too easy problem for you but maybe you help me to solve this in MATLAB I have a vector of point let say for example sin(x) from -PI to PI and I would like to plot the -- vector -- derivative of the vector -- integral of the vector any idea how do do this in MATLAB Thks On 8/5/2012 1:15 PM, mourad wrote: > Hi > Maybe a too easy problem for you but maybe you help me to solve this in > MATLAB > I have a vector of point let say for example sin(x) from -PI to PI > and I would like to plot the > -- vector > -- derivative of the vector > -- integral of the vector > doc plot doc diff doc trapz -- ...

I wrote a code in matlab 7a andand it was working over there then i changed computer which was having matlab realease 2009a and it is not working If i install Matlab 7 release 14, will my code work again thanks "moonman" wrote in message <ipmsl7$23v$1@fred.mathworks.com>... > I wrote a code in matlab 7a andand it was working over there > then i changed computer which was having matlab realease 2009a and it is not working > > If i install Matlab 7 release 14, will my code work again thanks Can you be more specific about the fact that your code is not working in 2009a but worked in 2007a? It would be helpful if you could narrow down what is not working in 2009a and provide error messages. Wayne ok thanks wyne i will send error message after some hours ...

Hi, I have a copy of a program that reads two small pngs and sends them out over two serial ports. It's old and its evidently a bad edit, so could someone please tell me what's the matter with this crazy thing?! It seems to be in the variables and then it blows its cool in the reshape command. I have not programmed anything in MatLab since forever, but i need this to work for a project I am doing. Best copy I have, evidently I deleted the working copy and for the life of me, I can't fix it. Any good people out there that can help edit this crazy thing back to health? See code below, relatively straightforward, but its not compiling...I dunno. My feeble attempts to fix it after all these years is...um... feeble... ;-) I barely remember how to load up a script, much less. BUT I gotta have it, any takers? Best Regards, Jeff ------------------------------------------------------------- %Read two image files A=imread('Bright1.png','png'); B=imread('Bright2.png','png'); A=rgb2gray(A); B=rgb2gray(B); [a1 b1]=size(A); [a2 b2]=size(B); count1=a1*b1; count2=a2*b2; count=min(count1,count2); C1=reshape(A1,1,count1); C2=reshape(A2,1,count2); %Create serial port objects to open the serial ports s1=serial('com6','baudrate',230400,'outputbuffersize',2*count); fopen(s1); s2=serial('com5','baudrate',230400,'inputbuffersize',2*count); fopen(s2); %Seri...

Long story short, here is the criteria I need. 1) I need two modules running in parallel. One function must activate these two They don't need to START at the same time but both neither return info nor end. They run pretty much infinitely 1.1) I would prefer if the One function also ran separate from the above two in it's own loop but i can deal with a 3'rd function also not ending. 2) I need a shared variable between two of the modules. 1 Module will place information there while the other just reads it, but as they are running parallel. That's it. I can do this in pretty much any other language but matlab I've been having issues with. Problem is I absolutely need to use matlab for one module. If this is impossible to accomplish all in matlab then can i instead run this in C and call one matlab module with separate thread? Sample code below. function mainParallelTest() persistent counter; counter = 0; parfor i=0:2 if (i == 0) ImageProccessorParallelTest(); elseif(i == 1) EventProcessorParallelTest(); elseif(i == 2) prevCounter = 0; tempCounter = 1; while(true) tempCounter = counter; if (tempCounter == prevCounter) %disp('hi') end prevCounter = tempCounter; end end end "Alex Cruikshank" <cruiksam@gmail.com> writes: > Long story short, here is the criteria I need. >...

Hello All, I have a C# (previously written) code (.cs) that can convert the raw file I want into cdf using .dll's that came along with the machine that creates the raw file. I developed a GUI in matlab to visualize and modify the data from the raw file, but the conversion tool (msconv) I am using seems slow. So I am trying to see if there is a way to be able to use the C# code along with the dll files and convert the data. An issue to consider is that there are no header files, only .dll files, so I cannot use LOADLIBRARY. I tried the Matlab Compiler as well. Does anyone have any ideas? I have never used C# before. Thank you, Mathew ...

Hi I am trying to simulate the low pass filtered output of a square wav (pulse train) using Matlab. The pulse varies between 0 and 1. So th filtered output looks somewhat like a sinewave. The filter is a low pas filter (FIR/raised cosine filter). Essentially what I need is to be abl to generate a look up table that will store the output waveform rise fall transition (from 0-1 and 1-0). So what i want essentially is to b able to generate a look up table of different lengths (like 100,50 etc) t store these transitions. I tried using Simulink for this, but havent bee successful so far. So my table will look something like 1 0.995 0.923 0.91 0.85 ..... to 0 Any help is highly appreciated. Thanks. Best regards Vikram ...

Number of column: 5 Vector A: [ 2 4 6 7 8 ] Vector B : [ 5 7 8 10 1] Choice = 1 : Find the highest value Vector A : 8 Vector B: 10 The highest value : 10 Choice = 2 : Find the lowest value Vector A : 2 Vector B: 1 The highest value : 1 Choice = 3 : Find the average value of : Vector A Vector B "Syamil " <syamilsaid@gmail.com> wrote in message <inq3g8$hhd$1@fred.mathworks.com>... > Number of column: 5 > Vector A: [ 2 4 6 7 8 ] > Vector B : [ 5 7 8 10 1] > > Choice = 1 : Find the highest value > Vector A : 8 > Vector B: 10 > The highest value : 10 > > Choice = 2 : Find the lowest value > Vector A : 2 > Vector B: 1 > The highest value : 1 > > Choice = 3 : Find the average value of : > Vector A > Vector B Type in matlab: doc min doc max doc mean ...

I have written some code in matlab for my application. I want to make a graphical interface so that an user can easily use my code. I do not know, how to link my code or a particular function when user clicks on a particular button. I mean, how to assign a function written by me to a push button so that it will execute the function. And how to give the input to my function and get output after executing the particular function. I am quiet familiar with matlab code. But I am absolutely new with GUI in matlab. Please help me to deal with the above problem. On 4/12/2011 12:37 AM, sk maidul haque wrote: > I have written some code in matlab for my application. > I want to make a graphical interface so that an user can easily use my code. > I do not know, how to link my code or a particular function > when user clicks on a particular button. I mean, how to assign a > function written by me to a push button so that it will execute the function. > And how to give the input to my function and get output after > executing the particular function. > I am quiet familiar with matlab code. But I am absolutely new with > GUI in matlab. Please help me to deal with the above problem. Use GUIDE to make the gui. It is very simple and powerful to use. I use it all the time for my school projects and HW's. I know some prefer to code the thing by hand, but I prefer GUIDE. When you add a button in GUIDE, it will create a callback stub for you automatically...

I am trying to to some computations and I would like to do it in parallel using parfor or by Opening the matlabpool.. as the current implementations is too slow: result=zeros(25,16000); for i = 1:length(vector1) % length is 25 for j = 1:length(vector2) % length is 16000 temp1 = vector1(i); temp2 = vector2(j); t1 = load(matfiles1(temp1).name) %load image1 from matfile1 t2 = load(matfiles2(temp2).name) % load image2 from matfile2 result(i,j)=t1.*t2 end end It work fine but I would really like to know if there is a way to speed thing up ... Thanks a lot in advance! ...

this is my matlab main file: a=[]; for i=0:100:600 display(i); c0 = [i; 0; 0; 0; 0]; % Make a starting guess at the solution options=optimset('Display','iter'); % Option to display output [c] = fsolve(@myfunction,c0,options); % Call optimizer a=[a c(5)]; display(a); end i=0:100:600 display(a); %plot(i,a) plot(i,c(5,:)) function file is :: function F = myfunction(c) F = [ 2.2098e-004*c(1)^2*c(2)-2.2098e-004*c(1)*c(2)^2-2.2098e-004*c(1)*c(2)*4+2.2098e-004*c(1)*c(2)*13.533+ 7.3414e-004*c(3)*c(4)*4- 7.3414e-004*c(3)*c(4)*13.533-9.0343e-004*c(2)*c(3)*4- 7.3414e-004*c(1)*c(3)*c(4)+9.0343e-004*c(1)*c(2)*c(3)+ 7.3414e-004*c(2)*c(3)*c(4) 2.2098e-004*c(1)*c(2)*13.533- 7.3414e-004*c(3)*c(4)*13.533-9.0343e-004*c(2)*c(3)*13.533+ 0.0037*c(4)*c(5)*13.533-2.2098e-004*c(1)*c(2)^2+ 7.3414e-004*c(2)*c(3)*c(4)+9.0343e-004*c(2)^2*c(3)- 0.0037*c(2)*c(4)*c(5)-2.2098e-004*c(1)*c(2)*c(3)+ 7.3414e-004*c(3)^2*c(4)-9.0343e-004*c(2)*c(3)^2 + 0.0037*c(3)*c(4)*c(5) 2.2098e-004*c(1)*c(2)*c(3)- 7.3414e-004*c(3)^2*c(4)+9.0343e-004*c(2)*c(3)^2- 0.0037*c(3)*c(4)*c(5)-2.2098e-004*c(1)*c(2)*c(4)+ 7.3414e-004*c(3)*c(4)^2+9.0343e-004*c(2)*c(3)*c(4)- 0.0037*c(4)^2*c(5) 2.2098e-004*c(1)*c(2)*c(5)- 7.3414e-004*c(3)*c(4)*c(5)+9.0343e-004*c(2)*c(3)*c(5)- 0.0037*c(4)*c(5)^2-9.0343e-004*c(2)*c(3)*c(4)+ 0.0037*c(4)^2*c(5) -2.2098e-004*c(1)*c(2)*c(5)+ 7.3414e-004*c(3)*c(4)*c(5)+9.0343e-004*c(2)*c(3)*4- 0.0037*c(4)*c(5)*4-9.0343e-004*c(1)*c(2...

Hi, I am new on neural network toolbox. I am trying to use LVQ algorithm,but it is not working at all. Right now I am trying to train the network for a simple sine curve, but it is not trained according to the target. Can you help me with your suggestion, my function is y=sin(x); x is my input and y is my target output. I classified target results in four different classes. 0.5<=value<=1.0; class 1 0.0<=value<0.5; class 2 -0.5<=value<0.0; class 3 -1<=value<-0.5; class 4 I would highly appriciate if you help me with some idea, i am stucked here for a long time. Here is the code I am using, --------------------------------------------------- t=-5:.1:5; x=t; for i=1:length(x) y(i)=sin(x(i)); end for i=1:1:length(y) if(0.5<(y(1,i)) && (y(1,i))<=1) tc1(1,i)=1; end end for i=1:1:length(y) if(0<=(y(1,i)) && (y(1,i))<0.5) tc1(1,i)=2; end end for i=1:1:length(y) if(-0.5<=(y(1,i)) && (y(1,i))<0) tc1(1,i)=3; end end for i=1:1:length(y) if(-1.0<=(y(1,i)) && (y(1,i))<-0.5) tc1(1,i)=4; end end p1=x; check(1,:)=p1; check(2,:)=tc1; checkall=sortrows(check,2); p=checkall(1,:); tc=checkall(2,:); t=ind2vec(tc); targets=full(t); sc=16; calu(1,1)=sum(targets(1,:)); calu(2,1)=sum(targets(2,:)); calu(3,1)=sum(targets(3,:)); calu(4,1)=sum(targets(4,:)); c1=calu(1,1)/(sum(calu(1,1)+calu(2,1)+calu(3,1)+calu(4,1))); c2=calu(2,1)/(sum(calu(1,1)+calu(2,1)+calu(3,1)+calu(4,1))); c3=calu...

When I create a MATLAB Coder Project and try to convert this function: ------------------------- function y = myResampler(x,m,n) %#codegen fsVec = [8000 16000 32000 48000]; targetFsVec = [8000 16000 32000 48000]; fs = fsVec(m); targetFs = targetFsVec(n); y = resample(x,targetFs,fs); ------------------------- to C-code I get a build error saying: coder -build resamplerproj.prj ??? The upsample factor P must be constant. Error in ==> myResampler Line: 12 Column: 5 Code generation failed: Open error report. But I want to be able to resample x using a variable P/Q ratio. Is this just a limitation of Matlab Coder or am I doing something wrong?? John wrote: > When I create a MATLAB Coder Project and try to convert this function: > > ------------------------- > function y = myResampler(x,m,n) %#codegen > > fsVec = [8000 16000 32000 48000]; > targetFsVec = [8000 16000 32000 48000]; > > fs = fsVec(m); > targetFs = targetFsVec(n); > > y = resample(x,targetFs,fs); > ------------------------- > > to C-code I get a build error saying: > > coder -build resamplerproj.prj ??? The upsample factor P must be > constant. Error in ==> myResampler Line: 12 Column: 5 Code generation > failed: Open error report. > > > > But I want to be able to resample x using a variable P/Q ratio. > > Is this just a limitation of Matlab Coder or am I doing something wrong?? Apparently it's a limitation of RESAMPLE ...

Hi I need help on below...pls can some one give me the code I need to carry out these steps in Matlab.. Take an image in Raw in TIFF file...and then perform a) JPEG @ quality 100, 80, 60, 40, 20 and 0 b) SPIHT @ quality 100, 80, 60, 40, 20 and 0 c) EZW @ quality 100, 80, 60, 40, 20 and 0 Next step - Get MSE for all the above need to plot the graph.. Many Thanks "Indrasena " <mail2svijay@yahoo.com> wrote in message hello, may i know were you able to do this, becasue took me a while to do this code, need some clarificatiosn if you are done because i am done with SPIHT and EZW is left? what r u using the built in codes or the the matlab toolbox?? contact me at makeyourassignment@yahoo.com ...

How do I write a script that, given some variable x in the workspace, looks for the value in x inside the vector. I actually have no idea where to start with this. Thank you! "sam kuruvilla" wrote in message <j76unm$3e2$1@newscl01ah.mathworks.com>... > How do I write a script that, given some variable x in the workspace, looks for the value in x inside the vector. I actually have no idea where to start with this. Thank you! >>doc find ...

Hi there! I have a program which needs troubleshooting. I have been looking at every line over and over again but I cant seem to find the problem. I was wondering if anyone will be able to help me with it? My email is s0h.samu3l@gmail.com. Please email me so that I can better explain the problem. It's about a hundred lines long program. Look forward to your email! Thank you so much! "Samuel" wrote in message <ipbi41$hq8$1@fred.mathworks.com>... > Hi there! > > I have a program which needs troubleshooting. I have been looking at every line over and over again but I cant seem to find the problem. I was wondering if anyone will be able to help me with it? My email is s0h.samu3l@gmail.com. Please email me so that I can better explain the problem. It's about a hundred lines long program. Look forward to your email! > > Thank you so much! Hi Samuel, You should be able to troubleshoot the program down to a few lines and present us with those lines and the error message. Wayne "Wayne King" <wmkingty@gmail.com> wrote in message <ipbj9g$6bf$1@fred.mathworks.com>... > "Samuel" wrote in message <ipbi41$hq8$1@fred.mathworks.com>... > > Hi there! > > > > I have a program which needs troubleshooting. I have been looking at every line over and over again but I cant seem to find the problem. I was wondering if anyone will be able to help me with it? My email is s0h.samu3l@gmail.com. Ple...

What is happening when I type rand(1:10) at the command line? Matlab goes into a 10 minute spin - what's going on? Thanks "Robert" wrote in message <j64asi$5v4$1@newscl01ah.mathworks.com>... > What is happening when I type > rand(1:10) > at the command line? > > Matlab goes into a 10 minute spin - what's going on? > Thanks Hi Robert, You're create a 10-D array with that syntax. Do you just want a vector of 10 uniformly distributed random numbers. x = rand(10,1); % or x = rand(1,10); Wayne Hi Wayne, You're right - that's what I was trying to do... but I was just newbie mucking about trying to work out the syntax and I typed that in - then had a looong wait for Matlab to work through it! Thanks for the explanation. Robert "Robert" wrote in message <j64d2h$dvo$1@newscl01ah.mathworks.com>... > Hi Wayne, > You're right - that's what I was trying to do... but I was just newbie mucking about trying to work out the syntax and I typed that in - then had a looong wait for Matlab to work through it! > Thanks for the explanation. > Robert That's fine. Welcome to MATLAB!!! If that's the worst memory-intensive mistake you ever make, you'll be fine :) I've done much, much worse. Wayne ...

A student (Also Pupil) is a learner, or someone who attends an educational institution. In some nations, the English term (or its cognate in ...

Law schools work a lot of different angles to bring in students. This is a pretty non-traditional one.

... Republic star Stephen Glass visited Duke University today. During his talk, he dropped an astounding number: In his conversation with students ...

San Francisco State University is investigating allegations that an African-American university employee physically accosted a white student ...

Students at the Swiss Federal Institute of Technology have developed a new exoskeleton innovation, fixing a major flaw in modern exoskeletons. ...

(Don Boudreaux) Tweet Last night in my Principles of Microeconomics class at George Mason University (ECON 103) my students and I discussed ...

Russia searches for missing U.S. student in Siberia

For years, parents have assisted their children in shouldering the increasingly high cost of college: co-signing private student loans, taking ...

UVA Illegal Immigrant Group Demands ‘Xenophobes’ Be Barred From Student Government

Dazeinfo (blog) Cisco To Invest $100 Million in India To Push Digitisation And Train 250000 Students Dazeinfo (blog) Cisco Systems, Inc (NASDAQ:CSCO), ...

Resources last updated: 3/30/2016 8:43:48 PM