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

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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(...

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 1

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
How to find the horizontal distance between change point lines?
diff(x_long(changeIndices))

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 3 Jahre vor | 0

Beantwortet
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 ...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
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)).^...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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....

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 2

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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>

etwa 3 Jahre vor | 0

Beantwortet
refer to excel data using excel column numbers ?
Use readtable instead of readmatrix.

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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 %...

etwa 3 Jahre vor | 0

Mehr laden