Community Profile

photo

Greg


245 total contributions since 2013

Contact

Greg's Badges

  • 12 Month Streak
  • Revival Level 1
  • Knowledgeable Level 3
  • Thankful Level 1
  • First Answer
  • CUP Challenge Master
  • Promoter
  • Commenter
  • Solver

View details...

Contributions in
View by

Answered
Calling a cyclic function in App Designer
I can't give you actual code examples (every situation is different). But, a probable better approach than the timer in AppDesi...

7 mesi ago | 0

Answered
How do I set numerical values to options in a dropdown menu made on appdesigner? I will have multiple drop down menus, the the options in each drop down will need their values added together and display the result.
If my assumption in the comment above is accurate, this is a perfect use of the "ItemsData" property of AppDesigner components. ...

7 mesi ago | 0

Answered
how to do bitxor operation of two 1*255 matrix
result = h1 | h3; Edit: this is logical (bit) or, not xor. As posted elsewhere, simply use the xor function.

7 mesi ago | 0

Answered
In App Designer I'm having trouble assigning a function handle to TimerFcn.
You missed the second half of the error message: "Undefined function 'Timer_func' for input arguments of type 'timer'." Apps in...

7 mesi ago | 0

| accepted

Answered
How do I assign two separate grid on check boxes for two separate plots in a gui?
You're calling grid on before forcing the active axes, which means you're going to have very unreliable behavior. You did bette...

7 mesi ago | 1

Answered
Struct contents reference from a non-struct array object
If I'm understanding correctly, some indices of your cell array contain tables, and others are empty? What do you want to happe...

7 mesi ago | 0

| accepted

Answered
How do I write a code to verify that the filename entered by the user ends in .txt?
filename = input('Enter your filename ending in .txt: ', 's'); s1 = '.txt'; s2 == 'filename' % <-- I think you're confused on ...

7 mesi ago | 1

| accepted

Answered
Why does my compiled RAND function give the same values every time I run my MATLAB-generated standalone application?
In R2013a, "getDefaultStream" was replaced by "getGlobalStream" for the RandStream. Prior to that, it generated warnings indica...

8 mesi ago | 0

Answered
How to resize figure without moving contents
Two things are actually happening. The first is somewhat nitpicky: there is no *public* property |Position| for the ToolbarStat...

9 mesi ago | 0

| accepted

Answered
Programmatically capturing screenshots of Simulink blocks and dialogs
You can import java packages into MATLAB, one of them (java.awt.* ??) includes the ability to take screenshots. I'm assuming the...

9 mesi ago | 0

| accepted

Answered
How to draw candle with dates?
First, your function cannot work with the example provided. You pass a filename then use it as a table or timetable variable. P...

9 mesi ago | 2

| accepted

Answered
How do i see the printed lines of a .exe file in Matlab?
This isn't something MATLAB can do with system calls. And it makes sense that way, because the entire point of |system| or |!| ...

9 mesi ago | 1

| accepted

Answered
Question re symbol ~
According to the documentation for <https://www.mathworks.com/help/matlab/matlab_prog/ignore-function-inputs.html Function Input...

9 mesi ago | 0

| accepted

Answered
How to shuffle two column array?
The values of |B| being in ascending order along a row has nothing to do with the randomization. It is because |A| is in order ...

9 mesi ago | 0

| accepted

Answered
How do you catalogue/index a matrix to be concatenated into a 3D matrix?
You actually had a pretty good start. The only piece of your attempt that wasn't going to work was that you weren't concatenati...

10 mesi ago | 0

Answered
Besides getting the map toolbox where can I get a copy of Boston.tif?
As you mentioned, it is included with the Mapping toolbox. The folder it lives in contains a text file describing that it came ...

10 mesi ago | 0

| accepted

Answered
Binary file reading.
Nobody can possibly answer your question: "why... unwanted stuff...?" Only the author of the binary file format can tell you tha...

10 mesi ago | 0

| accepted

Answered
How to vectorize this code to eliminate nested For loops?
Most of that is straightforward, just a couple elementwise periods for safety. Then, the hardest part is getting the logic to p...

10 mesi ago | 0

| accepted

Answered
[r,c] =min(A) not returning index values
So the documentation fairly clearly states that output one is an array containing the minimum values, and the second output is t...

10 mesi ago | 0

Answered
MATLAB Compiler Runtime License Issue
Interestingly, the documentation is not as "in your face obvious" on this question as I would have sworn it was. The entire p...

10 mesi ago | 0

| accepted

Answered
Question about "min" command.
One option is to re-compare the first output of |min| to your original matrix. Then, count how many elements match in each colu...

10 mesi ago | 0

| accepted

Answered
Why does not this program code work in the third TCP communication?
Take the |fopen| and |fclose| out of the while loop. Repeatedly opening and closing the |tcpip| obj is unnecessary, and usually...

10 mesi ago | 0

Answered
Remove my for loop using meshgrid?
Given the following code, why are |file| and |shadow| 3D? Have we left off an outer loop over dim 3? [rows, ~, ~] = size(f...

10 mesi ago | 0

Answered
I keep getting error for undefined function or variable, and I am not sure how to fix it
Post the full error text. I'm pretty sure it doesn't say line 5. |Y1| and |Dmge| might be defined in your base workspace, bu...

10 mesi ago | 0

| accepted

Answered
Print column value for lowest element in each row of an 2D array
Why do you want to |fprintf| the result? Anyway, try: fprintf('%d\n',idc);

10 mesi ago | 0

| accepted

Answered
I'm given a data set of over 7500 points (generated by an ECG) and I need to find all of the relative max and mins.
Have you tried the |<https://www.mathworks.com/help/releases/R2017b/matlab/ref/islocalmin.html islocalmin>| and |<https://www.ma...

10 mesi ago | 0

Answered
Matrix and tables fusion
Assuming a |table| output variable is acceptable: Var1 = randi(99,10,2); Var2 = randi(10,10,1); T = table(Var1,Var2) ...

10 mesi ago | 0

Answered
How to obtain radio button index in APP Designer
There are a few ways to do it, each with a different level of impact to your code. The way that requires no changes except a ne...

10 mesi ago | 0

| accepted

Question


Listening to uimenu ChildAdded event causes screen print
Does anybody know why the following code: m = uimenu(figure,'Text','ParentMenu'); lsn = addlistener(m,'ChildAdded',@(~,~...

10 mesi ago | 0 answers | 0

0

answers

Answered
what a sign for this error ?
There's not a lot to go on, but my only guess is you don't have MS Office Excel installed on a Windows machine. Without Excel i...

10 mesi ago | 0

Load more