Réponse apportée
How and where to place the legend box in a "tiledlayout"?
Well, you have to get creative -- the following experiment t=tiledlayout(2,2); % create a 2x2 layout nexttile, pl...

plus de 5 ans il y a | 1

Réponse apportée
Incorporating Multiple Dummy Variables In A Regression Model
Firstly, all have to be column vectors; secondly you'll have to have the same number of observations for each to build an arra...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Axis position changes when i use rectangle
I've NEVER understood (and never will understand) the annotation implementation only in absolute units of reference relative to ...

plus de 5 ans il y a | 2

| A accepté

Réponse apportée
Table - keeping specific data
You've got parentheses in the wrong place to do combination of logical addressing, but unless you only want "1" values in the ou...

plus de 5 ans il y a | 0

Réponse apportée
What Takes to Wrap MATLAB function to Use From Excel?
While I didn't answer my own Q?, I'll put an Answer here for any others who stumble over the thread and may be as confused as I ...

plus de 5 ans il y a | 0

Réponse apportée
Why won't my excel file import onto matlab?
You've got a very inefficeint and hard-to-read for a generic code format in the spreadsheet ...there's text scattered around in ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
how to create a second x axis with different intervals?
You've actually got three copies of the one axes handle (ax,ax1,ax2); you've never created a second axes. hSc=scatter(rand(10,1...

plus de 5 ans il y a | 0

| A accepté

Question


What Takes to Wrap MATLAB function to Use From Excel?
I've got a MATLAB function that pulls data from an Excel spreadsheet (actually two separate ones) and then writes after processi...

plus de 5 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
re-arrange data
>> C=[{'A'}, {'B1'}, {'X6(1.4M), X15(3M), X25(5M), X50(10M), X75(15M), X100(20M)'}, {' X6~0, X15~1, X25~2, ...

plus de 5 ans il y a | 0

Réponse apportée
How do I plot only the lower error bars?
residual = N - y_new; errorbar(x_new,y_new,residual,[]) Input arguments for four inputs are: errorbar(x,y,neg,pos) If only t...

plus de 5 ans il y a | 0

Réponse apportée
How do I combine multiple plots that use hAxes = 'NextPlot' using subplot?
%% Plot1 s=[186,561,831,864,865,870,943,997,1001,1049,1055,1063,1077, 1078, 1171,1180,1190,1494,1497,1499,1522]; hAx(1)=subplo...

plus de 5 ans il y a | 0

Réponse apportée
create a table next to a graph on figure
A table object can't be put in a figure and, AFAIK, it's not possible to redirect command window output to a figure other than b...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
loop through cell arrays and perform calculations using rows from another cell array
DATA={table(rand(4,3))}; DATA(2,1)={table(rand(4,3))}; To={table(randi(5,4,1))}; To(2,1)={table(randi(5,4,1))}; % preliminarie...

plus de 5 ans il y a | 0

Réponse apportée
How to make the average for columns in cvs folder contains (700 file) ?
Well, you've got to read the files somehow...show us what you have tried...here's the link to one way Mathworks suggests -- <im...

plus de 5 ans il y a | 0

Réponse apportée
First number that comes after a list of numbers
>> [A;interp1([-eps(1) B],[-eps(1) B],A,'next')].' ans = 1 4 8 9 20 25 >>

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
How to create an average of 2 lines on a single graph
OK, I see...the data are collected on a up- and down-slope symmetric ramp.. Try something like-- top=readmatrix('top_sensor_da...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Histogram plot isn't shown properly.
Can't change the characteristics of the image; any linear scaling of the axis will only change the numerical values, not the sh...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Averaging lots of columns at once and then combining them
"...I cannot figure out a way to take the average of each col[o]umn without manually inputing it. " Fs = 2048; ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
unique command and external Excel files
Well, there is a duplicate in the 2nd column... >> d=xlsread('x.xlsx','Sheet2'); >> arrayfun(@(i)numel(unique(d(:,i)))==numel(...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
storing a 100x100 matrix from each iteration in a single new matrix
Two options -- either use a cell array each element of which is a 2D array or a 3D array in which each plane is one time step. ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
how to average seasonly?
This one is cute... :) Unfortunately, timetable won't accept a 2D array by row so have to do things directly... t=linspace(dat...

plus de 5 ans il y a | 0

Réponse apportée
loop for cell using variable as a the input
gtm_segmentations = [34 36]; % use double array, no point in cell array here corr_time_intervals = [20 22]; ...

plus de 5 ans il y a | 0

Réponse apportée
How is it possible to slice up a table into smaller ones if the data contains floating point numbers?
ix=find(diff(XYZ(:,1))<0); will locate the breakpoints where the X coordinate resets. Remember diff(x) contains one less point...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Plot segments of an array with NaN using a for loop
Rough outline to accomplish -- ix=find(isnan(A)); ix=ix(2:end); % find the NaN sections, ignore first for i=1:numel(ix)...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Convert Text into Date Format
>> datetime('196307','InputFormat','yyyyMM') ans = datetime 01-Jul-1963 >> or >> datetime([floor(196307/100) 196307...

plus de 5 ans il y a | 1

Réponse apportée
x-axis difference between two graphs
As suggested above, interp1 works just fine... red=readtable('red.txt');black=readtable('black.txt'); % read data plot(red.Va...

plus de 5 ans il y a | 0

Réponse apportée
finding cells with positive values in a cell array with empty cells, cells of positive integers, and cells of nans
>> idx=cellfun(@(c)any(c>0),co_burst); >> whos idx Name Size Bytes Class Attributes idx ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Match timestamps from different data sets
See <matlab timetables> for the introduction to using timetables In particular for your particular Q? read the Topic on Resampl...

plus de 5 ans il y a | 0

Réponse apportée
How can I read text files and compile a joint XY Position history
Well, it does seem to "just work" -- almost. jsondecode doesn't know about the 2D array bit, but it did decode the JSON info bl...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
While loop in if and for loop
for i = 2:N if Gyr_2(i,3) Output=RBK2(Input); elseif Gyr_2(i,1) || Gyr_2(i,2) || Ori_2(i,1) || Ori_2(i,2) Output...

plus de 5 ans il y a | 0

Charger plus