Answered
How to plot a line on top of the continuous wavelet transform (CWT) output?
From one of the examples it appears that other than (rudely) executing a clf that clears any current figure when called, it look...

1 year ago | 0

Answered
List all custom properties and add a new one with actxserver Word
That is a Word Q?, not MATLAB. See the <Word VBA Reference>. Look at the object model section and find the custom properties o...

1 year ago | 0

Answered
ismember returning false for 0.6000 == 0.6
As the doc for ismember states (albeit only in the Tips section), Tips Use ismembertol to perform comparisons between floatin...

1 year ago | 0

Answered
Style Property Not Being Recognised
What I suspect you're actually looking for here may be the uitable graphics table instead...it has many of the fancy formatting ...

1 year ago | 0

Answered
I would like to know how to make sure the latitude labels have decimals in them.
Anywhere after the axis is created...for ease of coding, save the handle to the axis object when creating it. You haven't provi...

1 year ago | 0

Answered
I have a function that adds a legend I want to make the legend group certain plots together yet so that instead of a legend with 14 entries there is a legend with 5 entries
Nsamples = 7; G=ones(1,2*Nsamples); G(1:2:5)=1; G(2:2:6)=2; G(7:2:11)=3; G(8:2:12)=4; G(13:14)=5; M={'x','+','*','s','d'}...

1 year ago | 0

| accepted

Answered
How to assign labels to a dataset using 'signalDatastore' object?
Not at all sure about what you mean by "object helps to assign labels like imageDatastore object". signalDatastore <example> il...

1 year ago | 0

Answered
Subtract column values where leading columns have values flipped (i.e., (A,B,C1) - (B,A,C2))
load answers T T T.D=nan(height(T),1); for i=1:height(T) ix=find(all(fliplr(T{:,1:2})==T{i,1:2},2)); try T.D(i)=T....

1 year ago | 0

Answered
I am having trouble reading a txt file
In %data=textscan(fid,'%[index: 0 int_time:] %u64 %[us_int_diff: ] %s %s %s %s %s %s %s %s') you're forcing a match on a 0 in ...

1 year ago | 0

Answered
fitting a graph and coloring each fit
It's hard to understand why you would think using a single color triplet would do anything other than use the one color for all?...

1 year ago | 0

| accepted

Answered
Update a value in a struct in another function
Variables in functions are local to the function and you don't return the struct; in fact in myUpdate you don't return anything ...

1 year ago | 0

| accepted

Answered
MATLAB not indexing table with correct data type, how to specify data type when indexing table?
There are even more alternatives available with setvaropts including identifying the column(s) as hex. This adds the limitation...

1 year ago | 0

Answered
How to pass username and password to network location
<dir> doesn't know anything about user; there is no switch processing so it thinks you're looking for a file named \\server\sh...

1 year ago | 0

| accepted

Answered
Convert vector of numeric values into a vector of equivalent 8-bit 'int8' binary values
x = [-98 8 49 120]; cellstr(dec2bin(int8(x)))

1 year ago | 1

| accepted

Answered
Can I run 2 or more matlab scripts (each running in a separate matlab session) using the same data in a folder without them interfering with each other?
If they are started in separate sessions, they know nothing of each other. In a script within the same session, variables are c...

1 year ago | 0

| accepted

Answered
how to skip lines that start with a certain character while reading a text file
With the new information of R2018 that predates all the answers initially given, the easiest high-level toolset will be to use r...

1 year ago | 0

| accepted

Answered
using polyval with one of the polynomials of a spline obtained with the unmkpp command, the results do not overlap! Why?
% Data % Time Time=[7, 9, 11, 12]; % Temperture Temperature=[49, 57, 71, 75]; % Data Time query Timeq=[7:0.1:12]; % Res...

1 year ago | 1

Answered
How to add error bars to scatter plot?
We don't have your results nor equation; export it to a curve fit object from the interactive tool...then use it similarly as %...

1 year ago | 1

Answered
Find maximum of an array in a for loop?
GENERAL GUIDANCE: Do NOT name a variable load; it is a builtin in important MATLAB function; developing a habit of aliasing it ...

1 year ago | 0

Answered
Can Matlab cellular functions -like cellfun- work with non linearly spaced indices ?
Use direct indexing, no looping needed... N = 8; u = true(1,N); id = find(randi(2,1,N)-1); % non zeros positions in a random ...

1 year ago | 0

| accepted

Answered
how to skip lines that start with a certain character while reading a text file
@Taylor's solution will work, but leaves you with the need to convert the string data to numeric values to use it. For a direct ...

1 year ago | 1

Answered
How to write data from a Cell Array as multiple columns in a text or CSV file?
% Sample 1x2 cell array c = {rand(5,1) rand(5,1)}; writematrix(cell2mat(c),'test.csv','delimiter',',') type test.csv The "tr...

1 year ago | 0

Answered
How to change fontsize of label on freehand object using drawfreehand?
<drawfreehand> doesn't show that it exposes the FontSize property of the text object. Best you can do will be to save the objec...

1 year ago | 2

| accepted

Answered
Stackedplot error when changing position and plotting again
stackedplot tP=readtable("patients.xls","TextType","string"); hSP=stackedplot(tP,["Height","Weight","Systolic","Diastolic"]); ...

1 year ago | 0

| accepted

Answered
How to plot a linear regression of iterations of data in matlab?
See boxchart -- look at the example "Superimpose Data On Box Charts Example". Execute the following at command line or look at...

1 year ago | 0

Question


VARFUN() vis a vis GROUPSUMMARY()
If one uses varfun() to group a set of variables, one can set the output variable name(s) as desired -- say one has an Amount fo...

2 years ago | 0 answers | 1

0

answers

Answered
extracting matrices of numbers from a text file (txt) also containing words
https://www.mathworks.com/matlabcentral/answers/uploaded_files/1646741/test.txt f='https://www.mathworks.com/matlabcentral/answ...

2 years ago | 0

| accepted

Answered
Why does winopen not work well?
... outputName = fullfile(path, ,'ResSal_Type.xlsx']); writecell(Res, outputName, 'Sheet', 'Sheet1'); ... winopen(path) ......

2 years ago | 0

| accepted

Answered
How prevent the tab key from exiting the Text Area component
Using the uitextarea <callback function> would be the only way, but I don't think you will be able to make it work for the <\t> ...

2 years ago | 1

| accepted

Answered
rmoutliers and graph of the cleaned data
One additional comment -- you used cleanDatac2 = rmoutliers(cleanData(:,[1 3 5])); % IQR which treated each response variable ...

2 years ago | 1

Load more