# MP

**Content Feed**

已回答

How to run and save variables in a structures?

Thank you so much @KSSV and @Les Beckham

How to run and save variables in a structures?

Thank you so much @KSSV and @Les Beckham

2 months 前 | 0

提问

How to run and save variables in a structures?

I would like to run a matlab code using: run('filename.m'); % it contains numerous variables in it. I would like to save all t...

2 months 前 | 2 个回答 | 0

### 2

个回答提问

How to obtain mean of columns in multiple cells?

I have a cell (say "a") and it has 5X1 dimension , Class: Cell. (Shown in picture below) Each cell contains different cells, ha...

2 months 前 | 1 个回答 | 0

### 1

个回答提问

how to make figure perfectly squared?

I would like to make a perfect squared figure. When I use axis equal I still find that y-axis is stretched more than x-axis and ...

4 months 前 | 1 个回答 | 0

### 1

个回答提问

How to make a line plot with Jet colored lines?

Hi everyone! I would like to make a line plot of the attached data. There are about 64 different lines in the single plot. So,...

4 months 前 | 1 个回答 | 0

### 1

个回答提问

how to use sprintf for xticklabel?

how to print a = 0.1005:0.1:1.1005 as, 0.1, 0.2, 0.3, ... 1.0 for tickllabes? I used sprintf command but the optput is not ...

4 months 前 | 1 个回答 | 0

### 1

个回答提问

how to make a pcolor plot for a bands of y-scale in matlab?

Hi, I would like to make a pcolor plot of X (35x1 double), Y (1440x1 double) and Z (1440x34 double). the x-value is actually a...

4 months 前 | 0 个回答 | 0

### 0

个回答提问

how to import csv file containing text and empty rows as a header along with numerical data in matlab?

I am using MATLAB R2021a. I want to import a csv file with 1-7 as text header lines. But, when I import it using readtable comm...

4 months 前 | 0 个回答 | 0

### 0

个回答提问

how to import csv file with along with its headers in the matlab?

How to import a csv file like this (attached here) along with its header names? When I import this file using: cas_data_ph =...

4 months 前 | 2 个回答 | 0

### 2

个回答提问

What is LBL file format and is it possible to open it in MATLAB?

What is LBL file format and is it possible to open it in MATLAB? I have a LBL file (attached here), it contains the heading or ...

4 months 前 | 1 个回答 | 0

### 1

个回答已回答

How to find X and Y coordinates of maximum gap between curves?

@Karim: "It depends on what you mean with the gap, notice that you plot it on a logarithmic axis. As a result from a graphical p...

How to find X and Y coordinates of maximum gap between curves?

@Karim: "It depends on what you mean with the gap, notice that you plot it on a logarithmic axis. As a result from a graphical p...

4 months 前 | 0

提问

How to find X and Y coordinates of maximum gap between curves?

Please see the attached figure. In this figure, I want to find the values of X and Y coordinates where the two curve has maximum...

4 months 前 | 2 个回答 | 0

### 2

个回答提问

how to write numbers with 10^ format in matlab?

