Hiya, i've been trying to figure out a way to create a code to differentiate, integerate and plot the results for a fluid mechanics problem and would really appreciate any sort of help that i can get. The problem's about volume-flow through a pump. What i'm meant to do is make a GUI through GUIDE and have 3 m-files which can load data from 2 excel files. the excel files contain 2 columns of Q(volume flow) and time and numerous rows of values taken at different time intervals. What i'm supposed to do is create three m-files to determine: a. The change of volume flow with respect to time of the fluid in the pump i.e dq/dt. b. The volume of fluid entering the hydraulic circuit / | | Q dt | / (integrate Q with respect to t) c. A function file that determines the difference in the volume of fluid in this system and a similar system without a leak, which means the 2 data sets in the 2 excel files. they have been sampled at different rates so i need to interpolate them as well. And in the end, plot all a, b, and c with respect to time. The problem is, i find the derivative of Q with respect to t throw diff(q)./diff(t)...which ultimately caused the resulting dataset to have one element less than q or t, and thus, i cant plot it against t. how do i add another element to diff(q)./diff(t)? i tried using size(dqdt) = [1001,1] => adding one more element to the set but it doesnt accept it (dqdt is diff(q)./diff(t)). What should i do? i believe this would be fair...

I am new to matlab but I need code urgently to pass my final year project. The project intends to compare Walsh-Hadamard and Gold codes. The matlab code should do the following: ---------------- PART ONE: ---------------- (1) generate random message bits (2) generate walsh-hadamard codes (3) modulate the signal (4) transmit the spreaded signal (5) plot the message and walsh-hadamard codes as rectangular pulses; also plot the spreaded signal, with labels on plots. (6) on the same figure, do the reverse, i.e plot the demodulated, de-spreaded signal, just as it was shown at the transmitter side. (that is transmitter plots on left and receiver plots on right, on the same figure). ----------------- PART TWO: ----------------- (1) introduce noise to the channel (2) simulate in single user environment (3) simulate in multi-user environment (4) plot the autocorrelation and cross correlation (5) plot the Bit Error Rate (BER) ------------------- PART THREE: ------------------- Repeat the process in PART ONE and PART TWO for Gold codes. I know this project is big and challenging, but I need help and I will surely appreciate all the necessary help I can get in this forum. Thank you in advance! My Contact Info: ------------------------------- netfluz@yahoo.com netfluz@facebook.com facebook.com/netfluz +2348132935268 I have done some work on the project and I have these Matlab codes. My problem is tuning or modifying these codes to fit the format I described above (i.e to serve th...

I am new to matlab but I need code urgently to pass my final year project. The project intends to compare Walsh-Hadamard and Gold codes. The matlab code should do the following: ------------ PART ONE: ------------ (1) generate random message bits (2) generate walsh-hadamard codes (3) modulate the signal (4) transmit the spreaded signal (5) plot the message and walsh-hadamard codes as rectangular pulses; also plot the spreaded signal, with labels on plots. (6) on the same figure, do the reverse, i.e plot the demodulated, de-spreaded signal, just as it was shown at the transmitter side. (that is transmitter plots on left and receiver plots on right, on the same figure). ------------- PART TWO: ------------- (1) introduce noise to the channel (2) simulate in single user environment (3) simulate in multi-user environment (4) plot the autocorrelation and cross correlation (5) plot the Bit Error Rate (BER) --------------- PART THREE: --------------- Repeat the process in PART ONE and PART TWO for Gold codes. I know this project is big and challenging, but I need help and I will surely appreciate all the necessary help I can get in this forum. Thank you in advance! My Contact Info: ------------------- netfluz@yahoo.com netfluz@facebook.com facebook.com/netfluz +2348132935268 On 30/06/2011 9:58 p.m., Adeyemi wrote: > I am new to matlab but I need code urgently to pass my final year > project. The project intends to compare Walsh-Hadamard and Gold codes. > The matlab co...

please any volunteer can give a code for the ieee paper Data Hiding in Motion Vectors of Compressed Video Based on Their Associated Prediction Error by Hussein A. Aly, Member, IEEE please i need it...so important...please if any one can do it please contact me:preetamreddy.pothala@gmail.com preetampothala@gmail.com thanks.... ...

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. ...

Hi all, I am involved a massive scale simulation where I intend to get 625 sets of Data. Each set of Data takes 20 hours with no parallel featuere implemented. If want to use the parallel computing toolbox and then distributed computing server from matlab, I need to parallelize the matlab code. However, I face problem in doing so and expecting some suggestions from you all.Templeate of my code is as follows--- *********625 sets********* for iii for jjj for kkk for lll ........i end end end end **********I use this 625 sets of parameters*** for r=1:625 ... ... for j=1:60 (another parameter) .... .... ...for k=0:100 (parameter) C=ode45 %calling ODE solver function parameters=[.......] %passing parameters Data=function(parameters) %calling function to simulate...we are using ensemble_run from simbiology 3.0 tool box to simulate% MAIN DATA(k+1, 1)=Data; end MAIN_DATA_2(:,j)=MAIN DATA end renaming data files based on "r" save MAIN_DATA_2_renamed end end *********************************************************** Even when I try to use parfor, it says that the way MAIN_DATA, ODE SOLVER, MAIN_DATA_2 is defined, I can't implement parfor. Could you guys help on how to parallelize the code? I am not so familiar with parallel concept of matlab. Thanks, Shahriar ...

hi friends , 1)i have a C++ program for resource allocation for real time services in ofdm systems.I need to call this program to return the capacity for each user to draw a graph in matlab can anybody elucidate the steps how to embed the particular program in matlab. 2)i need to take input from rayleigh fading function in matlab to the c + program could somebody tell how to do that tooo On 20 Feb, 05:07, "sharad kumar.j" <aryansmit3...@gmail.com> wrote: > hi friends , > 1)i have a C++ program for resource allocation for real time services > in ofdm systems.I need to call this program to return the capacity for > each user to draw a graph in matlab can anybody elucidate the steps > how to embed the particular program in matlab. > 2)i need to take input from rayleigh fading function in matlab to the c > + program could somebody tell how to do that tooo Check out the External Interfaces part of the matlab documentation. Rune ...

