Community Profile

photo

chrisw23


Con actividad desde 2018

1969

Programming Languages:
C#
Spoken Languages:
German

Statistics

All
  • Knowledgeable Level 3
  • 3 Month Streak
  • Treasure Hunt Participant
  • Promoter
  • Solver
  • First Review
  • First Answer

Ver insignias

Content Feed

Ver por

Respondida
Return values from figure callback
I suggest to use the lines UserData property to save your data. hLines(k).UserData = ...

alrededor de 9 horas hace | 0

Respondida
.Net DLL not working after some time
Check that the Matlab class will not be reinstantiated before the last object of this class was properly disposed. If you debug ...

alrededor de 9 horas hace | 0

Respondida
How to pick group sum values from an array
X=[1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 1 1 1 1 1]; xStr = string(X).join(""); pat = asManyOfPatter...

alrededor de 9 horas hace | 0

Respondida
Index exceeds the number of array elements. Index must not exceed 1.
use a try catch block to debug ... try Fbump(ii)=Pb(ii)/VA(ii); %this line of code is givig me the error catch ex ...

alrededor de 10 horas hace | 0

Respondida
How to make a method a global variable in a class?
You can't access 'obj.client' in function 'ApplyControl' unless you save it to your declared property. --> change your constru...

alrededor de 11 horas hace | 1

| aceptada

Respondida
Reading from COM port for 2 days
I suggest to use event based communication. Reading a fixed packet length may lead to a buffer over-/underrun due to asynchronou...

alrededor de 12 horas hace | 0

Respondida
Matlab Crash 'MCR 0 interpreter thread' 2022b whilst controlling NI-dmm IVI
This looks like a kind of custom driver installation, because I can't believe that the NI DMM .Net driver installation which is ...

19 días hace | 0

Respondida
App Designer Components Callbacks Stopped Working
You can use the component browser to link any existing callback method to your button or create a new one. Your original cal...

19 días hace | 0

| aceptada

Respondida
Attempt to program parameter sweep on model in COMSOL, using OOP in MATLAB
I suggest to use the constructor to load the model like. ... methods function obj = SimpleModel(modelFilePath) ...

19 días hace | 0

Respondida
How to create a text file with indent formatted text
I suggest to use the string data type functionality. Here's an example for Tab and new line options string(sprintf('\t')) + "my...

19 días hace | 0

Respondida
Setting up a notifier and listener in two different apps
The "displayApp" has to provide the 'dataFromDisplay' event and the mainApp can add the listener. app.myDisplayApp = displayApp...

alrededor de 1 mes hace | 0

| aceptada

Respondida
using regexp to parse specific line
lines = readlines("c:\temp\lineLog.txt") subLines = lines.split("\n").replace("\t","") dataTs = subLines(:,1).split(","); ...

alrededor de 1 mes hace | 0

Resuelto


Simpson's Paradox - Calculate correlation coefficients for groups of data
Simpson's Paradox is a statistical phenomenon where groups of data can have a characteristic while the whole data set together h...

alrededor de 1 mes hace

Resuelto


Dog Statistics
The vectors ht and wt contains the heights and weights of 20 golden retrievers. In some cases, it was not possible to make both ...

alrededor de 1 mes hace

Resuelto


Create an arrow matrix
An arrow matrix is a square matrix that contains ones on the diagonal, the last column, and last row. ...

alrededor de 2 meses hace

Resuelto


Calculating Student Grades
The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

alrededor de 2 meses hace

Resuelto


Generate this matrix
Generate the following matrix. n = 2; out = [-4 -3 -2 -1 0 -3 -2 -1 0 1 -...

alrededor de 2 meses hace

Resuelto


Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

alrededor de 2 meses hace

Resuelto


Calculate the mean of each half of a matrix
Given a matrix with an even number of columns, n, return a 1-by-2 row vector where the first element is the mean of all the elem...

alrededor de 2 meses hace

Resuelto


Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

alrededor de 2 meses hace

Resuelto


Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

alrededor de 2 meses hace

Respondida
Is it possible to generate a single pulse in a counter output channel with NI-DAQmx?
"You can accomplish this same behavior with a single counter is by setting up a continuous pulse output task with a start trigge...

2 meses hace | 0

Respondida
Automatically execute code on last folder with files
fsWatcher = System.IO.FileSystemWatcher() % see events provided by details(fsWatcher) % register for event Changed Created o...

2 meses hace | 0

Respondida
Why objects are losing reference for each other?
try this classdef Pearson < handle ... function addConnection(obj, person) obj.connections{obj.connIndex} = person; ...

2 meses hace | 1

| aceptada

Respondida
Error defining single class property in Enumeration Class
classdef PSDType enumeration DAVENPORT VON_KARMAN KAIMAL EU...

3 meses hace | 0

Respondida
write a struct to a ui table
structDef = struct("field1",0,"field2",0); % definition defaultTbl = repmat(struct2table(structDef),10,1); % de...

3 meses hace | 0

Respondida
why is my plot not showing lines
Each plot call (loop) creates a line with one point. ( debug by look at the Figure.Children.Children property or save the return...

3 meses hace | 0

Respondida
Efficient way to read variable column number data from a mixed-format text file?
try string operation performance (saved your example as text file) rawLines = readlines("example.txt"); headerId = rawLines.st...

3 meses hace | 0

| aceptada

Respondida
To link string of one .txt file to a value of another?
defLines = readlines("1.txt").replace("""","").split; rawLines = readlines("2.txt").split; defTbl = array2table(defLines,"Va...

3 meses hace | 0

| aceptada

Respondida
How create cursor bar in UIAxes of App Designer?
classdef Cursor < matlab.apps.AppBase % Properties that correspond to app components properties (Access = public) ...

3 meses hace | 0

Cargar más