提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 2 个回答 | 0

2

个回答

提问


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....

5 years 前 | 2 个回答 | 0

2

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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: ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 2 个回答 | 0

2

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 2 个回答 | 0

2

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 2 个回答 | 0

2

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Why edit copy of figure is inactive?

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 0 个回答 | 0

0

个回答

提问


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 ...

5 years 前 | 1 个回答 | 0

1

个回答

提问


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...

5 years 前 | 1 个回答 | 0

1

个回答

提问


How to make empty array of specific size?
I used A = ClassName.empty(sz1,...,szN) or A = ClassName.empty(sizeVector) syntax : a=ClassName.empty(2,2) but I got this erro...

5 years 前 | 4 个回答 | 3

4

个回答

提问


how to change size of a string?
I use regexp(struct(jjj).name,'\_','split'); command to split this structure: K10_5. After being split: {'K10'} I convert it to...

5 years 前 | 1 个回答 | 0

1

个回答

提问


Is there any way to avoid unconscious adding alphabet to the code while working on it?
It happened to me many times: I am working on a long code and sometimes keyborad is touched by pen, hand or .. unconsciously ty...

5 years 前 | 0 个回答 | 0

0

个回答

加载更多