I have used MATLAB for few hours.So I don't know the differences between version 6.5 and 7.0.I want to use some codes of MATLAB 7.0, but they doesn't work in MATLAB 6.5.How to change these codes so that they can work in matlab 6.5.Waiting for your help. Thank you . The codes are like this .I think changing the function findPI may work ,but I don'y know how % PIfun.m % Evaluate a function used to find the PI-line, using Kyle Champley's % method. % % Adam Wunderlich % last update: 5/18/06 function y = PIfun(r,R,h,gamma,x3,sb) temp = R - r*cos(gamma-sb); y = h*((pi - 2*atan(r*sin(gamma-sb)/temp))*(1 + (r^2 - R^2)/ (2*R*temp)) ... + sb) - x3; % find_PI_Line.m % % Find the the parametric interval corresponding to the unique PI-line % passing through the point x for a given helical pitch. % This code implements the method of Kyle Champley. % inputs: P = pitch (cm/turn), R = helix radius, delta_s = s stepsize, x % output: PI = [sb st] % % Adam Wunderlich % last update: 5/18/06 function [PI] = findPI(P,R,delta_s,x) h = P/(2*pi); r = sqrt(x(1)^2+x(2)^2); gamma = atan2(x(2),x(1)); options = optimset('TolX',h*delta_s/100,'FunValCheck','on'); [sb,fval,exitflag] = fzero(@(sb) PIfun(r,R,h,gamma,x(3),sb),... [(x(3)-h*pi)/h,x(3)/h],options); if exitflag ~=1, disp('Error: PI invalid'); end % note that beta=sb in Kyle's formula alphaX = atan(r*sin(gamma-sb)/(R - r*cos(gamma-sb))); st = sb + pi -...

plzzzz suggest coding for Morphological edge detection,text feature filtering and text region binarization!!! Else just suggest algorithms for them all!! On Wednesday, April 18, 2012 7:00:26 PM UTC+12, supriya wrote: > plzzzz suggest coding for Morphological edge detection,text feature filte= ring and text region binarization!!!=20 > Else just suggest algorithms for them all!! Here's a couple of suggestions: E=3Dm*c^2 x=3Db =B1 sqrt(b^2-4*a*c)/(2*a) ...

hello everybody, i m currently trying to recognise diffrent shapes like triangles,circles, polygons etc. i hv 36x36 binary images. I m presently trying it with matlab toolbox. My network consists of 3 layers with 1296 neurons in the input and 144 in the hiddenn and 6 in the output layer. but when I tried to simulate the network with sim() function, i get this kind of error. ??? One or more output arguments not assigned during call to 'K:\Matlab\toolbox\nnet\nnet\@network\sim.m (simargs)'. Error in ==> network.sim at 183 case 2, [err,P,Pi,Ai,T,Q,TS,matrixForm] = simargs(net,P); but i don't get this error when data is not so large. and suggest me a better book or online material for neural network design. can someone help with this problem... thanking you , bye ramanjaneyulu What is simargs? I don't have one on v6.5. R13 SP1 Greg ...

Problem: We are constructing hemispherical domes, and wish to know how much concrete is required. For a given outer radius (in feet), and wall thickness (in inches), compute the volume v (in cubic yards) of concrete that will be needed. For the volume of a sphere, we use the formula V = 4/3 * pi * r^3 where r is the radius. Using the Engineering Problem-Solving Methodology from class, develop a complete solution to find the amount of concrete for a particular size of dome. Implement your solution with a MATLAB script that includes commands for getting the outer radius and wall thickness from a user and prints a formatted result for the volume. Requirements: • The outer radius and wall thickness for the dome are user-defined input values • Your variable names should be descriptive of their meaning to the problem • Your script must contain appropriate descriptive comments • Your output must describe the solution value and specify appropriate units I dont understand why we need the wall thickenss or how to write this. Please help The dome will be a concrete shell say you need to knwo how thick it is in order to determine how much concrete you need. Steps: 1) Calculate the volume of the outside radius R 2) Calculate the volume of the inside radius (R-t) where t is the thickness 3) take (2) from (1) Samthing like this should work (have not tested it). You can factorize it and clean it up a bit. 4/3 * pi * R^3 - 4/3 * p...

I am trying to use invariant moment to "code" some letters from a road sign, surprisingly I get this weird results in Matlab (please see picture..) http://yfrog.com/e5neveshananasdg As you can see there is two letters (Hebrew :) ) one is very different from the other, but still when calculating the moments I get the same results (the seven moments appear above the pic). I have two question : 1) Is this technique good for this kind of a problem? 2) I would expect to get a very diffrent result from this two letters, but still they are almost they same, y ? Thanks O On Nov 1, 10:30=A0pm, Eizo <odpe...@gmail.com> wrote: > I am trying to use invariant moment to "code" some letters from a > road > sign, surprisingly I get this weird results in Matlab (please see > picture..) > > http://yfrog.com/e5neveshananasdg > > As you can see there is two letters (Hebrew :) ) one is very > different > from the other, but still when calculating the moments I get the same > results (the seven moments appear above the pic). > =A0I have =A0two question =A0: > > 1) Is this technique good for =A0this kind of a problem? > 2) I would expect to get a very diffrent result from this two > letters, > but still they are almost they same, y ? > > Thanks > O anyone ? ...

Dear all, I'm working on a alphanumeric data set. I have a code you can find below and i need help on finding the problem on it. My data is something like this: '0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0.00,0.00,0.00,0.00,1.00,0.00,0.00,255,254,1.00,0.01,0.00,0.00,0.00,0.00,0.00,0.00' '0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0.00,0.00,0.00,0.00,1.00,0.00,0.00,255,254,1.00,0.01,0.00,0.00,0.00,0.00,0.00,0.00' > > fid = fopen('data.txt','rt'); > > data=textscan(fid,'%s','delimiter'); > > fclose(fid); > > > > % Engine - use regexp! > > data=cat(1,data{:}); > > String_data=regexp(data,'([A-Z a-z]+)','match'); % Remove all numeric > > Numeric_data=regexp(data,'([0.00-9.99]+)','match'); % Remove all letters > > > > Numeric_data=cat(1,Numeric_data{:}); > > String_data=cat(1,String_data{:}); > > DATA=[String_data(:,1:end-1) Numeric_data(:,1:end-1) String_data(:,end)]; The problem is that, when i use exactly the same data lines like above , it works perfectly and DATA is exactly the thing i want to find. But for example at the 3rd column where the string private, we also have http, smtp etc strings at different rows of the dataset.. So the problem is that, if the number of characters in a string is different in two lines, the code gives an error message . If they are exactly same it work...

