Frage


Can writetable delimit strings using single-quotes?
I am using writetable to export to CSV. All strings are delimited with double quotes. Is there any way to have strings delimit...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Matlab & Cygwin X-windows terminates abruptly, Firefox and Outlook do not
I'm executing many-day Matlab jobs on Windows10. On two successive occassions, when the job has run for about a day, I found th...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Random triplets not asymmetrically distributed
I would like to generate many triplets whose values are drawn from {0.1, 0.2, ... 0.9}. I also want each triplet to sum to 1.0....

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Recompose stacked column cell vectors into adjacent row cell vectors
I have a row array of cells, varargin, within a function. The contents of each cell corresponds to an argument supplied by the ...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Deploy Java wrapper around m-file wrapper around a mex file?
I have successfully used Compiler SDK to deploy a Java wrapper around my home-made m-file wrapper around "intlinprog" (more than...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Single extension not everywhere?
According to the following page, MATLAB 2019a should have automatic singleton extension: https://blogs.mathworks.com/loren/2016...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Create table columns with some entries blank (no quote symbols)
I have a table with some Boolean variables. They show up as `true` or `false`. I would like the trues to show up as (say) "Y" ...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


char(2713) and fprintf('\x2713\n') don't show a checkmark in the command window
According to https://en.wikipedia.org/wiki/Check_mark, the unicode for a checkmark is 2713. However, `char(2713)` doesn't show ...

mehr als 2 Jahre vor | 2 Antworten | 1

2

Antworten

Beantwortet
intlinprog quits due to incorrect Relative Gap
TMW suggest scaling the data so as to reduce the dynamic range. What I found to work was to rescale the objective function so t...

mehr als 3 Jahre vor | 0

Frage


intlinprog quits due to incorrect Relative Gap
I am calling intlinprog indirectly using Problem-Based Approach (https://www.mathworks.com/help/optim/problem-based-approach.htm...

mehr als 3 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


Read CSV into table, but quoted text data contain new-lines
I am using "readtable" to read a CSV file into a table. The first row consist of column headings, and there are no row names. ...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Extract equivalent RGB without transparency from PNG with alpha channel
I used the "imread" (https://www.mathworks.com/help/matlab/ref/imread.html#btnczv9-1-transparency) function to read a PNG image....

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
Compiler SDK: Testing *.jar file + runtime as if on a virgin machine
According to TMW, there's not much to be gained by collecting key files needed to use the MATLAB Runtime into a project folder. ...

mehr als 3 Jahre vor | 0

| akzeptiert

Frage


Compiler SDK: Testing *.jar file + runtime as if on a virgin machine
Hello, I wrote a function in MyFunction.m that that performs minor processing on its inputs before invoking "intlinprog". I us...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Plotted a graph, want to specify label position relative to node
I plotted a graph, but the node labels sometimes collide: A=ceil(10*rand(30)); A=triu(...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Render 1D column of OptimizationVariable/OptimizationExpression objects to string?
Here is one solution for a 1D column of OptimizationVariable objects and another solution for a 1D column of OptimizationExpress...

mehr als 3 Jahre vor | 0

Frage


In Matlab 2019, 2020, or 2021, can parallel computing be used with intlinprog?
Some course material from 2018 shows that parallel computing applies to many optimization solvers, but not "intlinprog". Can in...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Render 1D column of OptimizationVariable/OptimizationExpression objects to string?
In Matlab 2019a, I have a table wherein a column `IFpvfd` is an `OptimizationVariable` array: myTable = table( [1:3]' , ... ...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Matlab "more" command: "q" doesn't always quit
According to the help for "more", pressing "q" should stop the pager. It doesn't always work, when paging through: more on ...

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Matlab intlinprog metrics differ, solver data identical
I'm seeing 2 disparate behaviours with when using Matlab's intlinprog optimizer. As luck would have it, it involves large-ish d...

etwa 4 Jahre vor | 0 Antworten | 1

0

Antworten

Frage


Can String automatically convert to MWNumericArray of type double?
Suppose a Java packaged MATLAB function accepts a MWNumericArray of MATLAB type double, e.g., this makesqr example function. n ...

etwa 4 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Generate command-line command from library compiler project?
I am using the Library Compiler to generate a Java package. From the saved project, is there any way to generate the command-li...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Inconsistent array notation in Java interface generated by MATLAB Compiler SDK?
To call Matlab functions from Java, MATLAB's Compiler SDK generates functions with the following signatures. /* mlx interface -...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Specific organizational scheme for Matlab documentation?
According to this thread, the hierarchical organization of headings on the Content pane is the authoritative structure of the do...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


`mlx` interface for Java packaging of Matlab functions?
I am looking at the Matlab information on packaging functions for invocation from Java, specifically in the context of a variabl...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


MWArray: Non-conventional-Matlab terminology for data types and arrays?
As far as I know, and based on the thread "scalar vs matrix vs vector vs array??", a double array in Matlab is an array of type ...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Matlab function takes 1 argument, Java caller provides 2
The Mathworks page for an example makesqr.m shows a 1-argument function % makesqr.m %---------- function y = makesqr(x) y = ...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Example of coding a `struct` in Java when packaging Matlab function?
I am embarking on writing a Java wrapper for intlinprog, and learning Java at the same time. My OOP experience is C++ circa 200...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Java-wrapped Matlab function: `java` can't load/find `main` sample invoker class
This answer is definitely for the Java newbies. The class path for `java` needs to include the directory `.` of the newly-compi...

etwa 4 Jahre vor | 0

| akzeptiert

Frage


Java-wrapped Matlab function: `java` can't load/find `main` sample invoker class
I'm following a MATLAB example of wrapping a MATLAB function in a Java interface [1]. The sample driver (i.e., invoker of the w...

etwa 4 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden