回答済み
Stacked plot graphics, trying to color multiple lines on one y-axis.
There's an array in the <'StackedLineProperties'> gotten to by the links in the "See Also" section of the documentation.

3年以上 前 | 0

| 採用済み

回答済み
plotting 4 by 1 tiles using tiledlayout function do not produce figure properly
Well, there's only so much room in a default figure and as Dolly Parton told Johnny Carson one night, "You can't put 10 pounds o...

3年以上 前 | 0

回答済み
Combining existing figures, each in its own tile
See copyobj It's pretty easy if just copying an axes and its content to a new figure; when it's a new axes that's been created ...

3年以上 前 | 0

| 採用済み

回答済み
how to input data into an array from csv files in a for loop
You loop above would work except you use the variable na as both a dynamic file name to read and then overwirite it with the ret...

3年以上 前 | 1

| 採用済み

回答済み
interpolate (extrapolate?) the values in between two matrices using existing data
A = [1, 2, 3, 4, 5; 0.3654, 0.3634, 0.3663, 0.3665, 0.3677]; B = [16, 17, 18, 19, 20; 0.4653, 0.4636, 0.4652, 0.4620, 0.4715];...

3年以上 前 | 0

回答済み
Using regexpressions with 'dir' function
"I woudl like to know if it is possible to use reg expressions with a 'dir' function." Nope. Unsupported by the OS; "filename ...

3年以上 前 | 1

| 採用済み

回答済み
Resize only height, not width of spectrogram
You don't show how you're trying the resize operation but spectrogram(...) plots into the current axes and if you size the axes ...

3年以上 前 | 0

回答済み
Customise colorbar labels (exponent)
@Star Strider is on the right track; the colorbar numeric ruler handle is hidden, however, but it is there and writeable -- For...

3年以上 前 | 1

| 採用済み

回答済み
Looking to find data in a spreadsheet via user prompts
For the above correlation (or any similar that is linear in the two variables), you can simply compute the case ID; you don't ne...

3年以上 前 | 0

回答済み
Hold function combining graphs
Don't use hold on for separate plots, it's specifically to add more to a given figure/axes. Insert figure instead, before eac...

3年以上 前 | 0

回答済み
How to force textscan to include the custom EOL character
x=repmat(['@abc:1:abc:1:2:3:4\ndef:1:abc:1:2:3:4\n'],1,1e7); tic; y=textscan(x,'%s','EndOfLine','@'); y=y{1}; t(1)=toc; y=...

3年以上 前 | 1

回答済み
Iterating through a dataset and creating a vector with according values
Rarely need loops for such things as this with MATLAB; either logical addressing or table lookup almost always comes to the resc...

3年以上 前 | 1

回答済み
Saving a 3D matrix in through FOR LOOP and plot this matrix with error bar with error bar
R=zeros(numel(row),numel(col),numel(sl)); % preallocate ... R(C,b,a)=myfunction(...); ... is the brute force way using...

3年以上 前 | 0

回答済み
How do I subtract values from one table to another based on conditions, without a loop ?
Just get creative -- the function doesn't have to be one of the named ones... tLessBgkd=grpstats(SpaceTimeTemp,["LatBin","LonBi...

3年以上 前 | 0

| 採用済み

回答済み
fitting data form a matrix using loops
No real deal...your first part is somewhat more of a pain since you're averaging over a variable number of columns -- if it's a ...

3年以上 前 | 0

回答済み
Find min and max value of vector without using built-in function
... minval=maxval; ... if ... ... elseif A(i) < minval %%% HERE'S YOUR PROBLEM...SEE IT??? ... You misse...

3年以上 前 | 1

| 採用済み

回答済み
pwelch finds two-sided PSD at carrier frequency
"...I get a mirrored PSD around fx, ... Why...?" Because in [psdi,fri] = pwelch(it,[],[],(fx-5*W:10^6:fx+5*W),fs); you specif...

3年以上 前 | 1

| 採用済み

回答済み
Why is my table displaying 1x1 in workspace but displays actual values in command window?
months = (datetime(1961,01,01):calmonths(1):datetime(2022,06,30)).'; a = table(randn(size(months))); TB = a(1:end,1); whos mo...

3年以上 前 | 0

回答済み
Units type 'characters' not suppoerted for uitable on uifigure
Indeed, TMW changed the documentation to try to force the use of uifigure instead of figure it appears, and in doing so rearrang...

3年以上 前 | 1

| 採用済み

回答済み
Codes (activex..) for Copy graphs (figure) from Matlab to Excel
I can't believe this ever worked -- there's been no file associated with the COM object in this code by itself. Unless the conn...

3年以上 前 | 0

回答済み
Plot 3 axis from Excel
Q=readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1127410/Heat%20exchange.xlsx'); Tin=Q(1,2:end);Tou...

3年以上 前 | 1

回答済み
I am receiving error for the following code , but I can't understand where and what to change I am having error at 5th line
You forgot to attach the error message in context or to even give us a klew what raw contents are...but, taking a guess as to wh...

3年以上 前 | 0

回答済み
How do I plot an image in Log-Log axis?
... h = imagesc(usl,usg,P); hAx=gca; set(hAx,{'XScale','YScale'},{'log','log'})

3年以上 前 | 0

| 採用済み

回答済み
How to set different marker and marker edgecolor on single line in Plot?
plot is a single object for each line -- ergo, each line can have only one linestyle (colors, marker, line). To have a second m...

3年以上 前 | 0

| 採用済み

回答済み
Read csv with quotes and datetime stamp (readtable configuration)
readtable will import the file time field as a datetime variable automagically; you don't need to do anything except read it. Y...

3年以上 前 | 1

回答済み
Extracting time valued between lower and upper bound
>> tmp=a(1:10,[end-2:end]) % look at a sample of the pertinent data ans = 10×3 table datetime ...

3年以上 前 | 0

| 採用済み

回答済み
Cell Array Conversion to a Numeric Array by using a loop
You can try m=cellfun(@(x)movmean(x,3),TECs,'UniformOutput',0); If the content of TECs is an array of double arrays, you'll ge...

3年以上 前 | 0

| 採用済み

回答済み
How to pass textscan data to array?
OK, with the multiple-line header, and parsing it, the code isn't so bad, after all... :) I'd probably still do a little differ...

3年以上 前 | 1

| 採用済み

回答済み
Changing Function number every loop
Seems would be just call it in a loop or even with arrayfun... search='c'; target='y'; N=[4:4:16].'; ret=arrayfun(@(n)Target...

3年以上 前 | 0

| 採用済み

さらに読み込む