Answered
how to connect to database
Hi, the question is not really clear. Do you mean the following? a = 'test'; % input from user, e.g., by GUI or input ...

13 years ago | 0

Answered
can MATLAB download files from a website ?
Hi, the function you are looking for is urlread doc urlread Titus

13 years ago | 0

Answered
datenum problem in matlab
Hi, my guess is that your data is of the form dd/mm/yyyy, so first the day, then month, then year. But if you omit the date ...

13 years ago | 0

Answered
Need help with difference equation (continuous-time system)
Hi, you will need to convert your second order problem to a system of first order equations (by setting y1=y, y2=y'). Then us...

13 years ago | 0

Answered
Using the Shooting Method
The first thing to do is independent of the programming: reformulate your second order system by a (larger) first order system. ...

13 years ago | 1

Answered
matlab concatenate vectors if cycle
Hi, to grow the xx and yy you would write the following: xx = [xx x(iPeaks1:iPeaks2)]; or xx = [xx; x(iPeaks1:iP...

13 years ago | 0

| accepted

Answered
interpolation and resampling problems.
Hi Xinqi, Q1: yes. Q2: use a low pass filter (doc filter) to remove the high frequency components. If you have the signal ...

13 years ago | 0

Answered
Help regarding functions and variables
Hi, it looks as if you want to compare the string value? In this case you need to retrieve it first, so if strcmp(get(h...

13 years ago | 1

Answered
Importing a large dataset from Excel into Matlab
Hi Christian, I'm not sure who is to "blame" that it does not work at once. What kind of error message do you get? Does it co...

13 years ago | 0

| accepted

Answered
Converting *.m files from 2004 version to a newer version
Hi, the error message indicates, that MATLAB assumes the file to be ascii (i.e., tries to load as ascii file). But the ".MAT"...

13 years ago | 0

| accepted

Answered
How to impose multiple inequality constraints on fmincon?
Hi, for the left hand side, you multiply by -1, i.e., -x(i+1) + x(i) <= B And combining is easy: A = [A1; A2]; ...

13 years ago | 0

| accepted

Answered
Why does fclose generates an ans return in the workspace?
Hi, that's because fclose returns a status. From the doc: status = fclose(...) returns a status of 0 when the close operat...

13 years ago | 0

Answered
MATLAB as Java IDE
Hi Alessandro, no, not really. Of course you can edit the java files with the MATLAB editor, and compile them calling the jav...

13 years ago | 0

Answered
Supported and compatible compilers page Release 2012a
Hi Alessandro, both questions: yes. ;-) Yes, you have to install 1.6, java 1.7 and MATLAB don't work well together (yet). An...

13 years ago | 1

Answered
How to multiply the following?
Hi, the error indicates what's wrong: your image and your mask have different types (probably your image is e.g. uint8 and yo...

13 years ago | 0

| accepted

Answered
Matlab Builder NE is missing .NET Assembly Type
Hi, this is usually a problem with installation or license. Type ver to see if the Builder NE is installed... EDIT...

13 years ago | 0

Answered
State flow execution order
Hi Robert, yes it is: since your function calls do_fcnx trigger an atomic subsystem, the atomic subsystem will be simulated (...

13 years ago | 3

Answered
Is it possible to call external matlab functions from a tlc file?
Hi, no, this is not possible. It would not make too much sense anyway: you need the .tlc file for code generation, but you wo...

13 years ago | 2

Answered
include imtool when compiling
Hi, unfortunately the imtool is on the list of the tools that the compiler does not support, see <http://www.mathworks.com...

13 years ago | 0

| accepted

Answered
[Optimization Tool] Parallelization not working
Hi, I suspect the problem on the external program side: you might try to start manually the external program twice. E.g. can ...

13 years ago | 0

Answered
Send Messages to Java
Hi, "to send a message" is not directly possible, but I could imagine several "workarounds". One suggestion would be to add a...

13 years ago | 0

| accepted

Answered
how to convert gray image to color image
Hi, what's the value of r? One? Or three? I guess your Image is already an RGB image, only that R, G and B are always equal (...

13 years ago | 0

Answered
Data types and preallocation
Hi Daniel, interesting question, I'll comment on two of the points from my perspective. Regarding the "zeros": here the user...

13 years ago | 1

Answered
Is it possible to run Jar created with 64-bit JA Builder on a 32-bit machine?
Hi, the .jar file is (more or less) platform independent. This should work without problems. The "less" is only when you incl...

13 years ago | 1

| accepted

Answered
Separable nonlinear concave objective function optimization
Hi Tom, although I admit I don't fully understand the problem, probably fmincon is the solver you are looking for. The con...

13 years ago | 0

Answered
uitable creates 2x16 table when data is specified as 1x16. Can this be fixed?
Hi, you could try to put into your <GUIname>_OpeningFcn the following line set(handles.uitable1, 'data', cell(1, 16)); ...

13 years ago | 1

Answered
How to use files from different folders to the script.
Hi, what about the following procedure: theDates = dir('.\Engine\Vehicle'); for iDate = 1:length(theDates) if th...

13 years ago | 2

| accepted

Answered
Function Running in the Background
Hi, usually such things can be done using the function timer You might think of timer as an "interrupt" called period...

13 years ago | 0

| accepted

Answered
adding zero column to matrix
Hi, if it's just that you want to enlarge "stateHit", you could do if size(stateHit,2)<size(v, 2) % v has more colu...

13 years ago | 1

| accepted

Answered
.Net compiled dll not working on another machine
Hi, the error message is saying that the MCR is not installed correctly, see e.g. http://www.mathworks.de/support/solutions/...

13 years ago | 0

Load more