Feeds
提问
NxA array and Nx1 array into Nx(A+1) table
I have a variable x that is NxA and a variable y that is Nx1. I just want to have a table that is Nx(A+1) that is essentially x...
2 years 前 | 1 个回答 | 0
1
个回答提问
cvpartition with different selection of input features per fold
I am currently utilizing cvpartition to perform k-fold cross validation. A simplified code I am using looks like below: % crea...
2 years 前 | 1 个回答 | 0
1
个回答提问
actxserver move data in entire row few rows down
I am trying to use actxserver to format header row in an excel spreadsheet. Before I manipulate header row, I would like to shi...
4 years 前 | 1 个回答 | 0
1
个回答提问
How to unit test several different functions that take the same input arguments efficiently?
This is my first time writing unit tests, so advice from experienced users will be greatly appreciated. I have several comput...
4 years 前 | 3 个回答 | 2
3
个回答提问
Unit test can't see the function it needs to test
This is my first time creating unittest, and I am having trouble directing unitTestClass to see the function it tests, which liv...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 2 个回答 | 0
2
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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 years 前 | 2 个回答 | 0
2
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 3 个回答 | 0
3
个回答提问
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...
4 years 前 | 0 个回答 | 0
0
个回答提问
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...
5 years 前 | 2 个回答 | 0
2
个回答提问
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...
5 years 前 | 1 个回答 | 0
1
个回答提问
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...
6 years 前 | 1 个回答 | 2
1
个回答提问
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...
6 years 前 | 1 个回答 | 0
1
个回答提问
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...
6 years 前 | 1 个回答 | 0
1
个回答提问
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),...
8 years 前 | 1 个回答 | 0
1
个回答提问
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...
8 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
9 years 前 | 1 个回答 | 0
1
个回答提问
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...
9 years 前 | 1 个回答 | 0
1
个回答提问
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...
10 years 前 | 2 个回答 | 1
2
个回答提问
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...
11 years 前 | 0 个回答 | 0
0
个回答提问
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...
11 years 前 | 2 个回答 | 0
2
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
11 years 前 | 2 个回答 | 0
2
个回答提问
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...
11 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 1 个回答 | 1