Answered
case insensitive strfind?
Hi, one simple method would be to use lower on both the sentences and the words you are using ... Titus

14 years ago | 6

| accepted

Answered
Cell array
or similarly using textscan: b = textscan('xx1 xx2 xx3 xx4', '%s'); b = b{1} Titus

14 years ago | 0

Answered
setting a vector sum as a lower and upper bound in fmincon
Hi, yes there is: add to the matrix "A" (inequalities) two lines A = [ones(1, length(x)); -ones(1, length(x))]; and f...

14 years ago | 0

Answered
Multiple function generated by one TLC file
Hi, it might be that LibAddSourceFileCustomSection is what you are looking for (if you want to generate MyFctX). If it is not...

14 years ago | 0

Answered
fmincon
Hi Ashley, do I understand correctly: there are two entries in Aeq which you want to optimize as well? In this case Walter is r...

14 years ago | 0

| accepted

Answered
need to make a function which reads each pixel in a 2x2 block of an image
Hi Ankita, the simplest would be to loop on all blocks A = ... % your image lastRow = 2 * (floor(size(A,1)-1)/2); ...

14 years ago | 0

Answered
inpainting_nans by John D'Errico ERROR MESSAGE
Hi, you will probably have to convert the image from integer values to doubles. Try Ad = double(A); and run inpaint_nan...

14 years ago | 2

| accepted

Answered
How to handle matrices in java
Hi, is this the MATLAB code? data=load(L); x = [data(:,1) data(:,2)]; y = data(:,3); This will not work, sinc...

14 years ago | 0

Answered
How to show a colorbar of a certain range?
Hi, something like this: h = colorbar; set(h, 'ylim', [100 150]) Titus

14 years ago | 9

| accepted

Answered
importing .fig to GUI
Hi, usually I would prefer option one. But if you want to go for three, you might do the following: hFigure = openfig('yours...

14 years ago | 0

Answered
trying to test a c shared library made in MATLAB
Hi, I would suggest to try the example in web([docroot '/toolbox/compiler/f2-972343.html#f2-1000836']) first: it has detailed...

14 years ago | 0

Answered
How to convert a matlab code to C-code ?
Hi, take a look at MATLAB Coder: http://www.mathworks.com/products/matlab-coder/ Titus

14 years ago | 1

Answered
How to plot so that its figure window doesn't become on top?
Hi, if you replace data in the plot, the figure doesn't come to the top: % plot sin curve: h = plot(sin(0:0.01:2*pi))...

14 years ago | 2

Answered
How to give a function handle as argument for java method?
Hi, sorry, but function handles are not supported: how would you want to create a MATLAB function (say anonymous function?) in ...

14 years ago | 0

| accepted

Answered
Default values for masked subsystem parameters
Hi, is this block in a library? Then open the library, open the mask for the block and put the values you like in the edit bo...

14 years ago | 0

| accepted

Answered
Modifying state in S-function
Hi Thiago, you cannot directly set the continues states, they are computed by numerical integration. You can only compute the...

14 years ago | 0

Answered
Using RTW to generate reusable functions with different parameters
Hi, my suggestion would be to turn that subsytem into a Masked Subsystem: right click and select entry "Mask subsystem". Then...

14 years ago | 0

| accepted

Answered
Help with X-axis
Hi, open the scope, click on the second icon from left, Tab "Data History", and remove the check "Limit to last 5000". Tit...

14 years ago | 0

| accepted

Answered
How to indicate that GUI is busy running?
Hi Kyle, two typical main ways to do this: in your callback do set(handles.figure1, 'pointer', 'watch') drawnow; %...

14 years ago | 11

| accepted

Answered
mex command not found in unix command line
Hi Jan, sorry but that's not correct: on Linux you can call mex from MATLAB but you have mex as a shell script as well. The M...

14 years ago | 0

Answered
Complex variable
Hi, I guess the following is happening: the real part and the imag part are stored in two different arrays. Depending on the ...

14 years ago | 0

Answered
Java Builder - Multithreading issues
Hi, which version of MATLAB are you using? And could you post both the exception you are seeing and how you call your class? ...

14 years ago | 1

| accepted

Answered
Matlab Compiler
Hi Yanus, as a first test I would rerun mbuild -setup and select a C/C++ compiler. Titus

14 years ago | 2

| accepted

Answered
how to read undelimited ascii data?
Hi, I would do the following (without having tried): %read into one string: str = fread(infile1, inf, '*char'); % ...

14 years ago | 0

Answered
Path management for different versions of projects
Hi Jan, interesting question. And there will be no definite answer ;-). I can only describe my approach: * generally I'm n...

14 years ago | 2

Answered
Problem with solve function in 2011a (doesn't seem to work as well as 2008a)
Hi Robert, without the actual problem it's difficult to diagnose or give a suggestion. Since this should not happen, I would ...

14 years ago | 0

Answered
Problem with incremental time step.
Hi Sharjeel, it depends on the solver you use: if you use a fixed step solver, this should not happen. But if you use a varia...

14 years ago | 0

| accepted

Answered
is there any process to convert cell type array to numarical array?
Hi, if I understand correctly, the answer is no. But it would not be difficult to do: Acell = {[1 2 3]; [1 2]; [1 2 3 4]}; ...

14 years ago | 2

Answered
Solve with predefined parameters
Hi, usually I would use in the () for the anonymous functions only those variables, which are variable (and not fixed for this ...

14 years ago | 0

Answered
mclIsMCRInitialized crashes if mclInitializeApplication not yet called
Hi Guy, from my personal view I guess you are missing nothing. I will ask our development to look into this ... Titus

14 years ago | 1

Load more