Respondida
Selection of array elements with condition
A=[{[-0.3368 -0.0329]} ... { [-0.5666 -1.2306 -1.9879 -1.6091 -1.0889 -0.6703]} {[-0.5950 -0.7264 -0.2151]} {[ -...

alrededor de 2 años hace | 0

| aceptada

Respondida
Is It Okay to Add Semicolons After Every Expression?
Not "wrong", no. Superfluous in many instances, but not "wrong". I think you'll find that with time in grade you'll begin to l...

más de 2 años hace | 1

| aceptada

Respondida
Can you convert DatetimeRuler to DurationRuler?
Unfortunately, something like xl=ax.XLim; % retrieve current limits xl(1)=dateshift(xl(1),...

más de 2 años hace | 0

| aceptada

Respondida
can you add probability to a for loop?
Are F1, F2, ..computationally different other than the two probabilities I gather from the above? If not, encapsulate the calcu...

más de 2 años hace | 1

Respondida
How do I pull data from multiple excel spreadsheets located in the same folder?
"But I want to take all of the M18 data points and put it into one singular excel file so there will be x amount of rows for the...

más de 2 años hace | 0

Respondida
I want to plot same X axis and different Y axis like timing diagram
See stairs

más de 2 años hace | 1

Respondida
Why is detectImportOptions not sheet agnostic with a named Range?
Potential workaround/addition--- I created a rudimentary ActiveX component to query a workbook for the contained named ranges; ...

más de 2 años hace | 0

Respondida
I can't delete the file obtained with matlab
You'll have to exit and restart MATLAB, then... I've never had MATLAB keep the file handle open; Excel if using ActiveX and cra...

más de 2 años hace | 0

| aceptada

Respondida
How can I write a script to replace a specific integer value in my table, with the average of the data above and below that integer in the table
"what function could make me fill it with the expected value?" There isn't a builtin that will do that automagically, but if yo...

más de 2 años hace | 0

Respondida
Why is detectImportOptions not sheet agnostic with a named Range?
Because the whole suite for workbooks is designed around working with a single worksheet at a time; none of the functions that u...

más de 2 años hace | 0

Respondida
How can I remove a line off UIAxes on App designer in RealTime with SpeedGoat
I "know nuthink!" about Simulink but looks to me like clearScalarAndLineData just clears the present data but since the signals ...

más de 2 años hace | 0

Respondida
With a ribbon plot, how to make the ribbons go along each matrix row instead of each column?
It can be done with plot3 excepting the Q? asked specifically how to do a ribbon. X=[1:4]; Y=[0:3]; Z=[0,1,2,2; 1,2,3,3; 2,3,...

más de 2 años hace | 0

| aceptada

Respondida
Retrieving RMS of a signal with variable sample rate
Straightforward, deadahead solution would be something like y=resample(y,tx,fs); y_rms=rms(y); where y is your beginning sign...

más de 2 años hace | 0

Respondida
How to plot a line on top of the continuous wavelet transform (CWT) output?
data = xlsread('signal.xlsx','1'); % Extract the time and signal columns t = data(:, 1); signal = data(:, 2); dt = t(3) - t(...

más de 2 años hace | 0

| aceptada

Respondida
Matlab crash access violation
That's an official support/bug report issue. MATLAB shouldn't crash, but the forum volunteers don't have the inside info to be ...

más de 2 años hace | 0

| aceptada

Respondida
problem with storing in an array
In extreme_point(num, :) = [oct_i, page_i, r, c, sigma_i, 0]; the RH side is a vector of 6 elements; as written, the LH side p...

más de 2 años hace | 0

Respondida
Import and Read data with several sheets
Hard to diagnose w/o the file, but try sheets=sheetnames('Gas.xlsx'); for k=1:numel(sheets) data{k}=readmatrix('Gas.xlsx','...

más de 2 años hace | 2

| aceptada

Respondida
How to make the negative sign of y axis to be up ?
plot([-1000:100:100]); hAx=gca; hAx.YDir='reverse'; See axes documentation for all the details...

más de 2 años hace | 0

Respondida
How to get warning source
>> x(i:i) Warning: Colon operands must be real scalars. Array indices must be positive integers or logical values. >> [w...

más de 2 años hace | 1

| aceptada

Respondida
Remove NaNs from struct fields embedded in a cell array
"...when using import data" That's the problem. How about instead attaching a sample data file that creates the issue and le...

más de 2 años hace | 0

Respondida
The Output structure of a code is showing different outputs in command window and workspace
As @John D'Errico says, they're both correct only the workspace browser has unfolded the various struct content that is only dis...

más de 2 años hace | 0

Respondida
How to plot a line on top of the continuous wavelet transform (CWT) output?
From one of the examples it appears that other than (rudely) executing a clf that clears any current figure when called, it look...

más de 2 años hace | 0

Respondida
List all custom properties and add a new one with actxserver Word
That is a Word Q?, not MATLAB. See the <Word VBA Reference>. Look at the object model section and find the custom properties o...

más de 2 años hace | 0

Respondida
ismember returning false for 0.6000 == 0.6
As the doc for ismember states (albeit only in the Tips section), Tips Use ismembertol to perform comparisons between floatin...

más de 2 años hace | 0

Respondida
Style Property Not Being Recognised
What I suspect you're actually looking for here may be the uitable graphics table instead...it has many of the fancy formatting ...

más de 2 años hace | 0

Respondida
I would like to know how to make sure the latitude labels have decimals in them.
Anywhere after the axis is created...for ease of coding, save the handle to the axis object when creating it. You haven't provi...

más de 2 años hace | 0

Respondida
I have a function that adds a legend I want to make the legend group certain plots together yet so that instead of a legend with 14 entries there is a legend with 5 entries
Nsamples = 7; G=ones(1,2*Nsamples); G(1:2:5)=1; G(2:2:6)=2; G(7:2:11)=3; G(8:2:12)=4; G(13:14)=5; M={'x','+','*','s','d'}...

más de 2 años hace | 0

| aceptada

Respondida
How to assign labels to a dataset using 'signalDatastore' object?
Not at all sure about what you mean by "object helps to assign labels like imageDatastore object". signalDatastore <example> il...

más de 2 años hace | 0

Respondida
Subtract column values where leading columns have values flipped (i.e., (A,B,C1) - (B,A,C2))
load answers T T T.D=nan(height(T),1); for i=1:height(T) ix=find(all(fliplr(T{:,1:2})==T{i,1:2},2)); try T.D(i)=T....

más de 2 años hace | 0

Respondida
I am having trouble reading a txt file
In %data=textscan(fid,'%[index: 0 int_time:] %u64 %[us_int_diff: ] %s %s %s %s %s %s %s %s') you're forcing a match on a 0 in ...

más de 2 años hace | 0

Cargar más