I am wondering if this is possible. My code looks like this:
indexStop = find(firstinSeq(x,4) ~= littledataPassed(y:length(littledataPassed),4), 1, 'first');
for z= 0:(n-1)
indexProcess = find((littledataPassed(y:y+indexStop-1,6) == 1 & ...
littledataPassed(y:y+indexStop-1,2) == firstinSeq(x,2) & ...
littledataPassed(y:y+indexS...
You won't need to read all this code, but I posted it for reference. I need to change the following segment of code from cases 0-8 to just for n. The only thing that changes between cases is the range of z and the variable names (msgLength0,msgLength1,msgLength2 etc.) I am struggling. I have tried putting the variables msgLength# into...
The function createClassFromWsdl in MATLAB has some significant limitations, like not supporting attributes. It seems to me that the ability of Apache CXF to generate dynamic clients could be a way to access a wider variety of SOAP endpoints in a relatively user-friendly way. Simply adding the appropriate JAR files to your MATLAB classpa...
For 1,000,000 observations, I observed a discrete event, X, 3 times for the control group and 10 times for the test group.
I need to preform a Chi square test of independence in Matlab. This is how you would do it in r:
m <- rbind(c(3, 1000000-3), c(10, 1000000-10))
# [,1] [,2]
# [1,] 3 999997
# [2,] 10 999990
chisq.test(...
I used ARX function then RESID function from the System Identification Toolbox, but the resulting residuals are:
0
0
0
5
6
8
7
8
the number of zeros=the number of lags, I need a complete vector of residuals
...
I would like to list available directories and text files in specific directories recursively in Matlab command window (and ultimately in an m-file). I know commands like ls are available, but I would like to know the text files available in a string or vector before I recursively read each text file in the following file system structur...
vector=
3
4
8
5
2
1
6
the matrix i want to create is
3 0 0
4 3 0
8 4 3
5 8 4
2 5 8
1 2 5
6 1 2
...
Greetings,
googling for that subject brings, e.g., MTL, exmat, LAPACK and also here. I also seem to remember that Microsoft Research released one, but can't put my hands on it.
I look for advice from someone who actually used (or developed...) one of those, hoping to achieve a Matlab experience inside C++ (as much as possible).
Thanks in...
Hi,
I try to run and debug a script file from the matlab engine. Using breakpoints in my C++ program, I could open a Matlab editor and set a breakpoint in my script. When I continue the C++ program, the breakpoint gets hit, but Step through or similar commands do not work (as well as inspect variables or continue running). Is there any w...
I want to solve the sequence of poisson equations
u = f(k)
for different values of k.
I tried
for k=1:10
f='x+y+k'
u(k)=assempde('problg',p,e,t,c,a,f);
end
It returns the error
Undefined function or variable 'k'.
Infinitely grateful for any help!
...
Many functions in the latest release of OpenCV require the use of STL containers. I run into problems when trying to use them in a Matlab MEX file. I am compiling the MEX files from within Matlab. Both OpenCV and Matlab use the "/MD" flag which is "Multithreaded DLL" for code generation.
Compiler: MSVC++ 9.0
Matlab 2010a
OpenCV latest f...
I'm trying to use a video library called VideoIO with MATLAB for a machine learning project. When I try to invoke the library in MATLAB, I get an error saying that it can't find libavutil.so.50, one of the ffmpeg libraries that VideoIO depends on. I've checked a few different things but can't find anything that looks wrong, other than th...
I want to combine Latex, numbers, and Tex into the title of a figure using the following (beta_b and lambda are defined variables):
title(['$\overline{\beta}=$' num2str(beta_b) 'TE0 , \lambda=' num2str(lambda*1e6) ' \mum'], 'interpreter','latex');
But it doesn't display properly. What's the problem?
...
At the end of some data processing in MATLAB, I want to create a plot which shows colored timeline bars for a series of data. I have a number of processes which each go through similar steps, and start and stop and different at different times. Ideally it'd end up looking something like this (forgive the ASCII art):
| ###***$$$$$$...
Greetings all-
I'm writing a program that parses and cleans a lot of data from one database to another on Matlab, querying from MySQL. This would run continuously, as new data come into the first db every minute, are cleaned, and put to the clean db before the next data point comes in. I was wondering how, during this process, I could a...
I'm attempting to solve the Code Golf: Build Me an Arc problem. My solution's not bad, but I figure, there's a simpler way to do it. Does anybody know how to generate an nxn matrix like this, given n? I spent 57 characters getting it!
3 0 0 0 2 0 0 0 1
0 3 0 0 2 0 0 1 0
...
Hi,
I have a basic question for all of the math experts out there.
"If I have an academic paper, whats the easiest way to convert a simple mathematical equation into working Matlab (or C++) code?"
Ideally, there would be a Latex >> Matlab (or C++) conversion tool.
However, failing this, is there a "cheat sheet" which contains all of ...
How can I create the following matrix?
[0 0 0
8 0 0
9 8 0
6 9 8
5 6 9
4 5 6]
...
Hi can somebody help me with the matlab command here. I've got to determine the highest point in a filled contour i've plotted using matrix data in a file. And then i have to mark the highest point with a red 'x'.
load('0101862_mod.dtm') % loading the dtm file
X = X0101862_mod(1:81,:) % we name X0101862, it is the location where the ...
What is the difference between similarity measurement in time series and similarity search in time series ? I am abit confused with these two terms.
to my understanding. Similarity search is the process of obtaining similar time series using similarity measure such as euclidean distance, DTW, EDR, EDP and etc.
Then what is similarity...