Réponse apportée
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)....

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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: ...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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,:);

presque 3 ans il y a | 0

| A accepté

Réponse apportée
I'm trying to make an image with data from a .txt file
M = readmatrix('data.txt'); imshow(M)

presque 3 ans il y a | 1

Réponse apportée
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) =...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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);

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to make loop over numbered folders?
Here's one way: for ii = 1:100 str = sprintf('c%03d',ii); zip(str,str) end

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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)

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Align two data sets
x = readmatrix('logfile.xlsx'); Data = readmatrix('datafile.xlsx'); frame_rate = 20; n = 1000/frame_rate; x(x(:,3) == 0,...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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:...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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)...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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); ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
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'}; ...

presque 3 ans il y a | 0

| A accepté

Charger plus