Beantwortet
Compiled version not working because of path
If you are certain that the image you are looking for is always going to be on the Desktop and your OS is Win10, you can try the...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
another way to break without using the command 'break'
To stop the while loop you need to make sure that none of the conditions are met, else it will keep running. By changing || to &...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Problem with Toggling Invisibility of Edit Text Box
With App Designer you need to look at the Object's value property as you are doing. However, it will return a logical value. If ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Recreate Matlab figure in Excel?
You can always use ActiveX (this will be phased out in a future version of MATLAB) to build plots directly in your Excel file. H...

fast 3 Jahre vor | 0

Beantwortet
Read only numerical value or seperate data using deliminater
Assuming that you ultimately want to extract the date/time and resistance values, and assign them to separate variables, the fol...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Extracting second number after comma within parenthesis
Assuming that the number will always be in scientific notation, then the following should work. TOC = regexp(str,'(?<=\(.*?,)\d...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
Using strcmp with multiple inputs
You can use strcmpi, which is a non-case-sensitive version of strcmp. B = find(strcmpi(rw(:,3),'boskalis westminster dredging l...

fast 3 Jahre vor | 0

Beantwortet
Modify Strings in cell array according to pattern
Let me know how this works for you. B = {'C3H7O';'C2H7O2';'C2H7O2+';'C4H5O';'C4H5O';'C3H3O2';'';'C4H7O';'C3H5O2';'C3H7O2';'C2H5...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Problems with min and max functions
Since you are defining your function as having a input x, you do not need to redfine it within your function. You can also achie...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Modify Strings in cell array according to pattern
I am sure that there is a much more elegant method using just regular expressions, but the following should give you what you ar...

fast 3 Jahre vor | 0

Beantwortet
How do I construct this function?
The following should accomplish what you are asking. function TF = issquare(A) % Verifies that A is a numerical matrix with ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Output argument ‹variable› (and maybe others) not assigned during call to ‹function›
Currently, you have only decleared pdf as an output argument at the start of your function, but have neglected to assign a value...

fast 3 Jahre vor | 0

Beantwortet
matlab legend dotted lines
Without knowing whether your x and y inputs used in the plot function are vectors or arrrays it is hard to derive a working solu...

fast 3 Jahre vor | 0

Beantwortet
How can I subplot 3 graphs with errors barr and different characteristics?
Replace the lines containing the subplot functions with the following: ... subplot(3,1,1) ... subplot(3,1,2) ... subplot(3...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
"surf" overwrites axis properties
Try reordering your properties so that they are assigned after you use the surf function. fig = figure; ax = axes('Parent',fig...

fast 3 Jahre vor | 0

Beantwortet
App Designer KeyPress callback for a Tree
Chris, As you mentioned, App Designer Trees do not yet have a KeyPress callback. While the UIFigure does have this callback, th...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Efficient matrix operation: how to avoid for loop
Roberto, this should help with consolidating your code as well as improving the overall performance. Benchtests that I ran were ...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
Matlab App Designer: Update plot during loop in a function
Assuming that your plot function is part of the while loop and you have the hold off, then you might try using pause and/or draw...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Adding values of Columns in a matrix to create another matrix (for loop)
Anna, if you are trying to multiple two 1x25 vectors element-wise then try using a period in front of the multiplication operato...

fast 3 Jahre vor | 0

Beantwortet
How can I find the average of certain rows in a column depending on the value of another column?
I may not completely understand the problem statement or the splitapply function, but it does not appear that the solution provi...

fast 3 Jahre vor | 0

Beantwortet
Conditional mean for a matrix (calculate the mean ignoring the negative numbers)
Use something similar to the below example A = [-1, 2, 4 3,-1, 5 -1, 3, 4]; mean(A(A>=0))

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Histogram xlabel, ylabel, and title.
Paul, the order that you are calling the functions is incorrect. You need to create the histogram plot prior to assigning labels...

fast 3 Jahre vor | 3

| akzeptiert

Beantwortet
Saving output values from a function into an array (to plot later)
If your function is returning scalar values that are being overwritten during each iteration of your for-loop, try the following...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Area Under Curve and above X axis only, and between x axis limits.
If you are trying to determine the area under the curve between the frequencies of 1 Hz to 6 Hz for all y-values greater than 0,...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
I don't know why hold on wont work- it only produces one graph with one model and not both on one graph
Amber, it looks like you are creating a figure twice and only applying hold on to the first, while plotting to the second. Try p...

fast 3 Jahre vor | 0

Beantwortet
How to skip some strings in a text file
If you do not have a set number of header lines, but know the content of the last header line, you can read a portion of the fil...

mehr als 3 Jahre vor | 0

Beantwortet
Why is this giving me an error message when trying to use trapz.
A more concise aproach. B = 18.6; step = 0.5; tmax = 90; npas = tmax/step+1; U = 60; fun3 = @(s) (0.0081*(exp(-0.0058.*s))...

mehr als 3 Jahre vor | 0

Beantwortet
Efficiently add cell value from a matrix row based on corresponding index to another matrix row
It looks as if every other column of B is a row index corresponding the the rows of A. It also appears that C consists of pairs ...

mehr als 3 Jahre vor | 1

Frage


How can I invoke a function from within App Designer when using a DeleteFcn or CloseRequestFcn from a MATLAB figure that is separate from the App GUI?
I am trying to find a work around to the lack of axes callback usage from within an App Deisnger axes. Ultimately, I want to ass...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort