Community Profile

photo

Minh Tran


25 total contributions since 2015

Minh Tran's Badges

  • Thankful Level 2

View details...

Contributions in
View by

1

answer

Answered
How do I get detectImportOptions to preserve row order and not skip rows?
I took a subset of the larger textfile and included rows from the original textfile that went missing along with a couple of row...

environ un mois ago | 0

| accepted

Question


How do I get detectImportOptions to preserve row order and not skip rows?
I'm trying to read the attached textfile into a table so that I can call function row by row. I used the following import option...

environ un mois ago | 1 answer | 0

1

answer

Question


How to replace all 1x1 cells containing 'NAN' with 'NaN'?
Attached is a cell array that I need to convert to an array of doubles (for plotting). The values were pulled from textfile (int...

environ un mois ago | 2 answers | 0

2

answers

Question


How to display latex expression with natural log in a plot's legend?
I'm having trouble getting the following LaTex expression to display in the legend. I used those expresions in the Live Editor's...

2 mois ago | 1 answer | 0

1

answer

Question


What does "axes( __ )" mean on the Axes help page?
I don't understand what the axes( __ ) signature mean on the Axes() description page. Does it say that every overloaded Axes() c...

4 mois ago | 1 answer | 0

1

answer

Question


How to convert an array of bytes to IEEE 754 single-precision float?
I'm using Matlab R2007b. I have an array [65 227 216 168] which represents the hexadecimal digits 0x41E3D8A8 that I'd like ...

6 mois ago | 1 answer | 0

1

answer

Question


Do I need to include functions defined in other files when compiling my script to a C Executable?
My script, wcpngui.m, calls functions defined in other files (adodb_connect.m and adodb_query.m) which I've downloaded from the ...

6 mois ago | 0 answers | 0

0

answers

Question


Executing a Jenkins Build (invoking the Matlab compiler in Windows Shell) returns license error: "Error: Could not check out a Compiler license"
I'm trying to set up a Jenkins build to "Execute Windows batch command" when changes are pushed to a remote repository (that's r...

7 mois ago | 0 answers | 0

0

answers

Question


How do I convert relative Gregorian days since 1935-01-01 to calendar datetime (days with hours,mins,sec)?
I have a netcdf dataset that reports timestamps as decimal values where each represents the "Gregorian" days since 1935-01-01 (1...

10 mois ago | 1 answer | 0

1

answer

Answered
How to convert a cell array of singles and doubles to an array of a single type (double)?
A solution I just came up with that is kind of clunky: result = NaN(size( struct.speed(:,1) )); % Preallocate a vector of ...

12 mois ago | 0

Question


How to convert a cell array of singles and doubles to an array of a single type (double)?
I queried a database for an array of numerical values. The query is a function call that returns a struct of different cell-arra...

12 mois ago | 2 answers | 0

2

answers

Question


What is the difference between ( ) and { } when accessing elements of a cell array?
There are two cell arrays that I'd like to consider: a = {{'air'}, {'bee'}, {'cat'}} % Cell array of single-element cell ...

environ un an ago | 2 answers | 0

2

answers

Question


How to find the largest index into a cell array, pointing to an element after which all subsequent elements are empty?
I'm writing a function that parses a text file containing key-value-value tuples that are separated by 2 delimiters. The second ...

environ un an ago | 1 answer | 0

1

answer

Question


How to assign XTickLabels a subset of date strings?
I'm using _imagesc_ to plot ocean current magnitude against depth (y-axis) and time (x-axis). The call looks like this: im...

environ un an ago | 1 answer | 0

1

answer

Answered
Compiled Matlab executable, invoked by Window's Task Scheduler, can't locate input .csv file inside current folder
I wasn't able to get the compiled ML application to recognize the .csv file using the path 'input.csv' but the application did r...

environ 2 ans ago | 0

Question


Compiled Matlab executable, invoked by Window's Task Scheduler, can't locate input .csv file inside current folder
I've successfully compiled a ML script (wrapped by a function) which operates on a .csv file. That .csv file gets overwritten ev...

environ 2 ans ago | 1 answer | 0

1

answer

Question


Error: Undefined function or variable 'fgetl' when fgetl() is placed inside an else statement
Hi, I'm writing a simple script to read a .csv file. I get the error: Undefined function or variable 'fgetl'. Error in...

environ 2 ans ago | 2 answers | 0

2

answers

Question


How to create a matlab plot that displays two horizontal axes (each with a different x-tick), with one axes on the bottom and one on top?
I'm taking signals class and something like this would come in handy. https://en.wikipedia.org/wiki/Sinc_function <</ma...

presque 4 ans ago | 1 answer | 0

1

answer

Question


I'm using an auxiliary function that operates on an 1x4 array. But I need to append 2 extra columns to that 1x4 in the final output. Is there a way to merge 1x2 with 1x4?
function [finalOutput] = outerfun() o1 = auxfunc() o2 = auxfunc2() % how to merge o1 and o2 ? end functi...

environ 4 ans ago | 1 answer | 0

1

answer

Question


How do I write a function that behaves differently according to the number of input arguments?
First, is it possible to write a function that variably accepts some number of arguments? (It should be possible since to create...

environ 4 ans ago | 2 answers | 0

2

answers

Question


I've enabled pan and zoom for a figure but I can only zoom in the figure. How do I pan?
I can click and draw a box for a region to zoom in on on the axes window but I can't pan. close(findall(0,'type','figure'...

environ 4 ans ago | 1 answer | 0

1

answer

Question


How to "Increment val & run section" with values defined in function files that are separate from GUI script?
I wrote a GUI script which calls functions defined in separate .m files. When I run the script, I find that I may need to modify...

environ 4 ans ago | 0 answers | 0

0

answers

Question


How do I create a function (located in a separate file) that puts an interactive axes in a GUI tab (with the GUI defined in a script)?
I created a ML GUI script similar to the following: fig1 = figure; % Window for GUI tbgp = uitabgroup(fig1); %...

environ 4 ans ago | 1 answer | 0

1

answer

Question


Does axes() return anything?
f2 = figure; a1 = axes('Parent',f2); What is |a1|?

environ 4 ans ago | 2 answers | 0

2

answers