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

fast 15 Jahre vor | 6

| akzeptiert

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

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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); ...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 2

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 9

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

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

etwa 15 Jahre vor | 1

Beantwortet
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))...

etwa 15 Jahre vor | 2

Beantwortet
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 ...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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; %...

etwa 15 Jahre vor | 11

| akzeptiert

Beantwortet
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...

etwa 15 Jahre vor | 0

Beantwortet
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 ...

etwa 15 Jahre vor | 0

Beantwortet
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? ...

etwa 15 Jahre vor | 1

| akzeptiert

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

etwa 15 Jahre vor | 2

| akzeptiert

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

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 2

Beantwortet
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 ...

etwa 15 Jahre vor | 0

Beantwortet
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...

etwa 15 Jahre vor | 0

| akzeptiert

Beantwortet
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]}; ...

etwa 15 Jahre vor | 2

Beantwortet
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 ...

etwa 15 Jahre vor | 0

Beantwortet
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

etwa 15 Jahre vor | 1

Mehr laden