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

mehr als ein Jahr ago | 0

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

mehr als ein Jahr ago | 1

| accepted

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

mehr als ein Jahr ago | 0

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

mehr als ein Jahr ago | 0

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

mehr als ein Jahr ago | 1

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

mehr als ein Jahr ago | 0

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

mehr als ein Jahr ago | 0

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

mehr als ein Jahr ago | 0

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

mehr als ein Jahr ago | 0

| accepted

Question


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

mehr als ein Jahr ago | 1 answer | 0

1

answer

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

fast 2 Jahre ago | 0

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

fast 2 Jahre ago | 0

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

mehr als 2 Jahre ago | 0

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

mehr als 2 Jahre ago | 0

Answered
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}{...

mehr als 2 Jahre ago | 1

| accepted

Question


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

mehr als 2 Jahre ago | 1 answer | 1

1

answer

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

mehr als 2 Jahre ago | 0

| accepted

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

mehr als 2 Jahre ago | 0

| accepted

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

mehr als 2 Jahre ago | 0

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

mehr als 2 Jahre ago | 0

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

mehr als 2 Jahre ago | 1

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

mehr als 2 Jahre ago | 1

| accepted

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

mehr als 2 Jahre ago | 0

| accepted

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

mehr als 2 Jahre ago | 0

| accepted

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

mehr als 2 Jahre ago | 0

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

mehr als 2 Jahre ago | 0

| accepted

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

mehr als 2 Jahre ago | 2

| accepted

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

mehr als 2 Jahre ago | 0

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

mehr als 2 Jahre ago | 1

| accepted

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

mehr als 2 Jahre ago | 1

| accepted

Load more