Question

Passing formatted string output of sprintf to fprintf

I have a writeToLog function which takes formatted string and uses fprintf to print the formated string to both a log file and t...

3 mesi ago | 2 answers | 0

Question

Genetic Algorithm (GA) for binary (bitstring) population type - how will crossover and mutation work on binary vectors?

I am trying to run genetic algorithm with binary array as population type by setting 'PopulationType' to 'bitstring' in optimopt...

3 mesi ago | 1 answer | 0

Question

fprintf to print to both file and command window

I'd like to run a single fprintf operation to print to both command window and file. I know that the below command only print t...

4 mesi ago | 2 answers | 0

Question

Hyperparameter optimization using bayesopt - what does 'Transform' value of 'log' do in optimizableVariable?

MATLAB documentation on https://www.mathworks.com/help/stats/optimizablevariable.html gives the following example for setting a...

5 mesi ago | 1 answer | 0

Question

Hyperparamter optimization - how to manually specify SVM kernel functions to try using optimizableVariable

I am following the example here to perform hyperparameter optimization by specifying possible candidate values of parameters: h...

5 mesi ago | 1 answer | 0

Question

Print parameters of classification model

I have trained classification models for which I am writing a result-display function to print information about the trained mod...

5 mesi ago | 0 answers | 0

Question

finding all possible polynomial combinations of n variables

I am trying to create additional polynomial features (with polynomial degree up to p where p can be anywhere between 1 to 10) to...

10 mesi ago | 2 answers | 0

Question

inner join two tables treating NaN entries as identical

I would like to innerjoin multiple tables where key columns contain many NaN values, and merging the tables remove these entries...

circa un anno ago | 1 answer | 0

Question

appdesigner's ui axes update is extremely slow and laggy

I would like to show real-time streaming of 4 signals coming in at 60Hz via ui axes through using appdesigner. I have used both...

circa 2 anni ago | 1 answer | 1

Question

Multiple figures of varying sizes into a single figure

I have 3 figures (of varying sizes) generated from 3 functions I wrote, and each generated figure is of very different size, cus...

oltre 2 anni ago | 1 answer | 0

Question

How to align properly using sprintf?

I am trying to display information in subplot using sprintf to create messages. Sample code that I am using is below - even tho...

oltre 2 anni ago | 0 answers | 0

Question

Strcat multiple cell arrays not outputing expected output

Hello, below is the sample code that I am using to generate cell array of labels labels = strcat(repmat({'sample'}, 100,1),...

circa 4 anni ago | 1 answer | 0

Question

ismembertol - inconsistent results compared to documentation

Hello, Let me first start by quoting MATLAB documentation on the function _ismembertol_ found here: http://www.mathworks.com...

oltre 4 anni ago | 1 answer | 0

Question

How to fix slow GUI plotting using axes(handles...)

I have a gui with multiple plots updating through while loop once user presses 'Start' button. The issue I have is that gui is ...

circa 5 anni ago | 1 answer | 0

Question

MATLAB GUI Updating plot

I have a MATLAB gui that demonstrates the plotting of real-time incoming data signal and a horizontal threshold line: a...

circa 5 anni ago | 1 answer | 0

Question

Using nested for loops inside parfor

Hi, I have upper triangle portion of _n_ by _n_ matrix to fill with _s_ sample values (consider undirected and fully connecte...

oltre 5 anni ago | 2 answers | 1

Question

Code that creates a scale-free (preferential attachment) graph edge list - Is there a better or more efficient way to code this?

Hello, I am trying to create a scale-free graph (network) edge list. By edge list, I mean M-by-2 matrix with first column repr...

circa 7 anni ago | 0 answers | 0

Question

Efficient way to identify duplicate edges.

Hello, I am having trouble coming up with efficient method to identify duplicate edges given the edge list. Assume we have...

circa 7 anni ago | 2 answers | 0

Question

How to replace certain values in an array without using for-loop?

I have a very long array of length couple million. Say, A=[1;2;3;4;5;2;3;4;1;....] I have another array of different length (or...

circa 7 anni ago | 1 answer | 0

Question

How to average multiple vectors of different lengths?

I am taking multiple measurements (50~100) and want to take the mean of the measurements. Here is how I am going about doing ...

circa 7 anni ago | 2 answers | 0

Question

Issue with generating small-world network - how to treat a single node that is left with no nodes to connect to?

I am trying to generate a variation of small-world network. I would like to specify number of nodes, number of local connecti...

circa 7 anni ago | 1 answer | 0

Question

How to exclude specific values from a vector?

I have two arrays of unmatching sizes. For example: A=[1;2;3;4;5;7;14;76;89] B=[2;3;14] What I would like as an outpu...

circa 7 anni ago | 1 answer | 0