Question


How do I import this simple CSV? Should I use textscan or something else?
I am struggling to import data in MATLAB. The following code creates a 1x11 cell array with cells containing 0x0 char or NaN arr...

6 years ago | 1 answer | 0

1

answer

Question


How do I determine the number of data in a 'messy' CSV and then import it?
I have a CSV file that looks like the following: "","JOHN DOE","p0123TP01, Approved" "","Rectum (4)(Volume: 57.77)","CTV...

6 years ago | 2 answers | 0

2

answers

Question


How do I count the number of rows in a cell array's cells?
My goal is to create a table as a subset of a cell array's contents. I understand that it's better to preallocate memory size an...

6 years ago | 1 answer | 0

1

answer

Question


Are less lines of code always better programs? Do user-defined functions slow down MATLAB?
Searching online, there are multiple discussions about good programming practices, e.g. <http://www.mit.edu/~pwb/cssm/GMPP.pdf M...

6 years ago | 1 answer | 0

1

answer

Question


Why does legend command fail after boxplots with hold command?
Following <https://www.mathworks.com/help/matlab/ref/legend.html#bt6ef_q-2_1 the MATLAB |legend| documentation example> , the fo...

6 years ago | 1 answer | 0

1

answer

Answered
How to use boxplot in matlab
Please read the available MATLAB documentation, e.g. " <https://www.mathworks.com/help/stats/plot-data-grouped-by-category.html#...

6 years ago | 0

Question


Why does boxplot ignore the hold command?
Given the following code, MATLAB plots the first boxplot properly, but then overrides the vertical axis despite the |hold| comma...

6 years ago | 0 answers | 0

0

answers

Question


Why doesn't boxplot work with cells in a table? 'X' parameter must be a numeric vector or matrix.
tldr: Is there some minor edit my code for |boxplot| to read the data in the cell (e.g. wrap in {} or use (:)), or must I change...

6 years ago | 0 answers | 0

0

answers

Question


How do we start numbered lists in the Live Editor (i.e. in a live script) from a different number?
How do we start numbered lists from an integer other than 1? Is this feature not possible in MATLAB Version 9.1.0.441655 (R2016b...

7 years ago | 1 answer | 4

1

answer

Question


How do we differentiate functions involving integrals and summations using the symbolic toolbox?
How do we obtain partial derivatives (with respect to w, T, s, V_i, D_i) of the following function using the symbolic toolbox? ...

7 years ago | 2 answers | 0

2

answers

Answered
dicomwrite to create RT DOSE DICOM file causes Warning: Attribute (0020,0010) has wrong amount of data.
Attribute (0020,0010) is the Study ID. It appears to have a character maximum that MathWorks are warning us about. A short S...

7 years ago | 1

| accepted

Question


How do we edit xticks datetime format?
I am trying to increase the number of date tick marks on a graph, <</matlabcentral/answers/uploaded_files/73574/default.JPG>...

7 years ago | 0 answers | 0

0

answers

Question


textscan error: Mismatch between file and format character vector - Trouble reading 'Numeric' field from file
How do we resolve this error? Error using textscan Mismatch between file and format character vector. Trouble reading 'Nu...

7 years ago | 0 answers | 0

0

answers

Question


How do we assign NaN to multiple table elements most efficiently? Why can't we assign multiple columns at once?
I thought the following code would work to replace specific 0's with NaN in my data table. (Data was not recorded for these trea...

7 years ago | 2 answers | 0

2

answers

Question


Why is probplot not plotting the reference line for one matrix column?
Inputting a 1457x3 double matrix whose columns represent millimeter motion in 3D space, <https://www.mathworks.com/help/stats/pr...

7 years ago | 1 answer | 0

1

answer

Question


How do I import Velocity 3.2.0 CSV DVH data into MATLAB 9.1 (R2016b)?
How do I import radiation oncology software Velocity 3.2.0's dose-volume histogram (DVH) data in a comma-separated value file (C...

7 years ago | 1 answer | 0

1

answer

Question


Where is my mistake in trying to write a cell array with both strings and numbers to XLS file?
datecolumn = datestr(dlmread('data/time.txt'),'mm/dd/yy'); for loop = 1:numberofloans datamatrix = {'Interest Rate','Dat...

7 years ago | 1 answer | 0

1

answer

Answered
How do we quickly learn the meaning of MATLAB's dicominfo metadata?
The fastest way to learn the meaning of |dicominfo|'s DICOM metadata in my experience is to read the <http://dicom.nema.org/medi...

7 years ago | 0

| accepted

Question


How to add a color-dependent legend to scatter3 plot?
I have a 3D histogram via scatter3, but I wish to add a legend to state the frequency signified by the color. How do I do this? ...

7 years ago | 1 answer | 0

1

answer

Question


dicomwrite to create RT DOSE DICOM file causes Warning: Attribute (0020,0010) has wrong amount of data.
Why does this warning issue? Is it important? How do I resolve it? Relevant Code: doseinfo = dicominfo('[file on a share...

8 years ago | 1 answer | 0

1

answer

Question


How to replace 0s between 1s with 1s "filling in" meshgrid-derived XYZ matrices?
DICOM ContourData gives points representing organ structures. (Originally a vector for each slice, [x1 y1 z1 x2 y2 z2 ...], I ha...

8 years ago | 1 answer | 0

1

answer

Question


Why is MATLAB rounding to whole number after multiplying and summing DICOM structure fields?
Working with DICOM files, thinking a meshgrid the best way to work with DICOM coordinates between structure and dose (please tel...

8 years ago | 1 answer | 0

1

answer

Question


Can Group and Element hexadecimal Numbers be used (e.g. via dicomlookup) to access DICOM metadata faster than with 'structure diving'?
Instead of diving into the structure fields as exemplified in the following code: planinfo = dicominfo('RT-Plan\DICOMfile.d...

8 years ago | 0 answers | 0

0

answers

Answered
Is the fastest way to learn MATLAB DICOM manipulation (e.g. structure translation) through working with CERR?
In my experience, working with CERR and other DICOM scripts in the File Exchange required analyzing others' code, often learning...

8 years ago | 0

| accepted

Question


Is the fastest way to learn MATLAB DICOM manipulation (e.g. structure translation) through working with CERR?
What is the fastest way to learn DICOM manipulation in MATLAB, shift a structure, and write and manage DICOM files? I have be...

8 years ago | 2 answers | 0

2

answers

Answered
What is the meaning of dicominfo's FrameIncrementPointer 1x2 array for this RT Dose file?
I think I have found the answer: MATLAB appears to be reporting the hexadecimal values '3004' and 'C' as decimal. ( <https://www...

8 years ago | 1

| accepted

Question


What is the meaning of dicominfo's FrameIncrementPointer 1x2 array for this RT Dose file?
DICOM PS3.3 2016b Page 440 states that the Frame Increment Pointer "Contains the Data Element Tag of the attribute that is used ...

8 years ago | 1 answer | 0

1

answer

Question


How to get textscan working with YY-MM-DD data?
I have a text file 'bankaccounttime.txt' with contents: 151215 151216 There is a blank line after the last entry, b...

8 years ago | 1 answer | 0

1

answer

Question


How do we quickly learn the meaning of MATLAB's dicominfo metadata?
I have been unable to find MathWorks documentation explaining each of the |dicominfo| metadata entries, e.g. the meaning of [0;1...

8 years ago | 2 answers | 0

2

answers

Answered
Why am I getting an error message "unsupported data encoding" with the dicomread command yet dicominfo reads the same file with no problem?
Perhaps you need to convert the data from signed to unsigned integers via commands like |uint16| or |double|?

8 years ago | 0

Load more