Réponse apportée
'Effective' Pulling without merge or commandline Git?
You may have more luck on Stack Overflow for git workflows. What are you using for the remote? My team uses an internal gitl...

plus de 8 ans il y a | 1

Réponse apportée
Can I import classes in an interface class in matlab?
You can |import| inside of the individual methods of a class but not globally for the whole class. classdef x methods ...

plus de 8 ans il y a | 3

Réponse apportée
Problem with stacking plots, color on x-axis
I'm not seeing the x-axis in the attached picture. Perhaps you could provide a full runnable example? Either way, this shoul...

plus de 8 ans il y a | 0

Réponse apportée
How to get the average for repetitive elements of a matrix?
m = [2 20; 2 30; 2 40; 7 100; 7 110; 7 120; 7 130; 7 140; 15 240; 15 260] [uv,~,idx] = uniqu...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Readtable then save in workspace with a new name based on a variable
Use a cell array that is the size of the number of files and then read into it. files = dir(*.xlsx'); filedata = cell(nu...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
How to generate C code of sensorcov()?
If you want to know what happens: edit sensorcov You can also walk through it with a debugger which is what I typically w...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How to format YTickLabel with x10^n on when plotting a figure?
y = rand(10,1)*5000; ax = axes; plot(y) ax.YAxis.Exponent = 3;

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
Close MATLAB from the keyboard
ctrl+s ctrl+q ?

plus de 8 ans il y a | 1

Réponse apportée
Will MATLAB optimize a production schedule with many constraints?
If the problem cannot be framed as a mixed integer problem like Alan suggests, you could model the system using SimEvents and th...

plus de 8 ans il y a | 0

Réponse apportée
Rearrange cell content by groups
If you use the table datatype, which I strongly encourage over cells(!), then this is a simple one-liner. You can also specify ...

plus de 8 ans il y a | 2

| A accepté

Réponse apportée
Convert char to number behaves different in command window and m script file
This also works in the live editor which supports more unicode. The classic editor does not support it and thus truncates the v...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How to use patternsearch to optimize two control vectors of a function; optimizing both variables instead of passing one of them?
patternsearch(@(x)OptimizedRate(x(1),x(2)), [weight0 nRate0], ... Index into one variable that is passed to the objective f...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
How can I control the stacking order of objects in appdesigner?
You can control the order of the _'Children'_ of a graphics object directly: fig = uifigure; panel1 = uipanel(fig, 'Backgr...

plus de 8 ans il y a | 3

| A accepté

Réponse apportée
Undefined function 'bufferm' for input arguments of type 'double'.?
Note that in 17b or newer, you can use |polyshape| and |polybuffer| in base MATLAB: <https://www.mathworks.com/help/releases/...

plus de 8 ans il y a | 1

Réponse apportée
How can I make a vector in matlab, like vec(x)?
I wrote a |vec| function in grad school for exactly this use. Here it is, authored almost exactly 7 years ago apparently! at...

plus de 8 ans il y a | 1

Réponse apportée
how to boxplot on the same figure?
Your xlimits are only showing one of the box plots. I'd also recommend using yyaxis here or perhaps subplots. X1= [1.2...

plus de 8 ans il y a | 1

Réponse apportée
Repeat elements in an array for certain number of cycles
Repmat instead of repelem.

plus de 8 ans il y a | 0

Réponse apportée
Find n highest values in each row of a table
17b required for maxk but two lines with sort would also work: [T.Var1, rowfun(@(varargin)maxk([varargin{:}],2,2),T(:,2:end...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Missing data values in a matrix
Create a timetable and look at the retime, fillmissing functions. doc timetable doc retime doc fillmissing

plus de 8 ans il y a | 0

Réponse apportée
how to use opencv (in a python function) on a matlab function ?
<https://www.mathworks.com/matlabcentral/fileexchange/47953-computer-vision-system-toolbox-opencv-interface>

plus de 8 ans il y a | 0

Réponse apportée
how to implement symbolic matlab function on simulink?
You can do this by putting syms inside of a function called by a MATLAB Function block where the inner function is flagged as ex...

plus de 8 ans il y a | 0

Réponse apportée
Plotting geographic data not oriented on a grid
For scattered data which is what the column vectors are, use: scatterm If those data represent a grid but are oriented a...

plus de 8 ans il y a | 0

Réponse apportée
Logical statement with variable gates and true/false vectors without using EVAL
How about indexing into the function handles? gate = {@and, @or, @(x,y)x&~y} %'&','|','&~'}; tfvect1 = [0;1;0;1;1]; t...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
Generating C code from MATLAB functions
You could use the <https://www.mathworks.com/help/releases/R2017b/dsp/ref/dsp.spectrumestimator-system-object.html |dsp.Spectrum...

presque 9 ans il y a | 1

Réponse apportée
I was working on Matlab R2015a's Classification Learner Toolbox. I successfully imported the file data and export it using Export Model, and i got a structure named trainedClassifier. But while running its showing the following error
trainedClassifier is not in your workspace because you have a |clear all| at the beginning of the script which is clearing it. ...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Testing private functions in classes
I would test it through the front door with a known set of inputs and expected outputs. This is the beautiful thing about class...

presque 9 ans il y a | 1

Réponse apportée
How do I import toolboxes into my library?
Why not upgrade to a newer release that has builtin MathWorks Developed graph theory capabilities? <https://www.mathworks.com...

presque 9 ans il y a | 0

Réponse apportée
Tags in the forum
I was able to just add "not a bug" to this question. They moved tags and products to the right hand side apparently... <</ma...

presque 9 ans il y a | 1

Réponse apportée
How can I read an HTML file into MATLAB and discard the HTML tags?
R2017b introduced this capability with the Text Analytics Toolbox. https://www.mathworks.com/help/textanalytics/ref/extractfile...

presque 9 ans il y a | 0

Réponse apportée
How do I convert a string to a single quotes string?
titleName = "Training data " + N_train ?

presque 9 ans il y a | 0

Charger plus