f

#### Differences In Digits between Matlab and Maple

```so I was wondering if anyone could help explain the following.......

In Maple I execute

Digits := 100
evalf(5*sin(15*Pi*(1/16)))

and it returns

0.9754516100806413392414243423851112046384580887597740387725104474738165939296229011266265461704519090

In Matlab I execute

digits(100)
pi2=vpa(pi)
vpa(sin((pi2*15)/16))*5

and it returns
0.9754516100806413392414243423851112046384580887597740387725104474738165939296229011266265461704519100

hence there is a difference in the last few digits

In maple ....519090

In matlab .... 519100
```
 0
omegayen (84)
8/3/2009 3:57:02 PM
comp.soft-sys.matlab 211264 articles. 26 followers. lunamoonmoon (257) is leader.

5 Replies
374 Views

Similar Articles

[PageSpeed] 53

```The problem is vpa(pi). A hint, why are the following two lines returns
different results?

>> digits(100)
>> vpa('pi')
ans =
3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117068
>> vpa(pi)
ans =
3.141592653589793115997963468544185161590576171875

"omegayen " <omegayen@ameritech.net> wrote in message
news:h571ce\$q7c\$1@fred.mathworks.com...
> so I was wondering if anyone could help explain the following.......
>
> In Maple I execute
>
> Digits := 100
> evalf(5*sin(15*Pi*(1/16)))
>
> and it returns
>
> 0.9754516100806413392414243423851112046384580887597740387725104474738165939296229011266265461704519090
>
> In Matlab I execute
>
> digits(100)
> pi2=vpa(pi)
> vpa(sin((pi2*15)/16))*5
>
> and it returns
> 0.9754516100806413392414243423851112046384580887597740387725104474738165939296229011266265461704519100
>
> hence there is a difference in the last few digits
>
> In maple ....519090
>
> In matlab .... 519100

```
 0
bcheng (209)
8/3/2009 4:16:17 PM
```"Bobby Cheng" <bcheng@mathworks.com> wrote in message
news:h572fb\$9lg\$1@fred.mathworks.com...
> The problem is vpa(pi). A hint, why are the following two lines returns
> different results?
>
>>> digits(100)
>>> vpa('pi')
> ans =
> 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117068
>>> vpa(pi)
> ans =
> 3.141592653589793115997963468544185161590576171875

I would recommend that the OP use neither of these, but instead explicitly
creates a sym object from pi:

vpa(sym(pi), 100)

The default behavior of the SYM function recognizes expressions in certain
forms, including rational multiples of pi, and represents them exactly as a
symbolic quantity.  When VPA converts the value into a symbolic object, it
does not use this technique.  That's why the second of Bobby's calls behaves
the way it does.  The first of the forms depends on the symbolic engine
recognizing that 'pi' is pi, and IMO it's better to explicitly state that
you want pi to be treated symbolically.

--
Steve Lord
slord@mathworks.com

```
 0
slord (13689)
8/3/2009 4:59:29 PM
```"Steven Lord" <slord@mathworks.com> wrote in message <h5751h\$nj9\$1@fred.mathworks.com>...
>
> "Bobby Cheng" <bcheng@mathworks.com> wrote in message
> news:h572fb\$9lg\$1@fred.mathworks.com...
> > The problem is vpa(pi). A hint, why are the following two lines returns
> > different results?
> >
> >>> digits(100)
> >>> vpa('pi')
> > ans =
> > 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117068
> >>> vpa(pi)
> > ans =
> > 3.141592653589793115997963468544185161590576171875
>
> I would recommend that the OP use neither of these, but instead explicitly
> creates a sym object from pi:
>
> vpa(sym(pi), 100)
>
> The default behavior of the SYM function recognizes expressions in certain
> forms, including rational multiples of pi, and represents them exactly as a
> symbolic quantity.  When VPA converts the value into a symbolic object, it
> does not use this technique.  That's why the second of Bobby's calls behaves
> the way it does.  The first of the forms depends on the symbolic engine
> recognizing that 'pi' is pi, and IMO it's better to explicitly state that
> you want pi to be treated symbolically.
>
> --
> Steve Lord
> slord@mathworks.com
>
I am not having the same error as bobby, not sure why...... I understand what you are saying Steve and it makes sense.....

however, the same problem results as stated above with a difference in the last few digits when using the correct matlab call

digits(100)
sin((vpa(sym(pi))*15)/16)*5
```
 0