How to print 123456 as 1.2x10^5 in a matlab figure? str5 = ['CC = ' num2str(123456) ]; str = sprintf('%s',str5); annotation('...

4 months 前 | 1 个回答 | 0

### 1

个回答已回答

how to find a number in cell and make it NaN?

Thank you so much to everyone for their valuable time and efforts. It saved a lot time of mine!

how to find a number in cell and make it NaN?

Thank you so much to everyone for their valuable time and efforts. It saved a lot time of mine!

4 months 前 | 0

提问

how to find a number in cell and make it NaN?

I have a cell matrix with size 1165x1 cell. In each cell there is one value i.e. number 31 that needs to be found and made NaN. ...

4 months 前 | 3 个回答 | 0

### 3

个回答提问

How to ask matlab to find mean only if there are less than 3 NaN values?

How to ask matlab to find mean only if there are less than 2 NaN values in a given column, otherwise it should be NaN? For Exam...

4 months 前 | 1 个回答 | 0

### 1

个回答提问

How to automatically detect the patterns in the plot?

Is it possible to make a matlab code that can automatically detect the patterns in the plot? In the plot attached below, we can...

4 months 前 | 1 个回答 | 0

### 1

个回答提问

How to use string with different sizes as a text in figure?

I have three Char matrix say, S1 (1x112), S2 (1x26) and S3 (1x36), all three are different sizes. I would like to put S1, S2 an...

4 months 前 | 1 个回答 | 0

### 1

个回答提问

How to make a number NaN when its both neighbours are NaN?

I would like to find the numbers sandwiched between two NaN's and make them NaN. I have a matrix: A = [NaN 2.35 NaN 2.358 1.68...

4 months 前 | 1 个回答 | 0

### 1

个回答提问

Why does keyboard shortcuts like ctrl+A, ctrl+c, ctrl+v, ctrl+f etc. does not work on MATLAB (on Linux platform)?

Why does keyboard shortcuts like ctrl+A, ctrl+c, ctrl+v, ctrl+f etc. does not work on MATLAB (on Linux platform)? I would like ...

5 months 前 | 1 个回答 | 0

### 1

个回答提问

How to save and append variable into a matlab file?

I would like to save variable "i" in a mat file "paxt.mat". This is to be saved in the current directory. The varaible "i" vari...

5 months 前 | 1 个回答 | 0

### 1

个回答提问

How to save all the existing variables in the workspace?

I have about 30-40 variables. I need to save them all. Its difficult to type each varaible and save it? How to save all the exi...

5 months 前 | 1 个回答 | 0

### 1

个回答已回答

how to identify empty , non-empty char matrix condition?

@Stephen23: Could you please also look into my another question? https://in.mathworks.com/matlabcentral/answers/1762535-how-to-...

how to identify empty , non-empty char matrix condition?

@Stephen23: Could you please also look into my another question? https://in.mathworks.com/matlabcentral/answers/1762535-how-to-...

5 months 前 | 0

提问

How to find the nearest matrix between two matrices?

Find the nearest row matching between matrix. I have a matrix A = [2013 03 17 1 6 0]; % 1x6 double I have another matrix B...

5 months 前 | 2 个回答 | 0

### 2

个回答提问

how to identify empty , non-empty char matrix condition?

I have a matrix "A" with size 4x8 char and having values: '01:04:00' '01:03:00' ' ' '01:01:00' I want to identify th...

5 months 前 | 2 个回答 | 0

### 2

个回答已回答

how to convert hours to 'yyyy-MM-dd hh:mm:ss' format?

Yes, that did a great help.... :) Thank you so much @Stephen23

how to convert hours to 'yyyy-MM-dd hh:mm:ss' format?

Yes, that did a great help.... :) Thank you so much @Stephen23

5 months 前 | 0

提问

how to convert hours to 'yyyy-MM-dd hh:mm:ss' format?

I have time in hours from 0-72 hours (i.e. 0, 1, 2, 3,..., 72). i.e. a = 0:72; I would like to convert this hours into datestr ...

5 months 前 | 2 个回答 | 0

### 2

个回答提问

How to combine the discrete bands of x-values to a continous plot?

I require a pcolor plot showing x-values in non-linear scale. These are discrete bands with increasing values. I would like to...

5 months 前 | 1 个回答 | 0

### 1

个回答提问

How to make discrete pcolor x-axis with no gaps between datapoints?

Is it possible to make a plot of continous discrete data? Something like shown in figure below? This is a simple representation ...

5 months 前 | 2 个回答 | 0

### 2

个回答提问

How to write two variables on the x-axis and change corresponding Xlimits?

how to put two xtick labels in a plot. I have CC versus AA plot. I would like to write the corresponding values of BB on X-axis ...

6 months 前 | 0 个回答 | 0