답변 있음
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

더 보기