omegayen (84)
8/3/2009 7:52:02 PM
```"omegayen " <omegayen@ameritech.net> wrote in message <h57f52\$lt1\$1@fred.mathworks.com>...
> "Steven Lord" <slord@mathworks.com> wrote in message <h5751h\$nj9\$1@fred.mathworks.com>...
> >
> > "Bobby Cheng" <bcheng@mathworks.com> wrote in message
> > news:h572fb\$9lg\$1@fred.mathworks.com...
> > > The problem is vpa(pi). A hint, why are the following two lines returns
> > > different results?
> > >
> > >>> digits(100)
> > >>> vpa('pi')
> > > ans =
> > > 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117068
> > >>> vpa(pi)
> > > ans =
> > > 3.141592653589793115997963468544185161590576171875
> >
> > I would recommend that the OP use neither of these, but instead explicitly
> > creates a sym object from pi:
> >
> > vpa(sym(pi), 100)
> >
> > The default behavior of the SYM function recognizes expressions in certain
> > forms, including rational multiples of pi, and represents them exactly as a
> > symbolic quantity.  When VPA converts the value into a symbolic object, it
> > does not use this technique.  That's why the second of Bobby's calls behaves
> > the way it does.  The first of the forms depends on the symbolic engine
> > recognizing that 'pi' is pi, and IMO it's better to explicitly state that
> > you want pi to be treated symbolically.
> >
> > --
> > Steve Lord
> > slord@mathworks.com
> >
> I am not having the same error as bobby, not sure why...... I understand what you are saying Steve and it makes sense.....
>
> however, the same problem results as stated above with a difference in the last few digits when using the correct matlab call
>
> digits(100)
> sin((vpa(sym(pi))*15)/16)*5

... As an example of how this is a problem let me illustrate with part of a similar problem as the one I am trying to solve. I am using Matlab R2009a and Maple 13 both 64 bit versions and the latest Maple toolbox for Matlab....

In maple....

Digits := 100;

a := .8;

b := .9;

X := Pi*(b-a);

Y := sqrt(X/Pi);

0.3162277660168379331998893544432718533719555139325216826857504852792594438639238221344248108379300295

In Matlab ....

digits(100);

a=.8;

b=.9;

X=vpa(sym('pi'))*(b-a);

Y=sqrt(X/vpa(sym('pi')));

% I then use in Matlab

>>maple

>>setmaple('Y',Y)

This opens a Maple session and I browse Y in Maple

0.3162277660168378984148350925910972882061421233029115028617653652336801047210508716601445052132716585

........ This is quite a problem since the digits are starting to vary after the 15th digit and on the 16th digit.... Can anyone help suggest how I can get these results to agree. From my understanding they should at least be a lot closer. Thanks for your help.
```
 0
