回答済み
Remove unwanted data above the line
This can be accomplished using conditional indexing and reassigning values to the blue-line data. The following example assumes ...

約3年 前 | 0

回答済み
Findpeak from the graph in specific range
[pks, locs]= findpeaks((x2(90:120)),'Npeaks',1) In your above line of code, you are indexing x2 from elements 90 through 120 an...

約3年 前 | 0

回答済み
Dot indexing is not supported for variables of this type.
It appears that you are initializing a new variable M_ at the start of your code and by default it is just an empty double-class...

約3年 前 | 0

回答済み
Scanning a txt file
Mohamad, A solution to your question has been provided in an older thread. See the link below for more details. https://www.ma...

約3年 前 | 0

回答済み
Getting mean row vector from a cell array of row vectors of the same size
It is not entire clear to me what you are trying to average. However, if I am understanding correctly, the following example att...

約3年 前 | 0

回答済み
I want to save my figure in another path. Every time I used the command save figure it saved in Desktop how I can change it
If your filename does not indicate the filepath in front of the filename, then MATLAB used your default directory location to sa...

約3年 前 | 0

| 採用済み

回答済み
Passing input variables from .txt or .xlsx or .csv into MATLAB Standalone Application
Kevin, One approach would be to create a pushbutton object with a callback to browse and import data. The following callback ex...

約3年 前 | 0

| 採用済み

回答済み
Dynamically adding to an excel sheet
It looks like your issue using the append feature has to do with your data being a table. Try using writematrix with your data a...

約3年 前 | 0

回答済み
How do I convert this string to a date ?
Try running a string replacement to remove "T" and "Z" from your string before reformatting to datetime. str = "2021-05-11T14:1...

約3年 前 | 0

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

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

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

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

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

1

回答

質問


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 ...

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

3年以上 前 | 2

| 採用済み

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

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

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

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

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

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

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

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

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

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

3年以上 前 | 0

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

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

3年以上 前 | 1

| 採用済み

質問


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...

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

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

3年以上 前 | 0

さらに読み込む