回答済み
Why is there points showing along the x-axis of my graph and how do i get rid of them?
... y=zeros(size(t)); y(1)=5; % Starting value of y n=numel(y); % Number of values of y for i=1:n-1 % For function...

7年以上 前 | 1

| 採用済み

回答済み
Categorical input to numerical array
The problem is your spreadsheet is structured such that the runs variable array is stored as a text string of a series of values...

7年以上 前 | 0

回答済み
How to edit the number of bars on a pdf
Sure, use the documented optional inputs of either _nbins_ or _edges_ depending on whether you specifically desired a given numb...

7年以上 前 | 0

回答済み
How to calculate trend value per year for time series data?
For starters using |timetable| and |retime|... opts=detectImportOptions('barguna.txt'); % build basic import ...

7年以上 前 | 0

| 採用済み

回答済み
How can I change the input method by using xlsread and convert the code?
Well, as Walter so astutely observed, you'll have to decipher how, precisely, the other variables than _r_ are built from it--su...

7年以上 前 | 0

| 採用済み

回答済み
Calculate arithmetic average based on block numbers
Don't use figures, attach .mat files or paste short sections of text for data...nothing anybody can do with a figure except look...

8年弱 前 | 0

| 採用済み

回答済み
use function unique and find in two different sheets of xls
Not directly, no. Read both sheets; concatenate the two and call |unique| on the result, or Read first sheet, call |unique...

8年弱 前 | 2

| 採用済み

回答済み
Why is my while loop infinite?
Yes, but neither |nVal| nor |inpuTm| are modified inside the |while| loop, so they remain unchanged and the loop either never ex...

8年弱 前 | 0

回答済み
How do I combine datetime and double precision decimal data in one text file?
Your script is, indeed trying to do that because of the way |fprintf| works. fprintf(fileID, '%s %s %18.6f\n', t, m_sst); ...

8年弱 前 | 0

| 採用済み

回答済み
select y data with duration x data
Yeah, need to explain more carefully; it's not at all clear what _"in a duration of 5"_ is intended to mean. If it's just, as...

8年弱 前 | 0

回答済み
Output from a function as an argument to another function
In main script or calling function ... u=... X0=... X3=... X4=... X5=... Xb=... Tf=... X1=ICN(u,X...

8年弱 前 | 0

| 採用済み

回答済み
Fixing data set with if/else, how do I index/indicate this properly?
OK, to increment every element from the previous by its absolute matnitude change is I guess what you're asking to do... yy...

8年弱 前 | 1

| 採用済み

回答済み
cannot concatenate variable in a table
Try the following: VarNames = {'TStart','TEnd','CO2','CO2_SIGMA','H2O',... 'H2O_SIGMA','FC','FC_SSITC_TEST','LE','LE...

8年弱 前 | 0

回答済み
Reading csv file NaN and NaT problem
detectImportOptions(filepath); You didn't save the output of detectImportOptions so you don't have an import options object...

8年弱 前 | 0

回答済み
Help with readtable opts
Don't try to create the options object from scratch--that rarely, if ever, works because there's a whole lot of other stuff besi...

8年弱 前 | 1

| 採用済み

回答済み
How do we plot the graph with non available values in x axis.
There's no way the code posted will do what you say; it has fatal syntax error both lines--in the first the _'XTick'_ vector mus...

8年弱 前 | 0

回答済み
how to shift in timetable?
First need to clean up the syntax for creating the time table -- as written one gets: >> time_table=timetable({'1-Mar-2...

8年弱 前 | 0

回答済み
Why do I get the error message with "more non-singleton rhs dimensions"?
comp=imfuse(BW_vtk, BW_groundtruth,'falsecolor'); Method _'diff'_ returns a single value the difference so can be applied o...

8年弱 前 | 0

| 採用済み

回答済み
Parsing text file to get rid of specific number and preceding identifier
fmt='%s %f'; % set format fid=fopen('lori.dat'); % read data dat=textsc...

8年弱 前 | 0

| 採用済み

回答済み
I have a 2D matrix (81,000,000 x 2). Each row has a radius value and an intensity value. The radii are not in a monotonic in this 2D matrix. I want to sort 1st column from min to max and have column 2 move with it.
doc sortrows Or, of course, you can do it yourself via [~,ix]=sort(A(:,1)); % return index to sorted position of fi...

8年弱 前 | 0

回答済み
Aligning 2D Point Cloud data with X-Axis
Well, that's somewhat of a different problem statement.. <https://www.researchgate.net/publication/303329343_Least-squares_Fi...

8年弱 前 | 0

回答済み
Aligning 2D Point Cloud data with X-Axis
I'll repeat the Comment made in previous followup-- Actually, it's a fignewton of a visual optical illusion effect; if you co...

8年弱 前 | 0

回答済み
Deriving specific rows from a large text files
Read as table or timetable; deal with the asterisks as needs must depending on whether they're real or not... Two alternative...

8年弱 前 | 1

回答済み
Axes limits - plotv
Sure, it's still just drawn on a normal axes object xlim([-1.5 1.5]); ylim([-1.5 1.5]);

8年弱 前 | 1

| 採用済み

回答済み
Help speeding up a plot
At a minimum w/o digging more deeply 1) Before beginning simulation define color vector C=[repmat([0.6 0.3 0],8,1); ...

8年弱 前 | 0

| 採用済み

回答済み
How can remove a certain element from all the rows of a matrix
Well a "matrix" with differing numbers of elements by row must be a cell array, _not_ a matrix in Matlab, just to get the termin...

8年弱 前 | 0

回答済み
shifting time in timetable
Not sure what the "want" really means--the present time just a day later for each observation or what, precisely? On the pres...

8年弱 前 | 0

| 採用済み

回答済み
How to change a font (any other property e.g. title) of histogram subplot axes using subplot handle
It's a sequencing issue; you set the axes properties before the call to create the histogram object and it has its own internal ...

8年弱 前 | 0

回答済み
How can I enter a transfer function without writing down the exponents?
num=8.75*[4 0.4 1]; den=conv([100 1]),[1 0.24 1]); convolution of polynomial coefficient vectors is same as multiplicati...

8年弱 前 | 1

回答済み
How to read one row at a time from Excel and increment?
Use Matlab as it is designed; a MATrixLAB instead... data=xlsread('XXXX'); S=std(data,2,'omitnan'); M=mean(data,2,'o...

8年弱 前 | 0

さらに読み込む