回答済み
Populating matrix with data from a table
Since have expanded somewhat, will add additional Answer to bring to forefront -- and illustrate couple other things... Above w...

5年以上 前 | 0

| 採用済み

回答済み
draw and add labels for boxplot
boxplot([proposed_MSD.' manual_MSD.' other_MSD.'],'Labels',{'proposed','manual','other'})

5年以上 前 | 1

| 採用済み

回答済み
Populating matrix with data from a table
WOWSERS!!! You've got something like 1500 variables!!!??? That's definitely hard to deal with by variable name no matter what ...

5年以上 前 | 0

回答済み
Creating M histograms from an NxM table on separate plots
... for k=1:width(headers) % k=width(headers) --> one value, the last column figure ...

5年以上 前 | 0

回答済み
varfun applied to timetable, how can i keep only 1 of several outputs?
Two ways I see: Write function that wraps polyfit and only returns the slope instead of using anonymous function. Presuming th...

5年以上 前 | 0

| 採用済み

回答済み
How to get specific points for certain value from multiple excel files and insert them into the figure as legend?
With the added information, I'd do something more like Vtarget=35.4; [files, path] = uigetfile ('.xlsx', 'MultiSelect', 'on');...

5年以上 前 | 0

| 採用済み

回答済み
How to fix/steady the position of a counter in plot title.
Use a fixed-width format string to build the string to display... title(num2str(t1(3)*1000,'Simulation time = %8.3f ms')) t1 h...

5年以上 前 | 0

回答済み
Bring some signals to the same start value and end value
Presuming it is to just stretch the shorter to the same time as the longest, something like: y1=randn(size(t1)); Y1=movmean(y1,...

5年以上 前 | 0

回答済み
How to get specific points for certain value from multiple excel files and insert them into the figure as legend?
t=array2table(data,'VariableNames',{'Time','P1','P2','V','S'}); Vtarget=35.4; ix=interp1(t.V,1:height(t),35.4,'nearest') ix =...

5年以上 前 | 0

回答済み
How to change cell colors in uitable
You didn't follow the instructions given at the linked-to Answer. The 'BackgroundColor' property applies to the whole table; yo...

5年以上 前 | 0

| 採用済み

回答済み
How can I read multiple mat files and perform ttest2 function?
Arrange the name convention so they will sort in the desired sequence and can process by twos -- then d=dir(fullfile('directory...

5年以上 前 | 0

| 採用済み

回答済み
Error using ==> asind Argument should be real.
Working as documented... ACOSD() Description Y = acosd(X) returns the inverse cosine (cos-1) of the elements of X in degree...

5年以上 前 | 1

回答済み
what is the easiest way to reduce the lines in the code below?
data=csvread('flowrate.csv'); % Solution 1: Eliminate unwanted column data(:,6)=[]; % Solution 2: Keep desired columns dat...

5年以上 前 | 1

| 採用済み

回答済み
Plot specific columns in cell array
for i=1:numel(c28_20chs) hL(i)=plot(c28_20chs{i}(:,3),c28_20chs{i}(:,4)); if i==1, hold on; end if isempty(c28_20chs(i)...

5年以上 前 | 0

| 採用済み

回答済み
Plot not displaying x axis correctly?
Show us code to prove it, but, from the symptom described you wrote something like: x=-7:7; y=yourfunction(x); plot(y) which...

5年以上 前 | 0

| 採用済み

回答済み
or() in categorical variable
Because >> or(1,2) ans = logical 1 >> You're apparently looking for >> ismember(financial_status,[1,2]) ans = ...

5年以上 前 | 0

| 採用済み

回答済み
Retrieving Data from User using data tables in Matlab?
gasesab.Gases=categorical(gasesab.Gases); % turn into categorical variable inGas=listdlg('ListString',gasesab.Gases, ... ...

5年以上 前 | 0

| 採用済み

回答済み
Average vector of an array
https://www.mathworks.com/help/matlab/ref/mean.html Look at first example

5年以上 前 | 0

回答済み
Please explain what this error is...
That's pretty straightforward problem and the error is quite simple to fix -- Your function definition line is function [eq1,e...

5年以上 前 | 1

| 採用済み

回答済み
My polyfit function is displaying NaN
>> log10(0) ans = -Inf >> You can't do that!!! plot() and friends silently ignore NaN, +/-Inf so you don't see the zero ...

5年以上 前 | 0

回答済み
Object oriented Programming problem
Don't need to save in the function with that name, just the output variable name chosen for the return value in the function def...

5年以上 前 | 1

回答済み
I want to Display two matrices next to each other with some space between them
disp(table(Iapp,I,'VariableNames',{'Approximated','Exact'})) Salt to suit...

5年以上 前 | 1

| 採用済み

回答済み
Trying to print a vector.
fprintf(doc,['k0 = ' repmat('%.3f ',1,numel(k0)) '.'],k0);

5年以上 前 | 1

| 採用済み

回答済み
How to import Table and column header from two diffrent files?
W/o an example to confirm but from the description alone something like: tData=readtable('thedatafile.csv'); hdrs=readcell('th...

5年以上 前 | 1

| 採用済み

回答済み
Change colors of individual strings of a figure
Well, it'll take a fair amount of detailed coding, but it can be done...as a crude illustration try the following code... close...

5年以上 前 | 1

| 採用済み

回答済み
Why is readcell not functioning as expected?
If the creating and reading routines don't have some sort of semaphore arrangment to let the one know the file is closed it's po...

5年以上 前 | 0

回答済み
Axis ticks and colorbar labels in bold (heatmap)?
Another case where TMW is too clever by far in creating an opaque graphics object -- you have to use the hidden properties to fi...

5年以上 前 | 5

| 採用済み

回答済み
Round Datetime to certain minutes
interp1 will work... dt=datetime(2020,11,18,00,1+[0:30].',0); % sample datetime array dt20=datetime(2020,11,17,0,[20:30...

5年以上 前 | 0

| 採用済み

回答済み
How do i add a seed
See <Controlling-random-number-generation> for discussion and links to rng function if it is needed to modify default seed to be...

5年以上 前 | 0

回答済み
How to read gaps from an Excel in MATLAB
It's readmatrix probably that's the problem as it is designed for matrix input and you have what looks like two (or several) mat...

5年以上 前 | 0

| 採用済み

さらに読み込む