Question


Extract number from file name
There are several files like this: K10_0.0.json, Mig_Thresh_2.0.json, K_5_6.5.json, WC_0.00051.json, ... and I need to extract t...

3 mois ago | 2 answers | 0

2

answers

Question


Why array of strings are concatenated?
parameters=['K13','K24','K_52','K63','K74','K80','K101','K114','K162','MI','Ce','Ge','Pe']; When I use: size(parameters) I ge...

3 mois ago | 2 answers | 0

2

answers

Question


The best method to organize my data
Let's assume we have several parameters like A, B, C, D, ..., Z. And then each parameter can take several values like: A=1,2,3,1...

3 mois ago | 1 answer | 0

1

answer

Question


How to edit matlab saved file?
I have some tables and arrays saved as matlab file. I need to change some parts (not all) and save it. How can I do that? When...

3 mois ago | 1 answer | 0

1

answer

Question


Changing the ASCII sort order format?
I use S = orderfields(S1) to sort order fields of strucutre array. I have 10 files named 1.jpg, 2.jpg upto 10.jpg. After usin...

3 mois ago | 2 answers | 0

2

answers

Question


Sort the dir loaded files
I am using imagefiles = dir(fullfile(d, '*.jpg')); to get the jpg images in a folder that are named numerically like 1.jpg, 2....

3 mois ago | 2 answers | 0

2

answers

Question


The directory of simulation
I am using this code to get all images in a folder by user: d = uigetdir(pwd, D); imagefiles = dir(fullfile(d, '*.jpg')); nf...

3 mois ago | 1 answer | 0

1

answer

Question


Change image names systematically
I need to change the name of all images in a folder to numerical values like 1.jpg, 2.jpg, ... I am using this code to do so: ...

3 mois ago | 1 answer | 0

1

answer

Question


Different error bar color than the plot
How can I set the error bar's color, thickness in the plot? As you can see the error bar has the same color with the plot. How ...

3 mois ago | 1 answer | 0

1

answer

Question


More clear color bar
I use col = jet(length(KsTable.k_name)); to make color bar but the colors are not clear. I mean shades are close to each other a...

3 mois ago | 1 answer | 0

1

answer

Question


Add missing rows to the table without loop
Attached is the table that I need to add missing rows to it. As you can see there is radius 25 and 33. I need to add radii from ...

3 mois ago | 1 answer | 0

1

answer

Question


Disp() is not showing the whole sentence in the command window
I used disp() fucntion to show warning on the command window. Apparently, the sentence is longer than one line so it is not show...

3 mois ago | 2 answers | 0

2

answers

Question


Not sure what exactly this sentence mean: "Locate the classpath.txt file for the MATLAB installation?"
I am trying to call java from matlab using instructions from here: https://www.mathworks.com/matlabcentral/answers/99993-how-d...

3 mois ago | 1 answer | 0

1

answer

Question


Can I run java from matlab?
I have a java code that is ready and I need to just press "run" to start running. Because I have to do some processing before ru...

3 mois ago | 1 answer | 0

1

answer

Question


How to exclude some additional points from plot legend?
The code generates plots in a loop and legend is given by an array contianing names. I am adding multiple single points at the e...

3 mois ago | 2 answers | 0

2

answers

Question


why function name added to table column name?
I used sortrow to sort the columns of table and it worked but sortrow is added to each variable name of table. sortedtable=var...

3 mois ago | 1 answer | 0

1

answer

Question


How to separate the elements of a table with their names?
Attached is the table. I need to plot rad vs k_val and total vs k_val for each individual k_name. The output would be TWO plots ...

3 mois ago | 1 answer | 0

1

answer

Question


X = [struct(jjj).name,' seed ', seedno]; disp(X) is not printing seedno
seedno=data.seed X = [struct(jjj).name,' seed ', seedno]; disp(X) any idea why disp(x) is not showing the seedno? t...

3 mois ago | 2 answers | 0

2

answers

Question


how to produce multtiple stacked plots with different colors in a for loop?
I am producing multiple plots in a for loop in one axis. Any idea to produce different colors for each plot? It will be ~60 plo...

3 mois ago | 1 answer | 0

1

answer

Question


Convert empty table to zero
I produce a table in for loop that in some cases all elemtents of table might be empty. For example table.A= 0×1 empty double co...

3 mois ago | 1 answer | 0

1

answer

Question


how to define a function inside a script so that I wont need to redefine local variables/tables to the function?
Assume I have table a and parameter b in the matlab script and I define function:calcfun() at the end of the script. I recieve e...

3 mois ago | 1 answer | 0

1

answer

Question


Manage and produce subplots
I have around 160 plots that are generated in a for loop. The number of plots might vary based on the inputs they are more than ...

3 mois ago | 1 answer | 0

1

answer

Question


Why edit copy of figure is inactive?

3 mois ago | 1 answer | 0

1

answer

Question


How to copy and paste the code with matlab layout when asking question here?
When I copy and paste the code here, it is like a simple text which is not easy to follow. How can I paste it here with matlab l...

3 mois ago | 1 answer | 0

1

answer

Question


why ismember({struct.name},{'*.mat'}) returns zero while struct.name='basevalues_Mean_r.mat'?
Any idea why ismemeber returns zero in this case?

3 mois ago | 1 answer | 0

1

answer

Question


Add / before _ in a string
I need to add / before any underline in strings like "Mean_Tumor_Radius_prolif" so it will be "Mean/_Tumor/_Radius/_prolif". An...

3 mois ago | 1 answer | 0

1

answer

Question


Used str2num but the result is string.
I used str2num to convert string to numeric value but it did not. Any suggeston why? for jjj=1:length(struct) splitparam=r...

3 mois ago | 0 answers | 0

0

answers

Question


Change folder vs change directory
What is the difference between chage folder and change directory? Change folder is the option that sometimes matlab ask before ...

3 mois ago | 1 answer | 0

1

answer

Question


What is the order when calling a directory?
I call a directory which is a folder cotaining several files and then I use for loop to do specific calculatuions on each file i...

3 mois ago | 1 answer | 0

1

answer

Load more