Answered
How to read input.txt?
Are the string data pertinent or just in the way of returning the numeric data? If the former, while you can make it work with ...

5 years ago | 0

Answered
Use of TreatAsEmpty to replace table values
'TreatAsEmpty' — Placeholder text to treat as empty value character vector | cell array of character vectors | string | string ...

5 years ago | 1

| accepted

Answered
How Do I get Less Digits Reported in a Formal Table Matlab Reporter?
<<rptgen format_numbers_in_a_table> is example in the doc for Report Generator. I don't have it so no experience; it took a s...

5 years ago | 0

Answered
Create loop for reading CSV file, runing and saveing the plot of it
https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F There's also a fancy thing called a "tabular text d...

5 years ago | 0

Answered
How to make invisible only a part of an axis?
Not really any way piecewise, no. The axis color is one property as is 'Visible' either {'on','off'} Best could do that I can ...

5 years ago | 0

| accepted

Answered
How to calculate skewness and kurtosis via 'groupsummary'?
Presuming you have the Statistics Toolbox which defines the two statistics of interest m-files-- G = groupsummary(T,groupvars,m...

5 years ago | 0

Answered
Set the properties of a class by reading values from initialization file
Why isn't it just the GetValues method? function [values, status] = GetValues(obj, section_name, key_names, default_values) %...

5 years ago | 0

| accepted

Answered
Datastore for reading large binary files versus incremental fread
Basically, the datastore objects are higher-level abstractions for more general file collections. If you can read a portion of ...

5 years ago | 0

Answered
Undefined function 'wprec2' for input arguments of type 'double'.
Without the actual code sequence we can't tell but the doc for wprec2 says it expects a wavelet packet tree object. If you've ...

5 years ago | 1

| accepted

Answered
How do I cite Genetic Algorithm in a published journal or paper, because I use it in my code and I wrote about the documentation in my thesis so I want to cite it?
<Mathworks.com How-do-i-cite-matlab-in-a-bibliography-or-a-published-journal?> is the corporate answer; your institution undoubt...

5 years ago | 0

Answered
How to get non interger numbers in Wilkinson notation using fitlm
Can't be done with Wilkinson notation -- it only includes integral powers. In this regard, note that "The * operator (for inter...

5 years ago | 0

Answered
error bar plot using double y axis
You could, sure, but to make things line up, you'd have to do something like scale the RH axes by 100 for those points to line u...

5 years ago | 0

| accepted

Answered
Function syntax / execution
" (pretty much ignored the input values in the command line and took the input from the input files)" No "pretty much" about it...

5 years ago | 1

Answered
scatter map with different markers
Call scatter once for each group with the chosen marker; save the handle array to the scattergroup objects returned. legend will...

5 years ago | 0

| accepted

Answered
converting an excel formula into matlab
resV = vecnorm(vel,2,2); % 2-norm by row time = 1:1935804.'; % dunno what time represents, use a tim...

5 years ago | 0

Answered
How to update the Struct value in the workspace from the MATLAB GUI app designer?
A struct variable is a variable, just as any other... function testit(s) v=inputname(1); s.year=s.year+10; assignin('b...

5 years ago | 1

| accepted

Answered
Add Cells/Matrices Row by Row
"matrix of about 600,000 rows and 14 columns. This data is a 6000 different bins with 100 columns each. So what I am trying to d...

5 years ago | 0

Answered
Trouble with for-loop and fft
What's the purpose of the loop over k? You have the time history apparently as variable x_0_003 in the table which one presumes...

5 years ago | 0

Answered
fprintf uiputfile of multiselect data file doesnt work....
fprintf(fout,'%s %f %f\n',ntropy, komph(:), kompf(:));% This is the [expletive deleted--dpb] output that brings me so confused ...

5 years ago | 0

Answered
Performing multiple Operating system commands in a loop
First, you're using the command form and the ! operator, not the functional form for system() command so as the message is telli...

5 years ago | 0

Answered
How can I change bar graph x-axis?
[a,ia] = sort(Scores_Avg,2,'descend'); % use more meaningful index variable bar(a) % ...

5 years ago | 0

| accepted

Answered
Preallocating str for speed
No loop needed here -- using relationship to ASCII coding and that MATLAB char() strings are just arrays, write T='95675467427...

5 years ago | 0

Answered
How to code a faster loop
The biggest slowdown in your code above is you haven't preallocated any of the arrays x, y, xt, yt, s, data so they're all being...

5 years ago | 1

| accepted

Answered
Looking for a faster way of finding the first element larger than a given number in a sorted array
With the JIT compiler, loops are pretty quick any more...in fact, with the starting point as the beginning loop index, that may,...

5 years ago | 3

| accepted

Answered
How to find y-axis data for a certain x-axis value
Your X variable is repeating in sets of three so when you use all 12 elements as a vector it's multi-valued in y. interp1 then ...

5 years ago | 0

Answered
Splitting a file into multiple files based on trigger words in the first column.
This is where a filter is probably best given size of file and unknown numbers between sections...and since don't need to have a...

5 years ago | 0

Answered
Why does my MATLAB icon look like a sheet of paper?
See <Why-does-my-matlab-icon-look-like-a-sheet-of-paper-on-my-windows-based-computer?> In short, somehow the link to the defaul...

5 years ago | 0

| accepted

Answered
for loop help with loop range
" extract data of the first 3 columns (x,y,z) for sensorIdx 1,2,5,6,7. For sensorIdx 3 and 4 I want to extract columns 5,6 (x,y)...

5 years ago | 0

Answered
how to extract "F-statistic vs. constant model" value for fitnlm programmatically
For some unknown reason, TMW didn't package the summary statistics with the model -- you have to run anova on the returned model...

5 years ago | 0

Load more