Answered
Boxplot multiline labels with latex interpreter
I couldn't get it to work either, but here's a workaround where you create text objects instead of setting the xticklabels (show...

4 years ago | 0

| accepted

Answered
How do you get all pairs without double counting?
Here's one way: ten_numbers = 1:10; all_pairs = nchoosek(ten_numbers,2); disp(all_pairs);

4 years ago | 0

Answered
How do you plot average of 3 arrays over time?
First, a note about those starting position plots: "Each column, 1-3, corresponds to one of the three bodies and the rows is th...

4 years ago | 0

| accepted

Answered
Reading input_1.dat file to get values in floats, integers, strings, boolean as per name list and ignoring other things.
Here's some code that reads and parses the information from files of this format. It is similar to your approach, in that it pa...

4 years ago | 2

Answered
Find a specific value(word) in csv file
C = readcell('table_data (1).csv', ... 'Delimiter','\t', ... 'NumHeaderLines',1) years = regexp(C(:,1),'/(\d{4})','to...

4 years ago | 0

Answered
how to Enter same string in whole column?
% a table with varying values: t = table( ... ["str1";"str2";"str3";"str4";"str5"], ... [1;2;3;4;5], ... 'Variab...

4 years ago | 0

| accepted

Answered
Why am I getting this error when trying to logically compare 2 arrays inside of a struct of the same length
I think the syntax you want is like this: data.(dataNames{k})(MainRawFilt) = [];

4 years ago | 0

Answered
Plotting 2 data points per subject with connected line
var1 = [5 3 8 5 12]; var2 = [8 10 5 7 6]; N = numel(var1); plot(1:N,var1,'o') hold on plot(1:N,var2,'x') x_temp = re...

4 years ago | 1

| accepted

Answered
How can i extrat some value by a plot?
MonthC_A=[0.763 0.724 0.822 0.839 0.957 1.000 0.963 0.911 0.583 0.480 0.424 0.490]; Month=[1 2 3 4 5 6 7 8 9 10 11 12]; plot(M...

4 years ago | 1

| accepted

Answered
How to plot an anonymous function with multiple variables
With the function as given, you can calculate its value for each a in a loop: Func2 = @(a,b,c) 20*b^2-4*a^6+20+4*c; a = 0:0....

4 years ago | 0

| accepted

Answered
Expand GUI in App UIFigure by a button for to extend the showing
The Position of each component (specifically Position([1 2]), which are the x- and y-coordinates of the lower-left corner of the...

4 years ago | 0

| accepted

Answered
Plotting negative x values in App Designer
Try this: plot(app.UIAxes_2,x,lket,'b') Generally arguments to plot come in x/y pairs. That is, you specify the x values and t...

4 years ago | 1

| accepted

Answered
Find a specific value in a csv file
Maybe this will work on your file (if not, upload the file here) file_name = 'table_data.csv'; C = readcell(file_name,'Delim...

4 years ago | 0

Answered
How to plot both graphs for the given condition, kindely help!
A=2; thetap=pi/2; d=6; z=0:0.1:6; y = zeros(size(z)); idx = 0 <= z & z <= d/2; % I imagine you mean 0 <= z, rather than 0...

4 years ago | 1

| accepted

Answered
how can I choose values from a vector ascendingly and concequently ?
X = [-28.6479 -27.5 -18.33 -13.75 -11 -9.16 -7.85 -6.87 -6.11 -5.5 5.5 6.11 6.87 7.85 9.16 11 13.75 18.33 27.5 28.6479] % choos...

4 years ago | 0

| accepted

Answered
Creating a string with Permutation
Axes_name = {'sint0.2';'sint0.5';'sint0.7'}; fold_2 = {'BCA';'BPCA';'DLA';'DLCA'}; You can change the size of C_ext to be leng...

4 years ago | 0

Answered
can i use col numbers in writecell
According to the documentation, writecell accepts 'Range' arguments of the following forms: 'Corner1', where Corner1 specifies ...

4 years ago | 0

| accepted

Answered
Bar plot color, why [1 0 0] does not gives red
You have to set FaceColor to 'flat' in order for CData to take effect, which you are doing for the first bar but not for the sec...

4 years ago | 1

| accepted

Answered
command strategy for converting the following multi table text file into matlab array
fid = fopen('file.txt'); data = {}; while ~feof(fid) fgetl(fid); fgetl(fid); data{end+1} = reshape(fscanf(fid,'...

4 years ago | 0

Answered
Extracting specific words from cells within a table column and moving them to new column
t = table({ ... 'New Scene was loaded: CastleDown'; ... 'Game is trying to save file'; ... 'Saving successful.'; ...

4 years ago | 0

| accepted

Answered
Setting y-axis in figure
ax = gca(); set(ax, ... 'YLim',[1 1e10], ... 'YScale','log', ... 'Box','on', ... 'XGrid','on', ... 'YG...

4 years ago | 0

| accepted

Answered
Use an array containing indexes to extract a subset of larger array
largeArray = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] indexes = [5,9,16] % use the indexes array to extract 3 elem...

4 years ago | 0

| accepted

Answered
Splitting an array in every possible combination
I believe this will do the required "splitting" of the array: format compact x = 1:6; disp(split_x(x,1)); disp(split_x(x,2))...

4 years ago | 1

| accepted

Answered
How I get y-axis bold & new times roman font when using latex as 'TickLabelInterpreter'?
You can use ax.YTickLabel = strcat('\textbf{',ax.YTickLabel,'}'); to make the YTickLabels bold with the LaTeX interpreter, as ...

4 years ago | 0

| accepted

Answered
[SOLVED ALREADY] Loop through data struct with variable names
% creating a structure like yours Erruptions = struct('sub_struct',struct( ... 'E1',[6.0014 1.0161], ... 'E2',[4.5936...

4 years ago | 0

| accepted

Answered
How to paste multiple heatmaps together/in 1 figure
You can use subplot (or tiledlayout) figure() subplot(3,1,1) heatmap(rand(3,5)) subplot(3,1,2) heatmap(rand(3,5)) subplot(...

4 years ago | 0

| accepted

Answered
Not able to cd into a folder
Maybe check that mkdir successfully creates the directory: name="yash"; status = mkdir("dB_"+name) Here status is true, so we...

4 years ago | 0

Answered
How do I get the user selection from a table created using guide. matlab.ui.control.Table
"I just can't find the name of the property for user selection within a table." As far as I can tell, a uitable doesn't have su...

4 years ago | 0

| accepted

Answered
execute .exe in subdirectories?
To call each copy of the .exe, with no input arguments to the .exe (may work - who knows, worth a shot): for i=1:num_sim e...

4 years ago | 0

| accepted

Load more