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

2年弱 前 | 0

| 採用済み

回答済み
Convert Tables within a cell into Doubles
Here's one way: CoPyData = cellfun(@table2array,CoPyData,'UniformOutput',false);

2年弱 前 | 0

| 採用済み

回答済み
Displaying Text on Paper
You will need to change PaperPosition property of the figure (or the PaperSize property, depending on the output image format yo...

2年弱 前 | 0

回答済み
How programmatically create an array from variable-length vectors?
If each .mat file contains a structure called "s1" which contains a field "a" which is what you are interested in: F = dir('*.m...

2年弱 前 | 0

| 採用済み

回答済み
array generation using logics.
x = [0 10 20 30 0 10 20 30 40 0 10 20 30 40 50 0 10]; diffx = diff(x(:)); start = find([true; diffx <= 0; true]); dx ...

2年弱 前 | 0

| 採用済み

回答済み
Plot legend with 2-d layout
You can at least get close: x = 1:10; y = randi(10,10,4); figure hold on markers = '^^oo'; colors = 'rbrb'; names = ["A...

2年弱 前 | 0

| 採用済み

回答済み
How to clear the error "Functionality not supported with figures created with the uifigure function." ?
I presume you want that code to iterate over all figures but not uifigures. You could close all the uifigures before running th...

2年弱 前 | 0

回答済み
Help with 3D Data Contour Plot (Missing Values as Zeros)
One way to present multiple contour plots as slices in the same axes is to specify the ZLocation of each contour object. See bel...

2年弱 前 | 0

| 採用済み

回答済み
Quiver plot of coordinate error with wrong arrow lengths
"some small erros are being draw as bigger lines" That's because each quiver plot scales its own arrows' lengths independently ...

2年弱 前 | 1

| 採用済み

回答済み
Compare times in datetimes
https://www.mathworks.com/help/matlab/ref/datetime.timeofday.html

2年弱 前 | 1

| 採用済み

回答済み
How to change color of berfit curve
Temp_x = [ 9 8 7 6 5 4 3 ]; Temp_y = [ 1e-3 5e-3 1e-2 2e-2 3e-...

2年弱 前 | 0

| 採用済み

回答済み
Figure no longer comes with MenuBar and tools the
You can try set(groot,'defaultFigureMenubar','figure') set(groot,'defaultFigureToolbar','figure') to have the menu ba...

2年弱 前 | 0

回答済み
contains 函数在运行相同代码时,为什么返回了不同的逻辑数组?
There is a hidden character at the beginning of the first store_name{1} store_name ={'宜昌水果店','武汉水果店'}; +store_name{1} % char...

2年弱 前 | 0

| 採用済み

回答済み
Interpolating for multiple curves and finding the y axis value
x = [0 7.1702 9.1995 9.5716 11.3641 12.0744 12.5141 13.1736 13.4104 13.867 14.7294 15.1015 16.9448 17.0631 17.2322 18.3484 19.00...

2年弱 前 | 0

回答済み
Error using cat Dimensions of arrays being concatenated are not consistent. Error in cell2mat m{n} = cat(1,c{:,n});
load dataTable NC = cellfun(@numel,dataTable.Cohesion); Cmin = repelem(dataTable.CohesionMin,NC,1); Cmax = repelem(dataTabl...

2年弱 前 | 0

| 採用済み

回答済み
To plot one stem with multiple values for data of different months.
Maybe something along these lines: unzip('Processed_results.zip') % load the files F = dir(fullfile('Processed_results','*....

2年弱 前 | 0

| 採用済み

回答済み
How to combine cell arrays to form one nested cell array entry
% 4x3 instead of 64x634, for demonstration X = { ... {1 2} {3 4} {5 6}; ... {7 8} {9 10} {11 12}; ... {13 14} {1...

2年弱 前 | 0

| 採用済み

回答済み
Checkbox in header row for uitable
It would have to be a separate uicheckbox (or uicontrol) object, separate from the uitable. You can position it to appear to be ...

2年弱 前 | 0

| 採用済み

回答済み
Index in position 1 exceeds bounds
Check the value of TimeStamp and figure out why it's not what you expect, because regexp doesn't return any matches for that Tim...

2年弱 前 | 1

回答済み
How to combine cells into a single cell?
b = a;

2年弱 前 | 0

| 採用済み

回答済み
Plotting Lines and Points in 3D
A = [1 -3 7]; B = [0 2 -6]; C = [0.5 -1 5]; % plot a line from A to B v = [A; B]; plot3(v(:,1),v(:,2),v(:,3)) box ...

2年弱 前 | 0

| 採用済み

回答済み
Random Matrix creation from the elements of a given vector
M = A(randi(numel(A),7,20));

2年弱 前 | 0

| 採用済み

回答済み
How plot a grid of rectangles on an overlaid circle?
R = 5; % circle radius L = 1; % horizontal grid spacing W = 2; % vertical grid spacing C = [7 8]; % center of the circle %...

2年弱 前 | 1

回答済み
Normalising multiple columns of a matrix to a fraction of its maximum value
To divide each column by its maximum value: data_normalized = data./max(data,[],1); Example: data = rand(21,5); % random data...

2年弱 前 | 1

| 採用済み

回答済み
loop Will only open the files in starting folder
matFiles = dir(fullfile(pwd,'**','*.mat'));

2年弱 前 | 1

| 採用済み

回答済み
Use fixed colormap or colorbar scale for series of 3D bar graphs in video animation
See clim: https://www.mathworks.com/help/matlab/ref/clim.html

2年弱 前 | 1

| 採用済み

回答済み
Barchart colorbar colors from second vector
You need to set the colormap of the figure or axes. %% clear close all clc ids1 = [2,4,5,6,8]; meanVals = [0.2,0.204,0...

2年弱 前 | 0

| 採用済み

回答済み
Returning data from uibutton callback
An easy way to make the callback update the value of t is to nest the callback function inside the main function (which requires...

2年弱 前 | 0

回答済み
Custom colorbar labeling centered on colors
f = figure; set(gca,'xtick',[],'xticklabel',[],'ytick',[],'yticklabel',[],'color','w'); set(f,'units','pixel','position',[70,7...

2年弱 前 | 1

| 採用済み

回答済み
Why is it doing all 100 attempts as a singular go?
Your code does the same thing 100 times because the random values don't change from one iteration to the next. I guess you woul...

2年弱 前 | 0

| 採用済み

さらに読み込む