Réponse apportée
problem to concatene 2 arraycell
load t22 load ct t22_new = cell2table(t22, 'VariableNames', ct.Properties.VariableNames); ct_new = convertvars(ct, ct.Pro...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
adding two colorbars in the uiaxes of app designer matlab
Note that ax1 and ax2 are the same axes: ax1 = app.UIAxes; % ... ax2 = app.UIAxes; You won't be able to have multiple colorm...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Orient pie chart in clock wise direction
X = [1 3 0.5 2.5 2]; Anti-clockwise (original): pie(X) Clockwise: h = pie(X); set(h(2:2:end),{'HorizontalAlignment'},get(h(...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
problem with logical number : how minimize calculate
a = [0 3 10 0 3 8]; x = 5; solution = a > 0 & a < x

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Creating 2 dynamic and dependent dropdown menus in App-Designer
Yes, a ValueChangedFcn will work for this. The ValueChangedFcn of ddA will read the variable names from the selected file and u...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
I am getting Error using horzcat Dimensions of arrays being concatenated are not consistent. Error in untitled3 (line 16) repelem(c, length(T)), kron(T, repelem(c, length
T = [0; 5; 10; 15; 20; 25; 30]; c = [0; 10; 20]; The results of the first three expressions in the definition of A can be conc...

environ 3 ans il y a | 0

Réponse apportée
Can I activate axes by hovering over them instead of clicking?
There is a syntax error here: set(f,'WindowButtonMotionFcn'),@(h_obj,evt) autoax; % ^ I imagine yo...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Plot two overlapping surfaces on the same image
Does this seem right? isochronal_crowding delete([1 2]) % remove first two figures for clarity You'll see the following in th...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
Change size of output to display entire image
The ellipse is cut off because the calculation of inside_ellipse is incorrect. The end result image is a square because you imr...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
problem insert data in uitable (app designer)
Replace all the double-quotes in this: T1=[T1,{0},{"CL"},{"As Is"},{'008/01/01'},{"From Instrument"},{"0"},{"Trend"},{"Multiday...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to draw straight horizontal line with specific axis
plot([1450 1470],[0 0]) % this line will be at y = 0 because I've given plot [0 0] as the y-coordinates xlim([1400 1500]) % s...

environ 3 ans il y a | 1

Réponse apportée
Need to create one graph with multiple subplots in a for loop.
Something like this? % some random data, so the code runs: dff = rand(3,10); threshold = [0.2 0.35 0.25]; % M_dff = max(d...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to perform mathematical operation of arrays inside loop?
E = B-A*X; while sum(E,'all') > 1e-40 C = diag(E*E'); W = diag(C)^-1; X = (A'*W*A)^-1*A'*W*B; E = B-A*X; e...

environ 3 ans il y a | 0

Réponse apportée
How can I make sure that cbarf (colorbar) will not overlap on second y-axis label?
Like the warning says, you cannot manually set the position of something controlled by a TiledChartLayout. However, you can avo...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
set column width for all column
app.UITable_mincap.ColumnWidth = repmat({30},1,height(xx));

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to find the horizontal distance between change point lines?
diff(x_long(changeIndices))

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to I read excel file and create a 3d plot?
The plot seems accurate. Take a look at the first row of Epsilons in the file (i.e., corresponding to 20Hz). They are orders of ...

environ 3 ans il y a | 0

Réponse apportée
down sampling a vector keeping the order of elements values
u=[ 0.0182 0.0253 0.0324 0.0404 0.0487 0.0552 0.0603 0.0643 0.0674 0.0699 ...

environ 3 ans il y a | 0

Réponse apportée
How to get uigetfile to give unambiguous full paths of selected files
"uigetfile cannot select mutliple files if they are in different paths" One way around this limitation would be to make multipl...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to find the closest value pair in a matrix?
A = [0.84 1.26; 0.90 1.24; 0.83 1.30]; Pairs = [0.85 1.25]; [~,idx] = min((Pairs(:,1).'-A(:,1)).^2 + (Pairs(:,2).'-A(:,2)).^...

environ 3 ans il y a | 0

Réponse apportée
resize and fill table
Here's one way, using a table: t = readtable('file.xlsx'); disp(t); [N,M] = size(t); ii = 2; single_row_table = array2table...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
variable mentioned but still getting unrecognized variable error
yexpected is defined in the main script (i.e., the base workspace), but not in the function objectivefunction, where it is used....

environ 3 ans il y a | 0

Réponse apportée
How to implement a for cycle to run a sequence of text files with the system command
Here's one way: fid = fopen('system_TXT.txt'); while ~feof(fid) file_name = fgetl(fid); % process file file_name en...

environ 3 ans il y a | 0

Réponse apportée
Using Matlab App Designer, error using drop down list. Incompatible array sizes.
Instead of using == to compare character vectors, use strcmp. val = app.Country_Select.Value; if strcmp(val,'Jordan') idx...

environ 3 ans il y a | 2

| A accepté

Réponse apportée
Splitting a horizontal legend across two lines
plot(magic(9)) legend({'Data 1', 'Data 2', 'Data 3', 'Data 4', 'Data 5', 'Data 6', 'Data 7', 'Data 8', 'Data 9'}, ... 'O...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Can someone help to write a column range vector for a specific calendar year?
vec = repmat([0;1;2;3],365*24,1);

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to manipulate colors in plot for array?
<https://www.mathworks.com/help/matlab/ref/plot.html#btzitot_sep_mw_3a76f056-2882-44d7-8e73-c695c0c54ca8>

environ 3 ans il y a | 0

Réponse apportée
refer to excel data using excel column numbers ?
Use readtable instead of readmatrix.

environ 3 ans il y a | 0

Réponse apportée
Going back in time 1 week or a year
T = readtable('data.xlsx') "Suppose that I am in week 2023/6/16 (yellow cell). For this cell I want to obtain the correspondi...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Why are the data points not being correctly colored to scale in my quiver plot?
See the change below in getColor. % Acoustic Streaming Particle Tracking in Pressurized Conditions % Hydrostatic Conditions %...

environ 3 ans il y a | 0

Charger plus