omegayen (84)
8/4/2009 4:00:19 AM
```"omegayen " <omegayen@ameritech.net> wrote in message <h58boj\$90h\$1@fred.mathworks.com>...
> "omegayen " <omegayen@ameritech.net> wrote in message <h57f52\$lt1\$1@fred.mathworks.com>...
> > "Steven Lord" <slord@mathworks.com> wrote in message <h5751h\$nj9\$1@fred.mathworks.com>...
> > >
> > > "Bobby Cheng" <bcheng@mathworks.com> wrote in message
> > > news:h572fb\$9lg\$1@fred.mathworks.com...
> > > > The problem is vpa(pi). A hint, why are the following two lines returns
> > > > different results?
> > > >
> > > >>> digits(100)
> > > >>> vpa('pi')
> > > > ans =
> > > > 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117068
> > > >>> vpa(pi)
> > > > ans =
> > > > 3.141592653589793115997963468544185161590576171875
> > >
> > > I would recommend that the OP use neither of these, but instead explicitly
> > > creates a sym object from pi:
> > >
> > > vpa(sym(pi), 100)
> > >
> > > The default behavior of the SYM function recognizes expressions in certain
> > > forms, including rational multiples of pi, and represents them exactly as a
> > > symbolic quantity.  When VPA converts the value into a symbolic object, it
> > > does not use this technique.  That's why the second of Bobby's calls behaves
> > > the way it does.  The first of the forms depends on the symbolic engine
> > > recognizing that 'pi' is pi, and IMO it's better to explicitly state that
> > > you want pi to be treated symbolically.
> > >
> > > --
> > > Steve Lord
> > > slord@mathworks.com
> > >
> > I am not having the same error as bobby, not sure why...... I understand what you are saying Steve and it makes sense.....
> >
> > however, the same problem results as stated above with a difference in the last few digits when using the correct matlab call
> >
> > digits(100)
> > sin((vpa(sym(pi))*15)/16)*5
>
>
> .. As an example of how this is a problem let me illustrate with part of a similar problem as the one I am trying to solve. I am using Matlab R2009a and Maple 13 both 64 bit versions and the latest Maple toolbox for Matlab....
>
> In maple....
>
> Digits := 100;
>
> a := .8;
>
> b := .9;
>
> X := Pi*(b-a);
>
> Y := sqrt(X/Pi);
>
> 0.3162277660168379331998893544432718533719555139325216826857504852792594438639238221344248108379300295
>
>
> In Matlab ....
>
> digits(100);
>
> a=.8;
>
> b=.9;
>
> X=vpa(sym('pi'))*(b-a);
>
> Y=sqrt(X/vpa(sym('pi')));
>
> % I then use in Matlab
>
> >>maple
>
> >>setmaple('Y',Y)
>
> This opens a Maple session and I browse Y in Maple
>
> 0.3162277660168378984148350925910972882061421233029115028617653652336801047210508716601445052132716585
>
> ....... This is quite a problem since the digits are starting to vary after the 15th digit and on the 16th digit.... Can anyone help suggest how I can get these results to agree. From my understanding they should at least be a lot closer. Thanks for your help.

This difference did not exist in R2008b:

>> digits(100);

a=.8;

b=.9;

X=vpa(sym('pi'))*(b-a);

Y=sqrt(X/vpa(sym('pi')))

Y =

0.3162277660168379331998893544432718533719555139325216826857504852792594438639238221344248108379300295

KH
```
 0
8/5/2009 3:00:18 PM

Similar Artilces:

Differences in Digits in Matlab
I posted a thread over at...... http://www.mathworks.com/matlabcentral/newsreader/view_thread/257642#670417...... regarding differences in digits between Maple and Matlab which still has not been fully addressed.... However, the problem I observe is also seen in just Matlab on it's own.... The behavior has to do with the sym object class. (I am using the Maple toolbox for matlab and Matlab R 2009 A 64 bit) As an example >> digits(30) >> vpa(sym('pi'))*.1 ans = 0.314159265358979342695820259867 >> vpa(sym('pi'))*(.9-.8) ans = 0.314159265358979254731225959353 Both of the above are being multiplied by the same number .1 however the case where (.9-.8) is instead being multiplied yields a different result..... Could anyone please shed some light on this for me.... Thanks. omegayen <omegayen@ameritech.net> wrote: >>> vpa(sym('pi'))*.1 > > ans = > > 0.314159265358979342695820259867 >>> vpa(sym('pi'))*(.9-.8) > > ans = > > 0.314159265358979254731225959353 > > Both of the above are being multiplied by the same number .1 however > the case where (.9-.8) is instead being multiplied yields a different > result..... Seems like this is showing up almost daily lately. The above are NOT being multiplied by the same number. Binary computers have limited resolution so ( ...

