답변 있음
I can't get bold font in uitable app designer
To make a uistyle take effect, you must use addStyle to associate the style with the component (i.e., the uitable in this case)....

거의 3년 전 | 0

| 수락됨

답변 있음
How to use boxchart and GroupByColor when having a matrix?
Maybe something like this: % generate some random data: N = 10000; M = 10; AX = struct('t_k',zeros(N,M)); for ii = 1:M ...

거의 3년 전 | 0

| 수락됨

답변 있음
Help with jumping one position using circshift function in a for loop
n = 12; T = zeros(2,n); T(1,1) = 1; T(2,2) = 1 Here's one way to generate that Tn from this T using circshift in a loop: ...

거의 3년 전 | 0

답변 있음
Two conditions and not same.
pout(i)=(j/M); pout1(i)=k/M; pout2(i)=1-pout1(i); So pout2(i) is 1-(k/M), which is (M-k)/M, right? So in saying that pout an...

거의 3년 전 | 0

| 수락됨

답변 있음
How does one use a string vector to select rows from a table. The vector length and the table height are unequal
X = ["AGAP004746", "AGAP004753", "AGAP004756"]; idx = ismember(T{:,1},X); T1 = T(idx,:);

거의 3년 전 | 0

| 수락됨

답변 있음
I'm trying to make an image with data from a .txt file
M = readmatrix('data.txt'); imshow(M)

거의 3년 전 | 1

답변 있음
How to remove zeros from a vector and remove values from those indices in a corresponding vector?
D=[0 0 100 0 250 0 300]; H=[4 2 0 5 0 0 1]; T=[7 9 12 4 9 4 12]; D,H,T idx = D == 0; D(idx) = []; H(idx) = []; T(idx) =...

거의 3년 전 | 1

| 수락됨

답변 있음
How to remove a default generated legend item from a figure plot of MATLAB?
One way to prevent the 'data1' line from appearing in the legend is to set its 'HandleVisibility' to 'off'. See below. unzip('F...

거의 3년 전 | 0

| 수락됨

답변 있음
Replace all rows of an array not equal to any row of another array by a particular row vector
idx = ~ismember(color_array,[color_1; color_2; color_3],'rows'); color_array(idx,:) = repmat(color_4,nnz(idx),1);

거의 3년 전 | 0

| 수락됨

답변 있음
Use both stacked and grouped Bars in one Plot
Maybe something along these lines. Adjust as necessary. load out figure('Position',[1 1 1000 400]) N = size(out.emissions...

거의 3년 전 | 0

| 수락됨

답변 있음
How to make loop over numbered folders?
Here's one way: for ii = 1:100 str = sprintf('c%03d',ii); zip(str,str) end

거의 3년 전 | 1

| 수락됨

답변 있음
adding textbox to plot - text doesnt stay in one line
To fix the one-line-text problem, enclose the relevant text in [ ] to make it a single character vector: txt = {'Primary en...

거의 3년 전 | 0

| 수락됨

답변 있음
Scattered heat map based on frequency
Create some random data of the specified size and range: Xpos = 10*rand(100,1)-5; % column array of double values Ypos = 10*ra...

거의 3년 전 | 0

| 수락됨

답변 있음
how to use plotyy with x-axis cell data type ruther than double.
I assume that x is not a cell array of empty arrays, as in: x={10:00; 11:00; 12:00; 13:00} but rather a cell array of datetime...

거의 3년 전 | 0

답변 있음
how to create group from matrix
M = [0 0 3 4 3 4 4 4; 0 0 5 6 5 6 6 6; 0 0 9 7 9 7 7 7; 0 0 12 8 12 8 8 8; 0 0 0 10 0 10 10 10; 0 0 0 11 0 11 11 11; 0 0 0 0 0 0...

거의 3년 전 | 1

| 수락됨

답변 있음
How to calculate the average of a cell array?
T = {[10, 1, 30], [15, 2, 10], [20, 3, 20]} M = vertcat(T{:}) meanT = mean(M,1)

거의 3년 전 | 1

| 수락됨

답변 있음
Proper Syntax for a Nested Loop
No additional loop is necessary. You can replace your existing loop with this one: for t =1:p newmodVector1(t)=mo...

거의 3년 전 | 0

| 수락됨

답변 있음
Why do both writetable writematrix exist?
writetable and writematrix work for different data types, as you point out. If you want to be able to use writetable whether int...

거의 3년 전 | 0

| 수락됨

답변 있음
Display sum of areas of different categories for multiple polygons in a legend
figure; % imagesc([-pi, pi], [-1, 1], bg_img); % since I don't have your variable bg_img, I set YDir 'reverse' like imagesc ...

거의 3년 전 | 0

| 수락됨

답변 있음
Extract a single datetime from a cell array of datetimes
Use curly braces to access the contents of a cell array, and it is recommended to use char() instead of datestr() to convert a d...

거의 3년 전 | 1

| 수락됨

답변 있음
How can I explode consecutive pie chart wedges together?
I don't see a way to explode slices together in pairs with the pie function (each slice would be exploded or not-exploded indepe...

거의 3년 전 | 0

| 수락됨

답변 있음
Align two data sets
x = readmatrix('logfile.xlsx'); Data = readmatrix('datafile.xlsx'); frame_rate = 20; n = 1000/frame_rate; x(x(:,3) == 0,...

거의 3년 전 | 0

| 수락됨

답변 있음
How to set axis background color of inset image?
You can create a panel, and put the inset axes in it. (Of course, the panel may obscure some data points.) Something like this:...

거의 3년 전 | 0

| 수락됨

답변 있음
problem to change color after dropdown menu
If that's the only uistyle you use on the table, then calling removeStyle to remove all uistyles before adding the new one shoul...

거의 3년 전 | 1

| 수락됨

답변 있음
how to change the font size in a plot (only for the axes numbers) for double axis figure
Rather than relying on gca(), you can use the two axes handles returned by plotyy, as in: x = 0:0.01:20; y1 = 200*exp(-0.05*x)...

거의 3년 전 | 0

답변 있음
How to Implement a pause button in appdesigner while frames of video are being displayed in another figure?
Put a drawnow in the for loop, before checking app.PauseState.Value, i.e.: drawnow if app.PauseState.Value waitfor(app.Pa...

거의 3년 전 | 0

답변 있음
How can I prevent a function from creating a separate window when acting on a UIfigure handle?
It's because of the hold on without specifying an axes. Specify the axes explicitly, e.g.: hold(fig.Children(end),'on'); Si...

거의 3년 전 | 0

| 수락됨

답변 있음
round two decimal in table app designer
A random matrix: M = rand(10,2); A uitable showing that matrix (defaults to 4 decimal places): figure() uitable('Data',M); ...

거의 3년 전 | 1

| 수락됨

답변 있음
I have developed Matlab code of an algorithm, but I am unable to run it. Please help me to find error.
The function perform_tabu_search doesn't do anything. function [best_tour, best_distance] = perform_tabu_search(initial_tour, d...

거의 3년 전 | 0

| 수락됨

답변 있음
Export averaged values from excel according to event
your_folder = '.'; output_file_name = './master_averages.csv'; output_var_names = {'Start_Time','End_Time','I_avg','K_avg'}; ...

거의 3년 전 | 0

| 수락됨

더 보기