Beantwortet
I am trying to setup a serial communication with a optical power meter and I am not able to read the returned string.
"I cant turn it off on the keypad...." I'd be pretty sure there is a place in the menu system given that the vendor manual says...

4 Monate vor | 0

| akzeptiert

Beantwortet
Bar chart from Excel with hidden columns
opt=detectImportOptions('yourfile.xlsx'); % base import options object opt.SelectedVariableNames=opt....

4 Monate vor | 0

Beantwortet
Import numpy and scipy (maybe through Anaconda) in Matlab
No joy regarding Python, but to get to the desired end result, see the <FEX Submittal> that returned the identical test statisti...

4 Monate vor | 1

Beantwortet
Call a Python function inside a MATLAB loop
Using <FEX Submittal> with your example dummy data, it generated the exact same statistic without all the mucking around with Py...

4 Monate vor | 1

Beantwortet
Size of the left side different from the right side
function [PersonalSPQ,PersonalSPAns] = PersonalSPQforResponder(SPAnsVector) PersonalSPQ=zeros(1,6); PersonalSPAns=zeros(1,...

4 Monate vor | 0

Beantwortet
How to change xlim to specific range only?
a=readmatrix('output1.xlsx','Sheet','final graph'); % xlsread has been deprecated cols2plot=[2:5]; ...

4 Monate vor | 1

Beantwortet
Figure changes during export
exportgraphics(ax,output_filename); plot([post_x(f),pext(h,1)],[post_y(f),pext(h,2)],'r-') The exportgraphics call is ...

4 Monate vor | 0

| akzeptiert

Beantwortet
How to receive an full binary data using mqtt callback function
mqttclient and subsequent subscribe shows the callback function is to read the subscribed-to channel and the input function is a...

4 Monate vor | 0

Beantwortet
Changing color in legend for grouped bar graph and Minimizing Concise Code
MAX=[200, 900, 1200, 2000]; % a max to generate sample data MIN=[ 50, 600, 900, 1800]; % and a min for i=1:numel(MAX)...

4 Monate vor | 1

Beantwortet
Thermal distribution - Problem with horzcat and dimensions of a plate
The second is trivial to diagnose; only you will be able to know what is intended in order to fix it correctly for the model you...

4 Monate vor | 0

Beantwortet
Replacing one line (or one part of a line) in a text file
FilePath='C:\Program Files\Teledyne DALSA\Sapera\CamFiles\User'; FileName='myCamera.ccf'; FQName=fullfile(FilePath,FileName); ...

4 Monate vor | 0

| akzeptiert

Beantwortet
How to make a specific bar to be hatched with a specific color
x=[1,2,3,4,5]; y1=[0.25 1.14 2.20 0.21 1.09 2.16 ; 0.48 2.26 4.40 0.42 2.20 4.34; 0.72 3.38 6.58 0.74 3.27 5.86 ;1.01 4.56 ...

4 Monate vor | 0

Beantwortet
Issues in Running VBA macros programmatically from Matlab
Just ran a simple test here and no problems... I have had issues in the past with the new MS security settings are much more ag...

4 Monate vor | 0

| akzeptiert

Beantwortet
How to Sort Matrix Rows from Highest to Lowest
It's not clear about B, but A = cell(3,2); A(:,1)=cellstr("D"+[1:3]); A(:,2)={5;15;10}; A=sortrows(A,2,'descend') B=10+[A{:...

4 Monate vor | 1

Beantwortet
how to convert or generate prn files to xlsx files
More generically, but the same idea ROOT='C:\Users\vzmglb\Desktop\29july2024'; % set a root for the data files d=dir(fullfile...

4 Monate vor | 0

Beantwortet
I want to make curve fitting to these points
The top and bottom are identical pairs above and below the mean; hence when/if you fit the whole dataset, the single line that b...

4 Monate vor | 0

| akzeptiert

Beantwortet
how to obtain coefficients and other data from a curve fit object, of the interpolant type, using linear method?
The piecewise interpolants don't have a single set of coefficients and the object is closed for detailed inspection by design. ...

4 Monate vor | 0

Beantwortet
Creating a Matrix Output from Element Integration Inside Matrix
Rereading the Q? title, I guess the above supposition I thought an error is actually what you're looking to do. If that is the ...

4 Monate vor | 0

Beantwortet
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]} {[ -...

4 Monate vor | 0

| akzeptiert

Beantwortet
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...

4 Monate vor | 1

| akzeptiert

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

4 Monate vor | 0

| akzeptiert

Beantwortet
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...

4 Monate vor | 1

Beantwortet
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...

4 Monate vor | 0

Beantwortet
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; ...

4 Monate vor | 0

Beantwortet
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...

4 Monate vor | 0

| akzeptiert

Beantwortet
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...

4 Monate vor | 0

Beantwortet
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...

4 Monate vor | 0

Beantwortet
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 ...

4 Monate vor | 0

Beantwortet
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,...

4 Monate vor | 0

| akzeptiert

Mehr laden