different results in function regress from MATLAB 6.5 to MATLAB 7.0
Hello , anybody knows when I execute the function "regress" to this model (STAR(1)) Yt = 1 - 0-5Yt-1 - (4 + 0.4Yt-1)G(gamma*Yt-1) + et, where G(z) =1/ [1 + exp(-z)], gamma=4; et=N(0,1) I obtain different radically different results from matlab 6.5 to matlab 7.0 that with other models??Any suggestion to avoid this problem??? On May 25, 4:40=A0am, "Kun Aguero" <isildur20022...@yahoo.es> wrote: > Hello , anybody knows when I execute the function "regress" to this model= (STAR(1)) > Yt =3D 1 - 0-5Yt-1 - (4 + 0.4Yt-1)G(gamma*Yt-1) + et, where G(z) =3D1/ [1= + exp(-z)], > gamma=3D4; > > et=3DN(0,1) > I obtain different radically different results from matlab 6.5 to matlab = 7.0 that with other models??Any suggestion to avoid this problem??? Please show the relevant code. Hope this helps. Greg Well,I have made several tests and this is the result: -When I use the function regress in this format in matlab 6.5, it works: [B1,BINT1,R_X,RINT1,STATS1]=regress(X(2:length(X))',[ones(length(X)-1,1),X(1:length(X)-1)']); -When I use the same format in matlab 7.0 it doesn't works, but if I use this format: [B1,BINT1,R_X,RINT1,STATS1]=regress(X(2:length(X))',X(1:length(X)-1)'); It works in matlab 7.0. Then I think the problem is how the function regress treats the independent term in both versions?? regards Greg Heath <heath@alumni.brown.edu> wrote in message <69879944-34b7-4262-a193-0bb545d8cf99@...

Spawning matlab from within matlab
Hello all, I would like to spawn multiple matlab processes from an '.m' script. Meaning, run an m-file from a 'parent' Matlab that launches, say, 8 more 'children' matlab processes. I'd like to do it in such a way that the same m-file in the 'parent' is able to close down, or kill, all the 'children' processes. Any suggestions? Joe ...

how to digitize in matlab
I am new to using matlab 2007a version . I am looking to digitize maps in matlab. I downloaded the Digitize.m file from the site.kindly tell me that What i will do with this file and where will i save this matfile in matlab and how to use this tool. ...

Matlab engine with matlab R2010b
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¡ ...

Creating DLL in Matlab and using them in Matlab?
Hi, is it possible to create dll in Matlab and then using it in other Matlab apllication? I've made a simple function and put it into dll. But when I try to use this library in other apllication written in matlab it doesn't works. Any idea? -- Pozdrawiam, e-Shrek hi e-shresk, I once created a matlab dll, and called it in c code. it worked. I guess you have to check whether you dll was built correctly or not. ps. why don't u call matlab function directly? Dnia Mon, 26 Oct 2009 07:19:04 +0000 (UTC), Jun napisa�(a): > hi e-shresk, > > I once created a matlab dll, and called it in c code. it worked. Hmmm. The function is very simple: ========================== function var_o = testlib(var_i) if var_i == '1', var_o = 'jest'; else var_o = 'brak'; end ========================== Compilation: mcc -W lib:xlib -T link:lib testlib After it, I have *.dll *.lib *.h Tryin' to load library: loadlibrary('xlib.dll','xlib.h'); The result is: Warning: Warnings messages were produced while parsing. Check the functions you intend to use for correctness. Warning text can be viewed using: [notfound,warnings]=loadlibrary(...) > In loadlibrary at 394 Where is the problem? > ps. why don't u call matlab function directly? I have a pack of functions that I wouldlike to use with few different matlab compiled programs. -- Pozdrawiam, e-Shrek On Oct 26, 1:47=A0pm, e-Shrek <e-Shrek.wyt...@wytni...

embedded matlab function MATLAB R2009a
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! ...

Mathematica, Maple or MatLab ?
Hello, I've been looking at what appears to be the main 3 front runners in the high end math-> calculating, cad/print, and equation solving capabilities. Would like input on which one you feel is best at doing the above in integration, differentiation (including those with trig function/symbols). Also capabilities of infinite series convergence with the ability to use variables in these functions with user given values. ...

Contribute to MATLAB Central and Win a MATLAB Jacket
Many of you who post to this newsgroup are also regular contributors to the MATLAB Central File Exchange. Look for your favorite contributors on our File Exchange Author Profile page. You can read their profiles and see pictures: <http://www.mathworks.com/matlabcentral/reports/fileexchange/allProfiles/> In a random drawing, we recently awarded MATLAB jackets to three File Exchange authors with profile pages: Michele Giugliano, Andrey Egin, and Denis Gilbert. You can win a jacket, too. Just submit a new file to the File Exchange or update your author profile by December 2003 for a chance to win one of four MATLAB jackets. See the jacket below: <http://www.mathworks.com/matlabcentral/images/jeff3.jpg> Here are some interesting File Exchange facts: - Since its inception in 2001, visitors have downloaded more than 1.25 million submissions from the File Exchange. - In September 2003 alone, visitors downloaded 80,085 files, an average of 2670 a day! .... what if the prize was a free copy of the next version of Matlab :-) majb Min Poh wrote: ....or an offer for employment... aj "bourassa" <bourassa-m@rmc.ca> wrote in message news:3f9d507d\$1@rmcnt03a.rmc.ca... > ... what if the prize was a free copy of the next version of Matlab :-) > > majb > > Min Poh wrote: > ...

Problems calling from Matlab a Matlab compiled dll

creating GUI in matlab out of some programs written in matlab
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...

Matlab 2011: matlab coder (build failed)
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 ...

Matlab parallel for loop or Matlab open pool
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! ...

code of matlab 7a not working in matlab 2009
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 ...

Debugging matlab with emacs and avoiding matlab editor
I am using matlab mode in emacs to run matlab without using any of the matlab buildt in GUI. However, when I use debugging eg. "dbstop error" the matlab editor opens. Does anyone know how to avoid this? -- Associate Prof. Ph.D Torben Knudsen Mobile : (+45) 2787 9826 Section of Automation and Control, Direct : 6 8694 Department of Electronic Systems, Email : tk@es.aau.dk Aalborg University Fredrik Bajersvej 7 DK-9220 Aalborg � Denmark On 10 Sep, 13:48, Torben Knudsen <t...@es.aau.dk> wrote: > I am using matlab mode in emacs to run matlab without using any of the > matlab buildt in GUI. =A0However, when I use debugging eg. "dbstop > error" the matlab editor opens. =A0Does anyone know how to avoid this? Don't know how to help, but this reminds me of moving from matlab 4 to matlab 5 on HP-UX aeons ago. As I remember, matlab 5 was the first version based on the matlab GUI, and that particular feature, that the editor appeared in debug mode, was really annoying. Almost put me off matlab alltogether. Haven't seen or heard about anybody working matlab like that for the past, what, 12-15 years? Just out of curiosity, what version of matlab (and emacs) do you use? Rune Rune Allnor <allnor@tele.ntnu.no> writes: > On 10 Sep, 13:48, Torben Knudsen <t...@es.aau.dk> wrote: >> I am using matlab mode in emacs to run matlab without using any of the >> matlab buildt in GUI. �However, when I use debugging eg. &q...

Maple Matlab toolbox
I have Matlab 2010a(64bit) and Maple 15(think 64bit, not sure). When I setup the matlab toolbox, it installs the 32 bit toolbox with maplemex.mex32 file. When I run the code, matlab searches for maplemex.mex64 bit file. Any idea how I can remedy this? I have Visual C++ 2008 Sp1 compiler setup on matlab. Thanks in advance. ...

Maple To Matlab Help
Hi, I am working on a code in Maple but am having trouble with its size. I was hoping to try to run it in Matlab to see if it would do better. I have only ever used matlab for very simple things and was looking for a little direction on how to translate this. Posted is a small section of what I am trying to do. The vector Mat2 is a filled with number 1 through 10. I want to run a specific if/else routine for each number in Mat2, and fill in a matrix Mat3 as my output, which will be 4708 by 4708. The code runs does the entire array Mat2, and each time it encounters a 3 it creates a row in Mat3 with the values assigned. The output will mostly be zeros with 5 separate diagnols. I tried to translate directly, but keep on getting errors. Any help is appreciated. Thanks > Mat2 := Reshape(Mat, 4708, 1); > t := proc (i, j) if Mat2(i) = 3 then if i = j then -4 elif j = i+1 or j = i-1 or j = i+216 or j = i-216 then 1 else 0 end if else 0 end if end proc; Mat3 := Matrix(4708, t, storage = sparse); ...

matlab difference equation
hi, i need help with the matlab code to solve following difference equation: y(t)?0.5y(t ?1) = ?(t), [for t = 0,1,2,3....] with zero initial condition, where ? is the unit pulse ? = 1 for t = 0, otherwise ? = 0 i'll be grateful if someone could help. thanks :) sorry, there were some symbols missing in the earlier post. Here is the correct problem: y(t)-0.5y(t -1) = delta(t), [for t = 0,1,2,3....] with zero initial condition, where delta is the unit pulse delta = 1 for t = 0, otherwise delta = 0 i'll be grateful if someone could help. thanks :) ...

Error in maple with matlab
Hi all, I am getting following error while executing the below line using matlab maple('m:=',m_char(j,:)); ??? Error using ==> maple at 178 Error using ==> maplemex `:` unexpected I am using matlab R2010a-windows 64bit and maple 15-windows 64bit and my OS windows7 please suggest some idea to resolve this problem...Thanks in advance... Kindly help us.... even I m also getting the same error..... Very thanks in advance.....please please please On 14.11.11 12:10, Nanthini wrote: > Hi all, > I am getting following error while executing the below line using matlab > > maple('m:=',m_char(j,:)); I'm just guessing, but maybe maple(['m:=',m_char(j,:)]); works better for you? Christopher ...

how to do this in matlab
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 ...

Why does Matlab do this
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 ...

Need help for a matlab mini project
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. ...

Develop web application with Matlab (calling matlab from PHP)
Hi all, I am doing a course project. Try to make phone upload some data to server through PHP script and make Matlab read this file (.txt or any file), process, and write a result file on server. After that, my phone can download the result. The key part is that can I use PHP to call matlab function? Or any mechanism I can use to call Matlab through server-end script? My server will be the local hosted server on Mac computer. Also, Matlab is installed on my mac too. Thanks you very much. On Oct 7, 11:54=A0am, Lucas Sun <feng...@gmail.com> wrote: > Hi all, > > I am doing a course project. Try to make phone upload some data to > server through PHP script and make Matlab read this file (.txt or any > file), process, and write a result file on server. After that, my > phone can download the result. > > The key part is that can I use PHP to call matlab function? Or any > mechanism I can use to call Matlab through server-end script? My > server will be the local hosted server on Mac computer. Also, Matlab > is installed on my mac too. > > Thanks you very much. I m also finding this...... ...

Matlab automation server and Matlab Compiler Run Time
I did a simple excel macro which runs matlab functions sucessfully in a machine with Matlab installed. Now I want to run it in a computer without matlab, with "MATLAB Compiler Run Time" installed. I can add the Matlb automation server type file (mlapp.tlb) sucessfully, but when I try to run it, I get this error: "ActiveX component can't create object" In this line: Set matlab = New MLApp.MLApp Do you know what is missing? Thanks ...

Web resources about - Differences In Digits between Matlab and Maple - comp.soft-sys.matlab

Difference - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

3Q EARNINGS: Mark Zuckerberg on the Differences Between Messenger and WhatsApp
When Facebook announced its intent to acquire cross-platform messaging application WhatsApp in February, questions surfaced on whether WhatsApp ...

Facebook Tips: What’s the Difference between Top News and Most Recent?

Recognising cultural differences is not racism
... them apart - and that's dangerous. Comparing cultural traits in these politically correct times can elicit rebukes, but brushing over the differences ...

Recognising cultural differences is not racism
... them apart - and that's dangerous. Comparing cultural traits in these politically correct times can elicit rebukes, but brushing over the differences ...

Comparison: What are the differences between the 9.7-inch iPad Pro and 12.9-inch model?
... unveiled the 9.7-inch iPad Pro . While the device is essentially the same as the larger 12.9-inch model, there are a few notable differences ...

Commission Compromise Could Have Made All the Difference
Could the fractious client-agency relationship have been salvaged if agencies had been willing to take less than 15% commission? "Losing the ...

Galaxy S7 Isocell vs Sony camera sensor: what’s the difference?
... have every right to believe all Samsung Galaxy S7 handsets are created equal, but such is not the case. And we are not only talking about differences ...

Bidwill: Chandler Jones will be a difference-maker
Arizona Cardinals president Michael Bidwill believes Chandler Jones will improve the team's chances of getting to the Super Bowl.

The marginal importance of marginal ideological differences on the Supreme Court
I am not getting the argument that Obama’s choice of a moderate justice is a massive concession even if he can be confirmed before the lame duck ...

Resources last updated: 3/31/2016 6:25:46 AM