Respondida
Help on creating structures??
You could enter your data into a two-column cell array and then use CELL2STRUCT: data = {'Krista', [10 5 1993]; ... ...

alrededor de 10 años hace | 0

| aceptada

Respondida
EngWinDemo Starts a New Instance?!
I suspect the issue is in trying to have the non-admin privileged engwindemo.exe connect to the admin privileged MATLAB process....

alrededor de 10 años hace | 0

Respondida
How do i use eval function when the sentence has apostrophe (') in it?
If you need EVAL, I'd suggest using SPRINTF to form your expression. This lets you see the command you are writing more natural...

alrededor de 10 años hace | 0

Respondida
How can I create a list of .m files currently open in the editor?
The MATLAB Editor API should handle this. Try: >> openFiles = matlab.desktop.editor.getAll; >> fileNames = {openFiles.Fil...

alrededor de 10 años hace | 4

| aceptada

Respondida
regexp to match certain words in a string
Looking at your string, I see parameter value pairs in the pattern of Param{Value}Param{Value}. If that is the case, then a reg...

alrededor de 10 años hace | 0

| aceptada

Respondida
Interface Matlab Project with C++ Project
Here are a couple more ways to consider interfacing MATLAB with C++: * Write <http://www.mathworks.com/help/matlab/matlab_ext...

alrededor de 10 años hace | 1

| aceptada

Respondida
How do I use regular expression to match the last character of a sentence?
Here's a regular expression that might be helpful, which matches if the last character in the string is "." or "!" or "?". >...

alrededor de 10 años hace | 1

| aceptada

Respondida
disp() output to command line significantly delayed, not right in time relative to the further program progress?
I would first suggest trying FPRINTF in place of DISP to see if that produces different behavior. Here is an example call: ...

alrededor de 10 años hace | 0

| aceptada

Respondida
how to find the depth from the image?
You can use IMFINFO to find the bit depth of an image. For example: >> info = imfinfo('ngc6543a.jpg'); >> info.BitDepth ...

alrededor de 10 años hace | 1

Respondida
Call embedded matlab function from command line
The code for the MATLAB Function block does not exist as a stand-alone file that you can call in MATLAB. However, you can progr...

alrededor de 10 años hace | 0

| aceptada

Respondida
How to use Comma delimiter for this .txt file. I have a file which looks like this. I have to separate them column wise with comma as delimiter. Urgent. Thanks in advance.
Assuming this text is in a file named mydata.txt and you want to read it into MATLAB, you can use TEXTSCAN. In the data, I see ...

alrededor de 10 años hace | 0

Respondida
setter fails/ gets passed by
I believe using the code below reproduces the unexpected behavior you write about, where a set on the top-level object does not ...

alrededor de 10 años hace | 1

Respondida
How can I change a simulink "matlab function" using the command window?
You can get and set the code for a MATLAB Function block using the steps in <http://www.mathworks.com/matlabcentral/answers/1026...

alrededor de 10 años hace | 0

| aceptada

Pregunta


Which MATLAB blogs should I follow?
I would like a list of blogs related to MATLAB to use for my own reading and to recommend to others. The blogs can be introduct...

alrededor de 10 años hace | 3 respuestas | 3

3

respuestas

Respondida
Loading images from a .MAT file
The code shown only saves the names of the image files and not the image data itself. This is because the variable 'ListOfImage...

alrededor de 10 años hace | 0

| aceptada

Respondida
How do I use 'ErrorHandler' in arrayfun?
Rather than use ErrorHandler here, consider writing your logic into a function that acts on a scalar struct. This function woul...

alrededor de 10 años hace | 0

| aceptada

Respondida
How can you create an empty table object with non-zero rows or non-zero columns?
You can use cell2table to initialize an empty table by providing a cell array of desired dimensions. For example, this initiali...

alrededor de 10 años hace | 4

Respondida
Looking for an example showing short-cirkuit (&&) superior to normal (&) operation
The short-circuiting behavior of && is occasionally useful for performance optimization. If you use more intensive conditions, ...

alrededor de 10 años hace | 0

Respondida
How to access .exe file through matlab .m file?
You can use the SYSTEM command to execute a .exe file and capture its program output in MATLAB. doc system

alrededor de 10 años hace | 0

| aceptada

Respondida
How to comment out unused arguments in function header
Consider writing your functions to take parameter/value pairs. By doing this, you could define optional parameters that don't n...

alrededor de 10 años hace | 1

| aceptada

Respondida
How can I add a Counter block by M file script ?
To find the source address of a block to use with add_block, first browse the Simulink Library Browser to get to your block. Fo...

alrededor de 10 años hace | 1

| aceptada

Respondida
Importing vector from workspace to simulink then conditionally use them (Communication related)
I would first suggest the Switch block in the Simulink Signal Routing library. This would allow you to switch between two signa...

más de 10 años hace | 0

| aceptada

Respondida
Run Javascript from MATLAB
You cannot directly execute a JavaScript file in MATLAB. However, if you can set up a web server with a page that executes your...

más de 10 años hace | 0

| aceptada

Respondida
Is the "timer" function deployable in Matlab 6.5 (Release 13)
The TIMER function was not deployable in MATLAB 6.5 since it creates an object. In the _Limitations and Restrictions_ section o...

más de 10 años hace | 0

| aceptada

Respondida
cell array conversion to numeric array
My guess is that your cell array is 2D but contains empty values so that when CELL2MAT attempts to take each cell row and create...

más de 10 años hace | 0

Respondida
How can I setup masked subsystems to have a gradient color background?
In the Mask Editor, the first tab _Icon & Ports_ allows you to define the block icon. The bottom of the tab shows what drawing ...

más de 10 años hace | 1

Respondida
Getting information through mex about caller workspace variables
In MATLAB, I would use WHOS to inspect the workspace for variables. If I was writing a function and needed to inspect the calle...

más de 10 años hace | 1

Respondida
Quicker alternative to EVAL
I would suggest trying a few approaches and seeing which is fastest with TIC/TOC. For more advanced performance debugging, use ...

casi 12 años hace | 1

Respondida
Object composition and property updating
You should think about whether the tire needs to be exposed as a public property on the car, or whether it can be private. In a...

casi 12 años hace | 1

| aceptada

Respondida
Reference Application API via Matlab
MATLAB has an API for COM objects that you might try. See <http://www.mathworks.com/help/techdoc/matlab_external/brd4at8.html U...

casi 12 años hace | 0

Cargar más