Réponse apportée
I want to calculate distances in 3D space. How do I apply my code to all tables in all cells?
results_nooutliers is not a cell array of tables, but rather a cell array of cell arrays of tables. load('results_nooutliers.ma...

plus d'un an il y a | 0

| A accepté

Réponse apportée
X-Axis Boxplot Shift
% random data N = 100; x = randn(N,1); cats = categorical(randi(2,N,1),[1 2],{'None','LF'}); % create the box plot figure...

plus d'un an il y a | 0

| A accepté

Réponse apportée
difference between 2 values in a vector
x = [0.2 0.0 0.0 0.0 0.25 0.0 0.0 0.0 0.3 0.0 0.0 0.4 0.0 0.0 0.0 0.1 0.0 ...

plus d'un an il y a | 0

Réponse apportée
average between cell arrays of doubles
C_mean = cellfun(@(c)mean(cat(3,c{:}),3),C,'UniformOutput',false);

plus d'un an il y a | 0

| A accepté

Réponse apportée
read columns on command
To access data from a table use curly braces {} with two subscripts or dot indexing, as in inflation = diff(Inflation1{:,1}...

plus d'un an il y a | 1

| A accepté

Réponse apportée
How to count the number of scatter points of each color
idx = [S1(num_fixed_nodes+1:num_nodes).node_status]==1; n_green = nnz(idx); n_red = nnz(~idx);

plus d'un an il y a | 1

| A accepté

Réponse apportée
Pixel by pixel comparison of 5 matrices into new matrices.
% 5 example 10x10 matrices M1 = reshape(1:100,10,[]); M2 = reshape(101:200,10,[]); M3 = reshape(201:300,10,[]); M4 = reshape...

plus d'un an il y a | 0

Réponse apportée
struct to restrict curve in max problem
warning off format long set(0,'DefaultAxesFontSize',20); figure; load('H_LC(1).mat'); dim=2; %number of variables of my sys...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Error in demodulation QAM-16 signal
"the number of values ​​should be equal to the modulation factor M" For a modulation order M, the number of bits per symbol is ...

plus d'un an il y a | 0

Réponse apportée
How does this code solve the problem of incorrectly using vertcat to concatenate arrays with inconsistent dimensions?
On the line that throws the error you have: y=[o3*180/pi; 04*180/pi]; where o3 is of size 1x3601 and 04 is a scalar (the ...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Create 'siteviewer' object without displaying it?
You could specify its Position so that it's off-screen, e.g.: % get monitor position(s) pos = get(groot(),'MonitorPositions');...

plus d'un an il y a | 0

Réponse apportée
Create excel file from json variable value
It's difficult to say for sure without one of your json files to test with, but something like this might work: subjs = {'SUB21...

plus d'un an il y a | 0

| A accepté

Réponse apportée
How to colour a portion of a curve by red and remaining by black
set(0,'DefaultAxesFontSize',20); figure load('EP_EP(1).mat','x'); %load only x [~,idx] = max(x(3,:)); plot(x(3,idx:end),x(...

plus d'un an il y a | 0

| A accepté

Réponse apportée
Adding text to label sliders in a uifigure.
uilabel is the function to create a label component programmatically.

plus d'un an il y a | 0

| A accepté

Réponse apportée
Remove NaN from matrix
In a matrix, all columns are the same length. That's one of the defining characteristics of matrices. You're not going to be abl...

plus d'un an il y a | 1

Réponse apportée
crea un vector fila con 15 elementos igualmente distanciados en el cual el primer elemento sea 7 y el ultimo 40
See <https://www.mathworks.com/help/matlab/ref/linspace.html linspace>.

plus d'un an il y a | 0

Réponse apportée
Why are the descriptive names of my boxchart categories not visible in my figure?
There are several typos in your (adapted) code. It would be better to share the actual code you're running that produces the pro...

plus d'un an il y a | 0

| A accepté

Réponse apportée
How to save videos in a MATLAB standalone application?
In Application Compiler, you can add the videos to the project in the "Files required for your application to run" section.

plus d'un an il y a | 1

| A accepté

Réponse apportée
i need to know if its possible to plot a certain number of datas and then plot the next in another plot and so on
% data = load('S196W1.eea'); data = 500*randn(122880,1); % random data the same size as yours n_channels = 16; data_plot = ...

plus d'un an il y a | 1

| A accepté

Réponse apportée
How to use a function like reshape but for indivisible parameters?
You'll have to put some additional elements in the vector for the reshape operation to work: A = rand(68,1); N = ceil(numel(...

plus d'un an il y a | 0

Réponse apportée
How to add every nth element of an array to the nth+1 element?
a = [1, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 9]; a(3:3:end-1) = a(3:3:end-1)+a(4:3:end); a(4:3:end) = []

plus d'un an il y a | 1

| A accepté

Réponse apportée
Data normalization using robust scaling
If you want to normalize all columns the same way (i.e., using the median and inter-quartile range of the entire data set), then...

plus d'un an il y a | 1

| A accepté

Réponse apportée
MATLAB config file that loads variables at runtime
Use the app's startupFcn.

plus d'un an il y a | 0

| A accepté

Réponse apportée
Why is my errorbar not the same in each direction?
The errorbars are centered around the means (e.g., mean_glu), but the other lines plotted with markers are not using the means (...

plus d'un an il y a | 0

| A accepté

Réponse apportée
How do I check if there is a function with the same name
You can loop over the m-files in your folder, call which(_,'-all') on each one, and store information about what which returned:...

plus d'un an il y a | 0

Réponse apportée
How to delete variables in a table within a cell array
Here's one way: C = cellfun(@(t)removevars(t,[1 2]),C,'UniformOutput',false);

plus d'un an il y a | 0

| A accepté

Réponse apportée
MatLab stays on Run forever and doesn't generate image file
"check my code to see if this is an issue on the coding side or is Matlab just not responding" It is an issue on the coding sid...

plus d'un an il y a | 1

Réponse apportée
Opening a Figure from a Function - Not enough input arguments
If you want a callback with 4 inputs, you need to include the additional ones (beyond the first two, which are always callback s...

plus d'un an il y a | 1

| A accepté

Réponse apportée
problem with tbl,xvar,yvar form of plot()
what am I doing wrong? param_at_step is a numeric matrix, not a table, so you are not using the tbl,xvar,yvar form of plot().

plus d'un an il y a | 0

| A accepté

Réponse apportée
Convert Tables within a cell into Doubles
Here's one way: CoPyData = cellfun(@table2array,CoPyData,'UniformOutput',false);

plus d'un an il y a | 0

| A accepté

Charger plus