Community Profile

photo

Jeremy Hughes


MathWorks

77 total contributions since 2015

Software Developer, Musician and Science Fiction Writer.

Contact

Jeremy Hughes's Badges

  • Knowledgeable Level 3
  • 6 Month Streak
  • Revival Level 1
  • First Answer

View details...

Contributions in
View by

Answered
Matlab Compiler not updating text file
There may be another text file with the same name on your path. Try, which -all <filename>.

10일 ago | 0

Answered
problem reading with format
The leading spaces are not being counted toward the width of the fields as you're expecting. %n.pf - will read at most n charac...

14일 ago | 0

Answered
Loading/Reading .log File
Try this: data = readtable('omar_timing_test_MG125_Block_1.log','FileType','text') Jeremy

18일 ago | 0

Answered
Windows .NET Framework Update Breaks READTABLE()
Try, readtable(filename,'Basic',true) % or UseExcel false in a more recent release.

약 1달 ago | 0

Answered
WRITETABLE to spreadhseet mysterious failure
"=$0.00" This is probably the culprit. The writetable function has two modes: 'UseExcel' = true/false. If you're using Excel®,...

약 1달 ago | 1

Answered
Transpose/combine several variables using csvwrite or writematrix
The function writematrix is available in R2019a.

약 1달 ago | 0

Answered
import large csv file
The issue with 22 digits of precision in DECIMAL is that MATLAB's default number type is DOUBLE which really can only handle aro...

약 1달 ago | 0

Answered
Effective way to extract rows (range) from a text file
Readling line by line is quite ineffecient. Try this: C = textscan(fid,'%f','delimiter','\n', 'headerlines',182);

약 1달 ago | 0

Answered
How to convert xlswrite to writematrix?
XLSWRITE can write either a matrix (e.g. [ 1 2 4;5 7 8] or a cell {'a' 'b';'c' 'd'}) If your input is a cell, use WRITECELL. ...

약 1달 ago | 0

Answered
Importing a Large CSV in chunks and getting Data Range Invalid
I'd reccomend using tabularTextDatastore for this case. It will try to automatically detect formats and handle the reading of se...

약 2달 ago | 0

Answered
Extracting Unknown Amount of Columns from Excel Data
I recommend using READMATRIX if you have access to R2019a, or READTABLE for earlier releases. A = readmatrix(filename) Once yo...

약 2달 ago | 0

Answered
Reading a csv file
It's hard to say without know what you'll be doing with the data, but I'd reccomend using the table directly unless you need a d...

2달 ago | 0

Answered
How to use fread to read little endian data?
The control of byte order is on the creation of the file identifier.https://www.mathworks.com/help/matlab/ref/fopen.html#btrnibn...

2달 ago | 0

Answered
I have an array of date time values. How do I separate Date and time and enter it in separate columns in excel?
Assuming you have a datetime array called DateAndTime which is a column vector: Date = dateshift(DateAndTime,'start','day') Ti...

4달 ago | 0

Answered
Import time and date text file
I can think of many different ways to approach this. The most straight forward would be to pass in a format string to READTABLE...

4달 ago | 0

Answered
how can i export a numeric vector that starts from 0 eg. 0001 from matlab to excel?
What's happening when you pass "0001" into a spreadsheet is the same thing that would happen if you typed that number into the s...

4달 ago | 1

Answered
Problem reading a csv file
Your CSV is a semicolon delimited file with comma as the decimal separator character. This ought to work opts = detectImport...

4달 ago | 1

Answered
How to solve: Error using "csvread". Too many output arguments
If you have both text and numeric data, I suggest you try READTABLE instead.

5달 ago | 1

Answered
MATLAB 2018b readtable error after update
This is an installation issue. Although this might not resolve the issue try >> restoredefaultpath >> rehash toolboxcache You...

5달 ago | 1

Answered
How to read out a textfile from a specific line
You might try READTABLE with import options: >> opts = detectImportOptions(filename) % Check that the number of header lines...

5달 ago | 0

Answered
How can I speed up "writetable" for large tables?
As a more programatic solution based on Walter's suggestion: If you're in a recent release (I think 18b), you can provide the 'U...

5달 ago | 0

Answered
2018 release: Slow xlsread
Is this happening with all files? You should contact MathWorks support and include an example file for which reading has slowed...

5달 ago | 0

Answered
How to read multiple CSVs files
I'd try tabularTextDatastore.

5달 ago | 0

Answered
How can I import only the numbers from an csv.-files with a text header?
You should be able to add 'NumHeaderLines',7 to the datastore call and get what you want. The issue is that this looks a lot li...

6달 ago | 1

| accepted

Answered
How to read a text file into a numeric array?
This was a tricky one. I was able to get something in, but there are extra rows at the end that aren't importable. This file ap...

7달 ago | 1

Answered
How to put a string in a text file to define headers to data?
The issue is here: fprintf(filename1, '# GHz S DB 50'); fprintf doesn't accept a file name, it need an open, writable file-id ...

7달 ago | 0

| accepted

Answered
Reading csv file NaN and NaT problem
Based on the description, I think this is what you'd want. Without an attached file, I cannot say more. opts = detectImport...

8달 ago | 0

Answered
How to use textscan to read my 2nd column and ignore the string or non numerical values?
I suggest trying opts = detectImportOptions(filename) T = readtable(filename,opts) Also, if you want to ignore those...

10달 ago | 1

Load more