Statistics
RANK
12
of 257 660
REPUTATION
14 957
CONTRIBUTIONS
45 Questions
5 633 Answers
ANSWER ACCEPTANCE
20.0%
VOTES RECEIVED
2 237
RANK
of 17 753
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
plotting leastcurve fit through exceldata
Pass the data and generalize instead; don't hard code indices into indexing expressions. Also, MATLAB has builtin functions pol...
environ 16 heures ago | 0
I have found respective latitude & longitude points from an excel file-- I want to export the data that satisfies both restrictions on the lat & long (matching rows).
Making it harder than need be -- first, use readtable instead of readcell()... tAIS=readtable('AIS_2018_05_18_ex.csv','Range','...
environ 18 heures ago | 0
cell of characters to column
We need to see this in situ -- how did you get it into such a form, first. Attach the file from whence the data came (or a repr...
environ 22 heures ago | 0
| accepted
Help on ploting bar graph using table
Pursuant to the previous comments; my suggestions would result in something like >> tSinghBar=readtable('data2.xlsx'); >> tSin...
environ 22 heures ago | 0
(In excel) Reading rows with text, in between continuous rows of numbers, by 'readtable' function?
readtable() can't do that -- each column must be the same data type -- or a cell which can contain either, but then would have t...
environ 24 heures ago | 0
Change figure size based on the number of nexttile
Well, when you use the 'flow' option, that's what you've told tiledlayout you want -- the size/location of the figures to update...
1 jour ago | 0
cell merge and print
Depends upon what you mean by "merge" here...if you want the numeric result, that's D=-reshape(diff(reshape(M.',2,[])),size(M,...
2 jours ago | 0
Searching for slightly different versions of one string in another string array
>> S='ABC12'; >> A(matches(strrep(A,' ',''),S)) ans = 1×3 cell array {'A BC1 2 '} {'AB C 12'} {' A B C1 2'} ...
3 jours ago | 0
| accepted
Help with changing text in a table
tSingh=readtable('singhData.xlsx'); catnames={'Protein A','VI','DI','AN', 'UF','CA','VRF','DF'}; tSingh.Step=categorical(tSing...
3 jours ago | 0
| accepted
Help with changing text in a table
It's always bestest to attach a short section of your file/variable that illustrates...but will take a stab at it from the descr...
3 jours ago | 0
Create comma-separated list from data of UITable
>> which -all kmlwritepoint 'kmlwritepoint' not found. >> So this is not a MATLAB function I've got... kmlwritepoint shows i...
3 jours ago | 0
| accepted
Use XSteam with vectors
You'd have to rewrite the interface for XSteam itself to know what to do with vector inputs; I've looked at that code some in th...
4 jours ago | 0
| accepted
Hi there, I want to show only one x axis value (on 0 value) bold character in my x-axis. I already draw a vertical line on zero value by xline(0) command. Thanks in advance!
You'll have to write the tick labels manually; can't change the characteristics of individual tick labels as they're just text s...
4 jours ago | 1
| accepted
datenum(year,month,day,hr) that returns integer
Wrong approach. Instead, convert the table to a timetable; there are direct, builtin functions to return by rowtimes either ind...
4 jours ago | 0
| accepted
How to get the highlighted parts from the text file to another separate text file?
D=readlines('SB_PB.txt'); ix=find(contains(D,'NODE FOOT')); NodeData=str2double(split(strtrim(D(i+3)))); to simplify the solu...
5 jours ago | 0
| accepted
Was struct2array removed from MATLAB?
struct2cell seems to be lowest level still extant, yes. <struct2array#answer_403725> gives some history(*) of its evolution fro...
5 jours ago | 0
How to add header row to cell array?
A cell array doesn't have the facility for headers, per se; if you add to it you've effectively created more data -- and when yo...
5 jours ago | 0
How do I specify the datatype for readcell?
readcell will allow the use of an import options object whch would let you set the variable types. However, I'd strongly encour...
6 jours ago | 1
| accepted
Polyfit on a 3d plot
That's fairly simple, just loop over the displacement array with a set of the position data to compute that set of coefficients ...
6 jours ago | 0
| accepted
How to have a numerical legend showing with a categorical histogram?
The legend labels are just text; you can make then whatever you want -- try something like: nStroke=[2000,100;2750,125]; ...
7 jours ago | 0
Reading files from different directories
if exist(file, "file") will only find the file if it is in the current working directory or on the search path and only if the ...
7 jours ago | 0
Position of Not-visible figure is WRONG (two monitors bug?)
I deal with it by having a usersettings structure saved as a .mat file that contains all the stuff to restore from the user's la...
7 jours ago | 0
| accepted
HOW TO GROUP THE ELEMENTS OF AN ARRAY
One of those cases where the optimal way depends upon being familiar with internal array storage order being column-major and ma...
7 jours ago | 0
| accepted
how can I add and change the position of elements in vector
NB: even if you have (again the unstated problem) >> a=2;b=3; >> ma=[a;b;0]; >> ma=[repmat(ma(3),2,1); sum(ma(1:2))] ma = ...
7 jours ago | 0
Splitting a matrix according to there labels
[ix,idx]=findgroups(X(:,4)); % get grouping variable on fourth column X for i=idx.' % for each g...
7 jours ago | 1
Extract number from string
v=str2double(extractAfter(X,'=')); is one way. For more difficult cases look at the new(ish) @doc:pattern function
7 jours ago | 1
| accepted
Reading text file and searching for specific lines
D=readlines('Full_TableX.txt'); % read as string array ixP1=find(contains(D,'Pipe')...
8 jours ago | 0
Generate hourly timeseries data from "START,END,VALUE" data
Well, in the end it turned out not so bad after all -- and, somewhat surprisingly, it didn't seen to be too bad on performance.....
8 jours ago | 1
| accepted
if statements inside for loop issue
"I know nuthink!" about Simulink, but the problem you have in the function is primarily that you've created all those named vari...
8 jours ago | 0
| accepted
Add large amount of variables
OK, I'll just make another Answer so previous conversation doesn't distract Brute force; may be something a little more clever ...
8 jours ago | 1
| accepted