回答済み
How to plot Average of several plots( combined using copyobj) ?
Not without using the data to compute the average, no... But using |copyobj| to combine the plots is the hard way to go about...

8年弱 前 | 0

回答済み
I have a character vector with repeated elements and want to extract each element once and at the sequence of appearance.
[unames,ia,iu]=unique(strtrim(cellstr(Getcurvenames)),'stable'); unames will be the names that are unique in the overall ...

8年弱 前 | 0

| 採用済み

回答済み
convert categorical column to numeric in a matrix?
Totally different Q? in follow up than original -- You don't show how you "imported" the file, but >> [~,~,r]=xlsread('tr...

8年弱 前 | 0

回答済み
convert categorical column to numeric in a matrix?
>> Stations = {'S1';'S2';'S1';'S3';'S2'}; Stations = categorical(Stations) Stations = 5×1 categorical array ...

8年弱 前 | 0

回答済み
How to filter structured array by several conditions
I'd start be suggesting to rearrange the data |struct|--instead of using three fields with different names for associated data, ...

8年弱 前 | 0

| 採用済み

回答済み
struct2table produces different results when I use it on different struct files
I still think it would pay to get to the underlying reason for the difference in the beginning but a fixup if I understand your ...

8年弱 前 | 0

回答済み
Subplots are not aligned when using boxplot. Why? Possible bug?
I was able to understand part of it; some of it I still don't know the root cause...the attached is empirical and sets each subp...

8年弱 前 | 0

回答済み
Putting a variable string into a comma delimited string
Wrong tool for the job; while it can write flexible delimiters, I don't see any way to make it write the surrounding quotes wher...

8年弱 前 | 1

| 採用済み

回答済み
Can you set a plot property as an equation?
Syntax problems... 1. You're mixing "dot" notation with |set| -- use either set(hAnn,'Position', [l b w h]) or hAnn.P...

8年弱 前 | 0

回答済み
How to recreate a piecewise polynomial from polyfit to values in each interval?
OK, I did have time to go read |ppval|; indeed, it does presume coefficients are evaluated from each section as the origin, not ...

8年弱 前 | 1

| 採用済み

回答済み
Retrieve loop counter values in nested loop, and plotting specific calculation
I didn't notice the "growing" of the vector length...you've got to use a cell array to handle that. total=[]; vec=[]; co...

8年弱 前 | 0

| 採用済み

回答済み
How to modify a time series plot
See <https://www.mathworks.com/help/matlab/ref/matlab.graphics.axis.decorator.datetimeruler-properties.html Datetimeruler-proper...

8年弱 前 | 0

| 採用済み

回答済み
Interpolating matrices of different sizes to the same size
See doc resample in Signal Processing TB

8年弱 前 | 0

| 採用済み

回答済み
How to convert a plot from time domain to frequency domain
See example from the FFT documentation amplified on and some illustrations at <https://www.mathworks.com/matlabcentral/answers/4...

8年弱 前 | 0

回答済み
How to plot an area limited by two functions?
... i1=find(wavelength==wl(1)); i2=find(wavelength==wl(end)); minp=min([power(i1:i2);1-power(i1:i2);p]); hold on ...

8年弱 前 | 0

| 採用済み

回答済み
can any one help me rectify the error in the attached code? I dont know how the error can be corrected....thanks. Please find the file attached and the error message below.
If you would indent your code reasonably, it would be _much_ easier to read and see the issues...the first place I see glancing ...

8年弱 前 | 0

回答済み
Look-up table row and assign values to individual variables
You can create duplicate variables if wanted, but I'd suggest in the end it'll be better to use table addressing with the variou...

8年弱 前 | 1

回答済み
Hex-to-Binary conversion always outputting 48 or 49
"_my BinaryMat consists of 48s and 49s instead of 1s and 0s."_ I didn't try to read the code but somewhere you've converted t...

8年弱 前 | 2

| 採用済み

回答済み
Multiple Criteria Look-Up Function within MATLAB
If the data are defined as: d1=repmat([2:5],5,1); d1=d1(:); d2=repmat(1:5,1,4);d2=d2(:); d3=100:100:2000;d3=d3(:); ...

8年弱 前 | 1

| 採用済み

回答済み
cumulative sum of an array
>> N N = 5 >> S=sum(reshape(b,[],length(b)/N)) S = 15 30 15 30 >> >> S=cumsum(reshap...

8年弱 前 | 0

回答済み
Colored error bar plot with X axis labels
The problem is that |bar| as you've used it draws only the one bar as an individual element so there aren't any ticks set for mo...

8年弱 前 | 0

| 採用済み

回答済み
Why is my plot function does show any graph?
In for k = 1:21; numerator = new_wavelength(j,11)-new_wavelength(j,k) denominator = Delta_lambda/2; Denom = ...

8年弱 前 | 0

| 採用済み

回答済み
Index exceeds array bounds
No idea what really trying to accomplish but n = 6; f = zeros(n); % f=nxn array zeros for i = n % ...

8年弱 前 | 0

回答済み
how can i read thousands of nc4 files in one go using loop
Convert to function and then just call it... function ncdinfo(nc_filename) ncid=netcdf.open(nc_filename,'nowrite'); ...

8年弱 前 | 0

| 採用済み

回答済み
3D stem plot colored by Z-value
Doesn't look easy; there's no _.CData_ property even using Yair's |UNDOCUMENTED| function to find any |stem3| properties that we...

8年弱 前 | 2

回答済み
How to delete multiple row and column in matrix A and Delete row and column specified in matrix B?????????????/
On the assumption it really is to remove the full row/column, not the individual element, "Dead ahead" is sometimes the simplest...

8年弱 前 | 0

回答済み
Indexing with different sized vectors
arrayfun(@(ix,n) mean(X(ix:ix+n-1),'omitnan'), Idx,Duration); Alternatively, instead of generating the start index and coun...

8年弱 前 | 0

回答済み
How to find a value in x axis in 1d plot with a given y
>> mx=max(x); >> L=length(x); >> mxIxHalf=interp1(x(end-10:end),L-10:L,mx/2) ans = 26.9288 >> Have to us...

8年弱 前 | 1

回答済み
nlinfit function, not enough input arguments
x = nlinfit(X,y,myfun,xstart) Is passing the function as an argument instead of the function _handle_; hence it's missing...

8年弱 前 | 0

回答済み
Problems with a nested For Loop and max value
Em(a,b) = sum(Gm,1); % ERROR! “Subscripted assignment dimension mismatch” sum(Gm) (equivalent to sum(Gm,1) ) will retu...

8年弱 前 | 0

| 採用済み

さらに読み込む