回答済み
problem to concatene 2 arraycell
load t22 load ct t22_new = cell2table(t22, 'VariableNames', ct.Properties.VariableNames); ct_new = convertvars(ct, ct.Pro...

3年弱 前 | 1

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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(...

3年弱 前 | 0

| 採用済み

回答済み
problem with logical number : how minimize calculate
a = [0 3 10 0 3 8]; x = 5; solution = a > 0 & a < x

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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...

3年弱 前 | 1

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
set column width for all column
app.UITable_mincap.ColumnWidth = repmat({30},1,height(xx));

3年弱 前 | 1

| 採用済み

回答済み
How to find the horizontal distance between change point lines?
diff(x_long(changeIndices))

3年弱 前 | 0

| 採用済み

回答済み
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 ...

3年弱 前 | 0

回答済み
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 ...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 1

| 採用済み

回答済み
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)).^...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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....

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

回答済み
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...

3年弱 前 | 2

| 採用済み

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
Can someone help to write a column range vector for a specific calendar year?
vec = repmat([0;1;2;3],365*24,1);

3年弱 前 | 0

| 採用済み

回答済み
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>

3年弱 前 | 0

回答済み
refer to excel data using excel column numbers ?
Use readtable instead of readmatrix.

3年弱 前 | 0

回答済み
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...

3年弱 前 | 0

| 採用済み

回答済み
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 %...

3年弱 前 | 0

さらに読み込む