回答済み
create an executable from name.m
To generate MATLAB executable files you need the MATLAB Compiler. From there you would use the deploytool function. https://www...

約4年 前 | 0

回答済み
Computing element by element and in degress
Is this a homework assignment? MATLAB allows you to perform element-wise calculations on arrays using dot notation prior to the...

約4年 前 | 0

回答済み
Set negative values to zero in just one column of tables in 1 x 71 cell
Assuming that each table contains a variable name of 'rrr24', then the following should work. for i=1:length(C) C{i}{C{i}{...

約4年 前 | 1

| 採用済み

質問


How to split a string of digits into groups of three from right-to-left using only regular expressions?
While I have been able to accomplish this task using a varitey of mixed functions such as regexp() and fliplr(), I am ultimately...

約4年 前 | 1 件の回答 | 1

1

回答

回答済み
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?
Ended up solving the problem myself by using a State Button to change the KeyPressFcn for the UIFigure. It requires a little tri...

約4年 前 | 0

| 採用済み

回答済み
Access .txt and .csv, edit data, error statistics
A basic method for importing only the Temp and RH data into tables filename = 'Airport.csv'; opts = detectImportOptions(filena...

約4年 前 | 0

| 採用済み

回答済み
Error using subplot (line 332) Index exceeds number of subplots.
x=[-3:0.01:3]; y=1/4*ones(size(x)); for n=1:40 ao=(1/6); an=((-1)^n)/(n^2*pi^2); bn=-(-1)^n/(n*pi)-(2)/(n^3*pi^...

約4年 前 | 0

回答済み
How to change ASCII values?
I simple way of converting characters values or character vectors to apply a numerical calculation directly to the characters. ...

約4年 前 | 0

回答済み
Plot using while loop
Sami is correct that you are running n to a higher value than the total number of elements in r. I better way to approach this p...

約4年 前 | 1

回答済み
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...

約4年 前 | 1

| 採用済み

回答済み
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 &...

約4年 前 | 0

| 採用済み

回答済み
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 ...

4年以上 前 | 0

| 採用済み

回答済み
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...

4年以上 前 | 0

回答済み
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...

4年以上 前 | 0

| 採用済み

回答済み
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...

4年以上 前 | 2

| 採用済み

回答済み
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...

4年以上 前 | 0

回答済み
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...

4年以上 前 | 1

| 採用済み

回答済み
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...

4年以上 前 | 1

| 採用済み

回答済み
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...

4年以上 前 | 0

回答済み
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 ...

4年以上 前 | 0

| 採用済み

回答済み
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...

4年以上 前 | 0

回答済み
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...

4年以上 前 | 0

回答済み
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...

4年以上 前 | 0

| 採用済み

回答済み
"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...

4年以上 前 | 0

回答済み
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...

4年以上 前 | 0

| 採用済み

回答済み
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 ...

4年以上 前 | 2

| 採用済み

回答済み
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...

4年以上 前 | 1

| 採用済み

回答済み
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...

4年以上 前 | 0

回答済み
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...

4年以上 前 | 0

回答済み
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))

4年以上 前 | 0

| 採用済み

さらに読み込む