Some one Help me to convert the following C++ code to Matlab code for(init x=-5; x++ ; x<=10) { if (x<=0) y=2; else y=3 * x; plot (x,y) } ...

Dear friends, I have a Matlab code to process a pure analog signal 'u'. Now I want to implement it in Simulink and I want to use it in 'Embedded Matlab fun block' so i need to transform 'Matlab code' to 'Embedded Matlab fun code' to perform the task. The Matlab code is as follows: %%%%%%%%%%%%%%%%%%%%% u_abs = abs(u); major_th = 1.5e-1; minor_th = 1.8e-2; major_peak_value = []; minor_peak_value = []; pos = 1; pos_max = 1; while ~isempty(pos) [m pos_max(end+1)] = max( u_abs( pos : pos + 10) ); pos_max(end) = pos_max(end) + pos - 1; if m > major_th major_peak_value(end+1) = m; else minor_peak_value(end+1) = m; end % exit the peak pos = find(u_abs(pos:end) < minor_th, 1 , 'first') + pos-1; % Find the beginning of the next peak pos = find(u_abs(pos:end) > minor_th, 1 , 'first') + pos-1; end pos_max(2) = []; plot(u); hold on; plot(pos_max,u(pos_max),'ro'); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% I think i don't need this plot command as I will see the result in the scope directly. Any suggestion will be very useful. Thanking you! Prashant "Prashant Sandhi" wrote in message <jafvj8$soq$1@newscl01ah.mathworks.com>... > Dear friends, > > I have a Matlab code to process a pure analog signal 'u'. Now I want to implement it in Simu...

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 ...

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 ...

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 ...

Let U[0; 2theta] be a uniform random variable from the interval [0; 2theta] and let A Exp(1) be exponentially distributed with mean 1. Assume and A independent. Compute the mean mX(t) =E[X(t)] and autocorrelation RX(s; t) = E[X(s)X(t)] of the phase-shifted sinusoid.X(t) = A* cos(t +theta ): State also if X(t) is Wide Sense Stationary (WSS). plot 10 realisations of X(t) plotR(s-t,0)as a function of s-t "pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>... > Let U[0; 2theta] be a uniform random variable from the interval [0; 2theta] and let A Exp(1) be exponentially distributed with mean 1. Assume and A independent. Compute the mean mX(t) =E[X(t)] and autocorrelation RX(s; t) = E[X(s)X(t)] of the phase-shifted sinusoid.X(t) = A* cos(t +theta ): > State also if X(t) is Wide Sense Stationary (WSS). > plot 10 realisations of X(t) > plotR(s-t,0)as a function of s-t So what have you tried? If you have not tried anything, this is a suggestion that you were not paying attention in class. Make an effort. John "pramod kumar" <pramod.kilu@gmail.com> wrote in message <jpapso$44b$1@newscl01ah.mathworks.com>... > Let U[0; 2theta] be a uniform random variable from the interval [0; 2theta] and let A Exp(1) be exponentially distributed with mean 1. Assume and A independent. Compute the mean mX(t) =E[X(t)] and autocorrelation RX(s; t) = E[X(s)X(t)]...

I have CA code of GPS, and I want to do DFT on the code in matlab and plot please help me On 5/30/2011 1:42 AM, Lk Khurelbaatar wrote: > I have CA code of GPS, and I want to do DFT on the code in matlab and plot please help me doc fft --Nasser On May 30, 8:42=A0pm, "Lk Khurelbaatar" <hourgla...@yahoo.com> wrote: > I have CA code of GPS, and I want to do DFT on the code in matlab and plo= t please help me And I want to spin straw into gold, help me please. ...

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'm trying to make a dll from an m-file and use the dll function calling from the workspace or from an m file using 2008A version: Step 1 function [output] = addizione (a,b) output = a+b; end Step 2 I compile it with matlab compiler mcc -l addizione I obtain addizione.dll, .lib, .h etc Step 3 load the newly created addizione.dll loadlibrary ('addizione','addizione') with the following warnings: Type 'LARGE_INTEGERPtr' was not found. Defaulting to type voidPtr. Found on line 20522 of input from line 7673 of file C:\Programmi\MATLAB\R2008a\sys\lcc\include\win.h Type '_TREEITEMPtr' was not found. Defaulting to type voidPtr. Found on line 20944 of input from line 8095 of file C:\Programmi\MATLAB\R2008a\sys\lcc\include\win.h Type 'PROPSHEETPAGEPtr' was not found. Defaulting to type voidPtr. Found on line 21328 of input from line 8479 of file C:\Programmi\MATLAB\R2008a\sys\lcc\include\win.h Type '_PSPPtr' was not found. Defaulting to type voidPtr. Found on line 21329 of input from line 8480 of file C:\Programmi\MATLAB\R2008a\sys\lcc\include\win.h Type 'PROPSHEETHEADERPtr' was not found. Defaulting to type voidPtr. Found on line 21351 of input from line 8502 of file C:\Programmi\MATLAB\R2008a\sys\lcc\include\win.h Type 'LARGE_INTEGER' was not found. Defaulting to type error. Found on line 21610 of input from line 8761 of file C:\Programmi\MATLAB\R2008a\sys\lcc\include\win.h Type 'L...

Hi, everyone, Sorry to bother you! I want draw a picture with the Matlab. There will be ten lines in a picture and each line has ten points. I want to distinguish every line and every point. How to set? The following codes are used to distinguish the style of the line and mark the points on the same line. linestr={'k-o','k-s','g-*','b-d','b-h','g-p','r-+','k-x','b-<','b->','k-v','b--','g--','r--','k-'}; linewidth = 1.5; plot(rmss_def(:,n),rms_acc(:,n) ,linestr{jj},'linewidth',linewidth); I do really want to know the sequence of each point on a line. An arrow is ok which can tell me the first point and the end. If the size of the marksize can be changed automatically is also ok. How to do? Best wishes! Yours Sincerely, Xinjie Zhang ...

What is wrong with this I keep getting ??? Error using ==> ComputeScholarship Too many input arguments. and Error in ==> Lab3 at 28 scholarship = ComputeScholarship(level,grade); THIS IS MY SCRIPT FILE: clear all clc name = input('Please enter your name: ','s'); exam1 = input('Please enter Exam 1 grade: '); exam2 = input('Please enter Exam 2 grade: '); lab = input('Please enter Lab grade: '); final = input('Please enter final grade: '); level = input('Please enter student’s grade level (1-Freshman to 4-Senior): '); vector = [exam1,exam2,lab,final]; grade = CourseGrade(vector); fprintf('%s your class average is %4.2f\n',name,grade); if (grade >= 90) fprintf('You will recieve an A\n'); elseif (grade >= 80) fprintf('You will recieve a B\n'); elseif (grade >= 70) fprintf('You will recieve a C\n'); elseif (grade >= 60) fprintf('You will recieve a D\n'); else fprintf('You will recieve a F\n'); end scholarship = ComputeScholarship(level,grade); fprintf('%s\n',scholarship); THIS IS MY FUNCTION FILE: function [ scholarship ] = ComputeScholarship( level,grade ) if (level == 1) if(grade >= 90) scholarship = fprintf('You will recieve a $1500 scholarship'); elseif(grade >= 80) scholarship = fprintf('You will recieve a $1000 schola...

Working class, or proletarian novels are often also social problem novels . This was in many ways a reaction to rapid industrialization , and ...

... Volkswagen will recall the 5,561 e-Golf electric vehicles that it’s sold in the US since November 2014 due to a battery software problem, the ...

... Nicolaus ’s Patrick Ho , who cut his rating on the shares to Hold From Buy, and stripped away his $11 price target, writing that the problem ...

... terribly unfair – just to avoid contact with the 1% who might be infected with the radical islamic terror virus. Trump is approaching the problem ...

Only about 40% of Apple's customer base upgraded to a new iPhone in the last year or so, and some analysts have suggested that flagging upgrade ...

Trump's poor showing with women is turning the GOP's gender gap into a canyon, says Margie Omero. That will be a big problem in November.

"Their (Republicans') rhetoric is also counterproductive when it comes to protecting the American people. And that's a significant problem, particularly ...

The Real Problem With Trump’s Candidacy—It’s Much More Than Bad Manners

Steelers wide receiver Antonio Brown is a contestant on this season of Dancing With The Stars , and he made it through the latest round of cuts ...

Former MySQL Marten Mickos, now CEO of security vendor HackerOne, admits to a security debt that open-source must now pay.

Resources last updated: 3/31/2016 4:39:22 AM