回答済み
Array idx bug when resizing it
Ciro, It has to do with the way that the length function works. It will find and return the largest dimension in a 2-D array. S...

1年以上 前 | 1

| 採用済み

回答済み
App Designer Tab Duplicated with properties
MATLAB requires that you manually create a callback for each object in App Designer. I say manually, but this is simply done by ...

1年以上 前 | 0

回答済み
Reading csv files ignoring header info and text in between
Iroquois, The line numbers that you are referencing do not quite match up with your descriptions, and is making your needs a bi...

1年以上 前 | 0

| 採用済み

質問


Launch a custom App Designer application when opening a file.
I am looking for a way to program my data files, that I generate and save via a custom App Designer application, in such a way t...

1年以上 前 | 0 件の回答 | 0

0

回答

質問


Uitable editable cells not updating at first key value
I have a uitable setup that allows the user to enter values in one of its columns. However, the issue is that MATLAB appears to ...

2年弱 前 | 1 件の回答 | 0

1

回答

回答済み
Addition of 2 matrices with different dimensions
In this instance your are describing, MATLAB is assuming element-wise addition between the rows and columns. Where Where, x = ...

2年弱 前 | 1

| 採用済み

回答済み
How do I get a function in a for loop so it applies it to an entire table?
A relatively general approach to extract max values by year for each table variable (stations in this case) assuming the first v...

2年弱 前 | 0

回答済み
Add vectors in loop
I am certain that there is a much better method using vectorized indexing, but without seeing an example of the values in TimeSe...

2年弱 前 | 0

| 採用済み

回答済み
How can I hide the App Designer Slider Control's built in label programmatically?
In App Designer the label handles are created in conjunction with, but separately from the main object. The handles for the labe...

2年弱 前 | 0

| 採用済み

回答済み
Create multiple files via for loop
You can use uigetfile to easily select mutliple files and make the filename acquisition process a little more simple. % Prompts...

2年弱 前 | 0

回答済み
How to make 2 gui sharing the same handles structure
If you are using GUIDE to build your applications, then my suggestion would be to create a separate "Parameters" GUI application...

2年弱 前 | 1

| 採用済み

回答済み
How to format a matlab program to be useable by the application compiler?
It depending on how your code is written and your intentions for using it as an executable. Mostly likely you will need to have ...

2年弱 前 | 0

回答済み
Export a Cell as a text file with two delimters
Try the following: % Converts the cell array to a string array, then joins the strings using a comma-tab delimiter strjoin(str...

2年弱 前 | 0

回答済み
Convert Text into Date Format
Try the following: % Code works with either a string or numerical input str = '196307'; datestr(datenum(str,'yyyymm'),'mmmm y...

2年弱 前 | 1

回答済み
How to take 2D mean ignoring nan values using cellfun?
Niky, My previous suggestion did not fully look at the input requirements for 2D usage of std. The following revision should ac...

2年弱 前 | 0

回答済み
How to take 2D mean ignoring nan values using cellfun?
Try the following: a = mat2cell(A,dimSpec1,dimSpec1); % calculating standard deviation in segments sigma = cellfun(@(x) std...

2年弱 前 | 0

回答済み
Assigning NaN to certain values
A slightly more simple approach: Temp(round(Temp,4)<=-177.57)= NaN;

2年弱 前 | 0

回答済み
Replace the diagonal with NaN in this 5x5 matrix
Another approach to this if you know that your original matrix will always be a square matrix. You can use the following: a(eye...

2年弱 前 | 0

| 採用済み

質問


Predetermine axis limits without plotting
I have a very large number of data sets (blocks) that I am currently extracting the min and max values from and plotting the res...

2年弱 前 | 1 件の回答 | 0

1

回答

回答済み
Appdesigner Print Screen Problem - Appdesigner is a disappointment!
So after a bit more digging around I found exportapp(fig,filename), which does exactly as needed.

約2年 前 | 0

回答済み
Appdesigner Print Screen Problem - Appdesigner is a disappointment!
Baha411, I have been trying to find a solution to the same issue. I was able to save my figure to an image file perfectly in GU...

約2年 前 | 0

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

3年弱 前 | 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...

3年弱 前 | 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}{...

約3年 前 | 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...

約3年 前 | 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...

約3年 前 | 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...

約3年 前 | 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^...

約3年 前 | 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. ...

約3年 前 | 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...

約3年 前 | 1

さらに読み込む