First
|
Prev |
Next
|
Last
Pages: 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986
calculate coefficient values Hello, I have a problem on simplifying a symbolic equation. For example, if we have the following equations which I made in another prgram, ========================== syms M0 M1 M2 M3 M4 cphi sphi; ..... Eq(i,1) = M0(i)^2-123686878722176832812117262693/4951760157141521099596496896*M1(i)^2*cphi(i)^2; Eq(... 9 Apr 2010 12:15
Creating Variables thru loop or ? Hello All, Problem: Need to extract values ranging from index 1 to 5 and write it into a new variable. Then take index 6 to 10 and write it into the next variable.... Basically extract a range of 5 indices from start to end and write each into a variable. Question: do you use a loop or some sort of index mechani... 9 Apr 2010 00:09
matrix 100 x 100 Hi everyone. I have a problem. I want to make matrix 100 x 100 with elements 1 1 0 0 0 0 ... 0 0 0 0 1 1 0 0 ... 0 0 0 0 0 0 1 1 ... 0 0 ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ... ⋮ ⋮ 0 0 0 0 0 0 ... 1 1 but it is not done by inserting elements one by one. how to create programs for ... 9 Apr 2010 21:11
Registering CT images "Thommes " <thommes3000(a)gmail.com> wrote in message <hpljju$sb6$1(a)fred.mathworks.com>... I need some help here: I have been trying to register two CT images of the same anatomic region which are reconstructed with different fields of view. There is a certain anatomic structure visible in both images, but disp... 8 Apr 2010 20:48
How can I implement two versions of a class constructor, one private and one public? I'm implementing a fairly common pattern, where I have a static method on the class that actually constructs objects of the class. The user is not intended to call the constructor directly, but instead to call the static method. Therefore, I have marked the class constructor as private. Okay, great. Except that many... 8 Apr 2010 19:41
NI-DAQmx TaskHandle mex file -> matlab I am attempting to access a NI-DAQmx TaskHandle in the Matlab workspace. The catch is that I want to create the TaskHandle in a mex file. I don't want to create the handle object in Matlab because not all synchronous functions are supported by the DAQ toolbox. So, after I create the TaskHandle in the mex file, I... 28 Apr 2010 14:00
why is inner product faster than sum ? Hello, I tried: n=round(7^4.5); tic;a=rand(n,1);toc; tic;b=rand(n,n);toc; tic;sum(b*a);toc; tic;sum(sum(b));toc; % Elapsed time is 0.000502 seconds. % Elapsed time is 3.609380 seconds. % Elapsed time is 0.161011 seconds. % Elapsed time is 0.297674 seconds. ----------------- Which I found strange beca... 8 Apr 2010 19:41
why is inner product faster than sum ? Hello, I tried: n=round(7^4.5); tic;a=rand(n,1);toc; tic;b=rand(n,n);toc; tic;sum(b*a);toc; tic;sum(sum(b));toc; % Elapsed time is 0.000502 seconds. % Elapsed time is 3.609380 seconds. % Elapsed time is 0.161011 seconds. % Elapsed time is 0.297674 seconds. ----------------- Which I found strange beca... 8 Apr 2010 19:41
save all variables in function scope to main workspace I'd like to save all of the variables in my function to the main workspace for debugging purposes. I know I can do something like function ret = myfunc assignin('caller','somevariable',4); ret=5; But say I want to do this with ALL variables in the function scope, not just 'somevariable' How would I do that? ... 9 Apr 2010 14:30
difference at a specified lag: diff() Hello - I have a seasonal time series that I want to convert to a stationary time series. I was curious if I could difference it at a specified lag using the diff() function in Matlab (or any other function). diff(ts,12) would difference it 12 times! Definitely do not want that. Is there some way I can tell it to basi... 8 Apr 2010 19:41 |