Community Profile

photo

dpb


Last seen: Today 2012 以来アクティブ

Statistics

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

バッジを表示

Content Feed

表示方法

回答済み
Plotting a two peak model as a fitted line on a probplot.
Actually, when I had a few minuts to think about it, it's not too hard; you just have to define the associated CDF function to g...

36分 前 | 0

回答済み
Suppose i have a 1000*24 binary vectors each having 4 ones and 20 zeros in each row .Now want to extract the spcific vectors that have ones only at the speific positions.
Is that two separate cases of 12:15 AND 14:17 or one case that includes both cases? And is it all or any that must be 1? V1=12...

約2時間 前 | 0

回答済み
Folder names sorting issues after reading from directory
I've never noticed a case in which dir returned a list differering in order from that returned by the OS -- what if you look at ...

約2時間 前 | 0

回答済み
How to use num2str inside text with latex interpreter?
i=1; text(0.4,0.5,"L_{" + i + "}") i=i+1; text(0.4,0.4,"\it L_{" + i + "}") i=i+1; text(0.4,0.3,"\it L\rm_{" + i + "}") Va...

約16時間 前 | 1

回答済み
Reuse figure/axes properties from figure A for figures B,C,D
hAxGolden=gca; % the gold standard hF=figure; % create new figure hAx=copyobj(hAxGolden,hF);...

約20時間 前 | 0

回答済み
Loop through files of different length
When you compute what h is in samples (if sample rate varies, otherwise just set it as a constant), then [R,C]=size(ECGdata); ...

約20時間 前 | 1

| 採用済み

回答済み
I have a .txt file that I need to turn into a vector
v=readmatrix('YourFile.txt');

約21時間 前 | 0

回答済み
how to read only last 2 columns of csv format file?
data=readtable(websave('plot.csv','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1147855/plot.csv'),'readvariab...

約23時間 前 | 0

回答済み
How do I get the line of best fit and its equation from multiple datasets?
Presuming the problem with the file location is resolved, a fresh start is in order -- readvars is not a good choice here it wou...

2日 前 | 0

回答済み
Represent the total mask usage data (for all counties) in a form of a pie chart
explode=[]; to not use the parameter; the empty cell array doesn't work, the empty double does; a logical array is expected.

2日 前 | 0

回答済み
How to fake an app handle in the arguments?
Use mustBeScalarOrEmpty validation function instead of fixed size would get past that hurdle. I've no klew whether it'll actua...

2日 前 | 0

回答済み
Need help making a plot from data in Excel with three columns and 2000 rows, to get two variables on the same axis.
Size of data is of no matter to syntax -- if you can plot a vector of 5 elements, you can plot one of thousands... data=readmat...

3日 前 | 0

回答済み
Fastest way to index large arrays
With the lookup arrays structured as they are, you don't need a lookup at all; you can just calculate the row directly -- fnRow...

3日 前 | 0

| 採用済み

回答済み
organising data with fscanf
file=readlines(websave('data.txt','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1145645/data.txt')); data=[];...

3日 前 | 1

| 採用済み

回答済み
Code to import every 50th line of .csv isn't working
That's hard way to go about it -- data=readmatrix('Plain_VHB_Cyclic_Test_1.csv','numheaderlines',2); data=data(1:50:end,:);

3日 前 | 0

| 採用済み

回答済み
How to adjust the position of the x-axis ticks and put the angle degree on the values of the x-axis ticks?
With all values in one decade, log plot gets pretty squished; you can set the xlim to just cover the actual range and then only ...

3日 前 | 0

回答済み
Why can't i change an excel file sheets during a loop in matlab
Because in ewb.Worksheets.Item(1).Name =[Varlist(1,a)] ; that's exactly what you told it to do -- rename Item(1) each time. U...

3日 前 | 0

| 採用済み

回答済み
Create a new excel file from trimmed data
Shure...just build a file name dynamically somehow instead of incrementing the sheet number as you did. FILES={'T04A', 'T04A_1'...

3日 前 | 0

| 採用済み

回答済み
Combine data from text files into 1?
Exact details for the easiest way to handle the three files would depend on how they're named/saved so as to keep the sets assoc...

3日 前 | 0

回答済み
Plot on Boxplot on the same graph
Shift/Rescale the hourly times to be centered about the 1:N values. boxplot(T) hold on W=0.8; % fractional width of eac...

3日 前 | 0

| 採用済み

回答済み
"Axis" function error
-3 < 0 despite abs(3) being greater -- as the error message says, the axis limits have to be in strictly ascending order numeric...

4日 前 | 1

| 採用済み

回答済み
How to extract row data by searching in matrix.
x=45; y=105; % lookup values; use variables, don't bury magic numbers in executable code ixy=(Species(:,3)==x)&(Species(...

4日 前 | 1

回答済み
I would like to plot few values of a vector based on threshold setting from another vector.
It works; you just can't see the single point that is left because the single point on a default line width without a marker jus...

4日 前 | 1

| 採用済み

回答済み
How to filter table rows according different conditions?
NHATS_table = readtable(file_name,"VariableNamingRule","preserve"); NHATS_table.Object=categorical(NHATS_table.Object); % c...

4日 前 | 1

回答済み
How do I create x-axis in boxplot?
You've got the orientation of the array backwards to use boxplot effectively; it thinks columns are variables and rows observati...

5日 前 | 1

| 採用済み

回答済み
Error using fgets Invalid file identifier. Use fopen to generate a valid file identifier. Error in fgetl (line 34) [tline,lt] = fgets(fid);
Indeed, just downloaded and unzipped into a clean subdirectory -- it isn't the failure to open ID.dat that you're seeing, it is ...

5日 前 | 0

| 採用済み

回答済み
extracting nonpivot columns from a matrix
function npc = nonpivotcols(A) [~,p]=rref(A); A(:,pcols)=[]; npc=A; end or function npc = nonpivotcols(A) [~,...

6日 前 | 0

| 採用済み

回答済み
Check if number of changes from negative to positive on data table and perform set of conditional tests
A=[-5.67 0.999 -5.66 0.994 -5.55 1.024 -5.38 1.049 -5.19 1.065 -4.42 1.175 -3.00 ...

6日 前 | 0

| 採用済み

回答済み
How to create a log_file.txt that stores my outputs and variables?
Use fid=fopen(fillfile('LogFileBaseLocation','LogFileName.txt','a+'); to open the file for append, read/write access. See fop...

6日 前 | 0

回答済み
I cant seem to figure out how to plot my final answer theta-x axis and A,B,C in the y direction. all in 3 separate plots.
E1=40*10^3; E2=8*10^3; v12=0.25; G12=4*10^3; IsotropicComplianceStiffness(E1,E2,v12,G12); function [S,Q]= IsotropicCompli...

7日 前 | 0

| 採用済み

もっと読み込む