photo

dpb


Last seen: Today Aktiv seit 2012

Followers: 0   Following: 0

Nachricht

Statistik

All
  • Revival Level 2
  • First Review
  • Master
  • Thankful Level 3
  • 36 Month Streak
  • Knowledgeable Level 5
  • First Answer
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Beantwortet
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'}...

etwa 2 Stunden vor | 0

Beantwortet
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...

ein Tag vor | 0

Beantwortet
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....

2 Tage vor | 0

Beantwortet
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 ...

3 Tage vor | 0

Beantwortet
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?...

3 Tage vor | 0

| akzeptiert

Beantwortet
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 ...

5 Tage vor | 0

| akzeptiert

Beantwortet
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...

5 Tage vor | 0

Beantwortet
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...

5 Tage vor | 0

| akzeptiert

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

6 Tage vor | 1

| akzeptiert

Beantwortet
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...

6 Tage vor | 0

| akzeptiert

Beantwortet
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...

7 Tage vor | 0

| akzeptiert

Beantwortet
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...

7 Tage vor | 1

Beantwortet
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 %...

7 Tage vor | 0

Beantwortet
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 ...

7 Tage vor | 0

Beantwortet
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 ...

7 Tage vor | 0

| akzeptiert

Beantwortet
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 ...

7 Tage vor | 1

Beantwortet
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...

8 Tage vor | 0

Beantwortet
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...

8 Tage vor | 2

| akzeptiert

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

18 Tage vor | 0

| akzeptiert

Beantwortet
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...

18 Tage vor | 0

Frage


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 Monate vor | 0 Antworten | 1

0

Antworten

Beantwortet
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...

3 Monate vor | 0

| akzeptiert

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

3 Monate vor | 0

| akzeptiert

Beantwortet
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> ...

5 Monate vor | 1

| akzeptiert

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

5 Monate vor | 1

Beantwortet
How to make an app that does not loose data when it's closed?
Do you want/need the UITable to contain the previous data, too? Or just add onto the saved data what is new in the user table e...

7 Monate vor | 0

| akzeptiert

Beantwortet
Why does C{1}(1) work but C(1){1} results in an invalid array index error in MATLAB?
If you haven't yet, read <Access Data in Cell Array>. The reason is the cell contains an array; you must first dereference the ...

8 Monate vor | 1

| akzeptiert

Beantwortet
How can I selectively multiplying the negative values with (-1) in an excel file?
data=readmatrix('yourExcelfile.xlsx'); isneg=(data(:,2)<0); data(isneg,2)=-data(isneg,2); "Use the Force, Luke!" Here "the F...

8 Monate vor | 0

Beantwortet
Remove Rows/Columns from Binary Image Matrix
A(:, (columns I want to remove))=[]. will remove everything from the top of the array to the bottom -- if there is a "spot" any...

8 Monate vor | 0

| akzeptiert

Beantwortet
Matlab generate normal random sample with outliers
The funny thing about random sampling is that it is, well, random. You're resampling with replacement so it is possible to pick...

8 Monate vor | 1

Mehr laden