Domanda


how can I read file from a different directory
the matlab script that I am running from is in directory "a" but the I need to read text file using "fileread" from an directory...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


a='C:\code'. cd 'C:\code' works fine but cd a gives error: Name is nonexistent or not a directory
How can I pass a "a" as address to change directory not the whole address?

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Using dir() without changing directory?
I need to find files that have dir(['*K1*.json']); in their names which are in a specific folder different from the matlab scrip...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Weird reading data: seed
I have data point (attached) and when I call it in command window: data.seed I get the right answer but when I use it in the scr...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


The best approach to name .mat file when saving so can be loaded easily by calling
I am saving multiple .mat files has that each are for specific parameters for example mat file number 1 has a=1, b=2, c=3 and ma...

quasi 5 anni fa | 1 risposta | 1

1

risposta

Domanda


Having multiple individual functions in a matlab script
I need to have multiple fucntions in a script to call them later from other script. Matlab gives error that then name of the fun...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Using struct=dir(selpath), what do '.' and '..' mean as struct.name?
When I use struct=dir(selpath) and then struct.name, I see two extra names ('.' and '..' ) that are not name of folders in the r...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


I need to have underline (_) in my plot x and y label but matlab plot recognizes as subscript
When I used this command: xlabel(Ratio_prolif), p of prolif becomse as subscript in the plot. Is there anyway to have under...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Check all values in a table if any is "NAN"
I have a table that has multiple column and rows. I want to say if any value in the table was "NAN" then change the value from "...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Avoid using for loop
I am using this like which works fine: Cellcount=Acc.perhexagon(Ac.time==data.timepoints(end).time); I want to get information...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Any method to soften harsh edges of a plot?
Is there any way to soften harsh edges (shown in blue)?

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Unusual arrangement of plot
Red line is plotted by matlab but it is unusal and expected to be blue line. Any idea why this happens? plot(celltracker_gro...

quasi 5 anni fa | 2 risposte | 0

2

risposte

Domanda


How to change the position of inset plot
I am using "box on" to add a small plot inside the main plot. I need to move it to an other place as ti covers the main plot. I ...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Efficiently add missing parts to the table
In the attached table, radius ranges from 5 to 26. Some radii are not in the table for example radius=1 to 4, or radius=7 or 8 a...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Delete specific rows in table
I want a table that has all values that their cell_type is 4 and get rid of those row that their cell_type is not 4. Any sugg...

quasi 5 anni fa | 1 risposta | 1

1

risposta

Domanda


Schedule siumlation from Matlab
I have to run a code in java. The input to java code is .xml file. I have 42 xml files ready and I want to schedule the run one ...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Problem in making heatmap
I have array called CV which has a value that can be 0 to 1 or bigger than one. CV is an array that has 35 values. I want to mak...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


How to call all arrays that start with the name "CV_"?
I need to check a value in all arrays that their names start with "CV_". File names are like CV_er, CV_wer, CV_jkl and so on. E...

quasi 5 anni fa | 2 risposte | 0

2

risposte

Domanda


Dimensions of arrays being concatenated are not consistent.
I need to concatenate arrays that have variable length. All have 1 row but the number of columns are changing. Any suggestion? ...

quasi 5 anni fa | 2 risposte | 0

2

risposte

Domanda


matrix vs cells vs table?
I need to figure out what are features of each one and when each of them is recommende. I have sets of data that I need to stor...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


Less time consuming substitution for if conditional
I have a long script with lots of if conditional and it takes a long time to run the code. Any suggestion to make it efficient f...

quasi 5 anni fa | 2 risposte | 0

2

risposte

Domanda


Expected one output from a curly brace or dot indexing expression, but there were 12 results.
I have a table and want to plot cellcount (y) per radius(x). I want to say choose all "cellcount.perhexagon" at final time and ...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


I receive: org.apache.xerces.dom.DeepNodeListImpl@8deb645 when using DOMnode.getElementsByTagName('variable')
The tage name 'variable' has a value ( <variable id="MIG" value="3" description="Change in MIG" />) and I expect to recieve a...

quasi 5 anni fa | 0 risposte | 0

0

risposte

Domanda


Why is the result of xmlread null?
I am using this command to read xml file: DOMnode = xmlread('parameter.xml'); but it returns null. I need to change some value...

quasi 5 anni fa | 0 risposte | 0

0

risposte

Domanda


Change the value of a parameter in xml file using matlab
I have xml file and want to change a value of a parameter inside it. The line that has that specific parameter is: <variab...

quasi 5 anni fa | 2 risposte | 1

2

risposte

Domanda


Why text is not centered?
text(x,y','FontSize',12,'HorizontalAlignment', 'center') but the inf is not in the center (look at picture)

quasi 5 anni fa | 1 risposta | 1

1

risposta

Domanda


Too many non-property/value arguments error occurred when applying a text box to a figure
Here is the line: text(2,3,'\bf fontname{times} infty','FontSize',12,'center')

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


check values of all elements of an array
I have array which has multiple elements. I want to find the elements that are larger than 1 and put the value with the index of...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


How to repeat the value of y to have the same length as x?
I need to add a text to a plot. text(x,max(E),'it is inf') and the length of x can be more than one. so I will get the error ...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Domanda


calculate std and mean for multiple variables automated
I have many variables that need to calculate std and mean for them. Is there any structure (other than defining a function) that...

quasi 5 anni fa | 1 risposta | 0

1

risposta

Carica altro