Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 4 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Why edit copy of figure is inactive?

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 4 risposte | 3

4

risposte

Domanda


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

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 5 anni fa | 0 risposte | 0

0

risposte

Carica altro