回答済み
How to plot z values against year in x-axis and months in y-axis?
[Y X]=meshgrid([1:12],tRAIN.YEAR); contour(X,Y,tRAIN{:,2:end}) yticklabels(tRAIN.Properties.VariableNames(2:end)) Just for co...

約6年 前 | 0

回答済み
Calculating average of cell arrays
mnTemp=cellfun(@(t) mean(t.precip),SAMPLE); with the sample dataset: >> cellfun(@(t) mean(t.precip),SAMPLE) ans = 27.898...

約6年 前 | 1

| 採用済み

回答済み
How to export the result of the function fit to a file?
It's not a symbolic object, nor a function--it's a cfit object. It has associated methods and the default method is to evaluate...

約6年 前 | 2

| 採用済み

回答済み
Setting certain edges of a graph a different color
You mean like the following: subplot(2,1,1) plot(rand(10,1)) title('default -- top/bottom outlined w/ box on') subplot(2,1...

約6年 前 | 0

回答済み
create vector with number of hour per years
Oh. I see at the beginning you did create a timetable -- good! Just use it-- tt_BUOY_ERA5.Properties.DimensionNames={'Time','...

約6年 前 | 0

| 採用済み

回答済み
How can I read block of data using textscan?
Basics are: fnames={'Lpp','xnstrp','nptstrp','offsets','c'}; % define struct fieldnames inp=cell2struct(cell(5,...

約6年 前 | 1

| 採用済み

回答済み
[DEPRECATED] What frustrates you about MATLAB?
Inconsistency in names for Name-Value Pair arguments in new functions of similar purpose and name. Since inception which predat...

約6年 前 | 2

回答済み
Is calling length() as needed slower than storing the value just once in a separate variable?
Any computation has a finite speed...even memory access alone. Builtin data types contain a knowledge of the dimensions allocat...

約6年 前 | 0

| 採用済み

回答済み
the reason of why there is a warning like that?
<Answers/99745-why-do-i-get-warning-message-matrix-is-close-to-singular-or-badly-scaled?>

約6年 前 | 0

回答済み
importing data using function change the colomns order
Worked ok here... >> data=import_sitefile('strikeLdep5.dat',22); >> whos data Name Size Bytes Class ...

約6年 前 | 0

| 採用済み

回答済み
How to remove color bar in the matlab heatmap and add one to the whole subplot?
ERRATUM: My bad, I had other figures around and didn't realize the heatmap object is child of the figure, not of an axes on the...

約6年 前 | 0

| 採用済み

回答済み
How do I plot both of these different sized arrays on the same plot?
... plot (Tgb,Ygb) ... plot (Tgb,Ypp) plot (Tpp,Vgb) ... plot (Tpp,Vpp) For some reason, you're mixing metaphors here b...

約6年 前 | 0

回答済み
Only can detect the last word in edit text that need to be translated.
a = upper(get(handles.edit1,'string')); % uppercase, char string array b = get(handles.popupmenu1,'value'); morse=string({...

約6年 前 | 1

| 採用済み

回答済み
Turning cells created with a for loop back to an array by using a for loop after doing calculations on it
filenameExport = 'test.xlsx'; E = 0.059417; t0_row = 15; ...

約6年 前 | 0

回答済み
Search through every vector in cell array for the vector that contains a certain value
Your code above doesn't save the result going thru the loop so you only show the final result at the end--- ix=cellfun(@(v) ism...

約6年 前 | 1

回答済み
randi 0 to 3 (2bits)
v=randi([0 3],16384,1,'int8'); % save as int8; ML doesn' have arbitrary length integers. You can visualize what have with ...

約6年 前 | 0

| 採用済み

回答済み
adding a value to all values in a table
You address the variables in a table with the dot notation -- t.Var1=t.Var1+300; % store in place t.Var2=t.Var1+300; % make ...

約6年 前 | 0

回答済み
Please help me run this - I can't figure out this error!
xp(:,pp)=chopit(x+(w.*v)(pp)-(1-w)*c(pp),xcrit,Cap); Missing an operator between (w.*v) and (pp) or what variable pp is suppose...

約6年 前 | 0

回答済み
How to retrieve a table entry using row name?
It's a table; use the curlies "{}" to dereference row names to return the content of the row or regular paren's "()" to return a...

約6年 前 | 2

| 採用済み

回答済み
Two labels for xaxis for bar graph
Per above, you must have a second axes. And, you can do it with only one bar plot instead of two... ip=(a>=0); % logi...

約6年 前 | 0

| 採用済み

回答済み
Histogram with data frequency
nc=accumarray(X.',Y.'); bar(1:numel(nc),nc)

約6年 前 | 0

回答済み
avoid inserting input as a string with ' '
"So in case i want to call my input variable (valuesSwitched) in the second case one or two, I should ALWAYS use a string like '...

約6年 前 | 0

回答済み
Making Frequency vs. Time Plot from FFT using EEG Data
Sampling frequency, Fs = 2 kHz --> dt = 1/Fs Fmax = 1/2dt --> Fs/2 --> Fmax = 1 kHz The signal is sampled such that baseband ...

約6年 前 | 0

回答済み
How to convert numbers into characters other than in the range 32-127?
Because >> A = [10, 23, 90, 125, 145, 250]; B = char(A) B = ' Z}ú' >> double(' Z}ú') double(' ...

約6年 前 | 1

回答済み
Changing where divisions appear on a Matlab plot
hAx=gca; hAx.YAxisLocation='origin'; hAx.XAxisLocation='origin'; A little overkill on the number of x,y points isn't it...

約6年 前 | 0

| 採用済み

回答済み
Varying Font Size Within individual words
Amazing how the same or similar queries seem to come in bunches... <Answers/515556-how-do-i-change-the-appearance-of-a-tick-lab...

約6年 前 | 0

| 採用済み

回答済み
skip the value in for-loop
AMENDED: Probably simplest is just a = 27; c = 11; m = 54; x(1)=2; for i=2:25 x(i) = (mod(a * x(i-1)+c ,m)); end x=x...

6年以上 前 | 0

回答済み
Display mean of data on a boxchart
"??? There's a boxplot, no info on boxchart" Well, bless their little pea-pickin' hearts but TMW has done it again...introduce...

6年以上 前 | 1

| 採用済み

回答済み
How do I change the appearance of a tick label over a number of iterative values through a pre-exisitng tick label?
Think you can do what you want or at least a reasonable facsimile thereof w/ basic 'TeX' interpreter -- 'LaTeX' is such a pain t...

6年以上 前 | 0

| 採用済み

回答済み
Readmartix function removes first blank row
Well, let's quit hypothesizing and just see what happens... % BB-M.xlsx has reshape(3:8,2,[]) at C2 upper left corner >> n=xls...

6年以上 前 | 0

さらに読み込む