답변 있음

Replace NaN values in a matrix with values of x positions after it

regionfill seems to be the function you're after. So: newimage = regionfill(yourimage, isnan(yourimage));

Replace NaN values in a matrix with values of x positions after it

regionfill seems to be the function you're after. So: newimage = regionfill(yourimage, isnan(yourimage));

10달 전 | 0

답변 있음

Invisible data? Where are they stored?

"from a tool" Is this tool public? Can we see its documentation or download it somewhere? If not, it's going to be difficult to ...

Invisible data? Where are they stored?

"from a tool" Is this tool public? Can we see its documentation or download it somewhere? If not, it's going to be difficult to ...

10달 전 | 1

답변 있음

change size and format of images

Assuming all the image formats (list required!) are supported by matlab, the process for each image would be: originalimage = i...

change size and format of images

Assuming all the image formats (list required!) are supported by matlab, the process for each image would be: originalimage = i...

10달 전 | 1

| 수락됨

답변 있음

Is it possible to create this colormap and corresponding colorbar in Matlab?

Note that since R2019b, you can write literal hexadecimal (and binary) numbers directly into matlab. I don't have the mapping t...

Is it possible to create this colormap and corresponding colorbar in Matlab?

Note that since R2019b, you can write literal hexadecimal (and binary) numbers directly into matlab. I don't have the mapping t...

10달 전 | 1

| 수락됨

답변 있음

app.UITable.Data assignment problem

raw(row_nummber,2) is a cell array (made of just one cell), raw{row_number, 2} is the content of that cell. As long as that con...

app.UITable.Data assignment problem

raw(row_nummber,2) is a cell array (made of just one cell), raw{row_number, 2} is the content of that cell. As long as that con...

10달 전 | 0

| 수락됨

답변 있음

Implementation of array of queues

You may want to bite the bullet and implement your own queue class in matlab as I've suggested before. Otherwise, one possibili...

Implementation of array of queues

You may want to bite the bullet and implement your own queue class in matlab as I've suggested before. Otherwise, one possibili...

10달 전 | 0

답변 있음

Export to excel from matlab

Indeed, you will end with just the data for the last file in the excel file since for each file, you overwrite what you wrote in...

Export to excel from matlab

Indeed, you will end with just the data for the last file in the excel file since for each file, you overwrite what you wrote in...

10달 전 | 0

| 수락됨

답변 있음

MATLAB Onramp: 8.1 Obtaining help

I've just discovered that there are several versions of the Onramp course (R2018b, R2019a, and R2019b). The last two have slight...

MATLAB Onramp: 8.1 Obtaining help

I've just discovered that there are several versions of the Onramp course (R2018b, R2019a, and R2019b). The last two have slight...

10달 전 | 0

| 수락됨

답변 있음

Sorting an array of numbers in descending order by using while loop

"1) Find maximum number from a given array" "2) Then use find function to detect the maximum element idexing" Have a look at t...

Sorting an array of numbers in descending order by using while loop

"1) Find maximum number from a given array" "2) Then use find function to detect the maximum element idexing" Have a look at t...

10달 전 | 0

답변 있음

lower triangular semidefinite matrix

[i, j, c] = find(tril(yourmatrix)) seems to be what you're after.

lower triangular semidefinite matrix

[i, j, c] = find(tril(yourmatrix)) seems to be what you're after.

10달 전 | 0

| 수락됨

답변 있음

Dot indexing is not supported for variables of this type.

What the error message is telling you is that in Get_VolumetricSource at the point you do: if strcmpi(load_type.case,'homogeneo...

Dot indexing is not supported for variables of this type.

What the error message is telling you is that in Get_VolumetricSource at the point you do: if strcmpi(load_type.case,'homogeneo...

10달 전 | 1

| 수락됨

답변 있음

Error using textscan, when trying to read in the first two columns of a text file

"Invalid file identifier. Use fopen to generate a valid file identifier." You will typically get this error because the file id...

Error using textscan, when trying to read in the first two columns of a text file

"Invalid file identifier. Use fopen to generate a valid file identifier." You will typically get this error because the file id...

10달 전 | 2

| 수락됨

답변 있음

Index in position 2 exceeds array bounds error

How can I fix this? By ensuring that time has at least 1 column before calling your function. At the moment, it is empty since ...

Index in position 2 exceeds array bounds error

How can I fix this? By ensuring that time has at least 1 column before calling your function. At the moment, it is empty since ...

10달 전 | 0

답변 있음

How to find the min, max and mean values of 34 timetables stored in a 1 x 34 cell and add them as extra columns to the respective timetables?

The simplest thing would be to add one column to each timetable to indicate the timetable of origin, then concatenate all these ...

How to find the min, max and mean values of 34 timetables stored in a 1 x 34 cell and add them as extra columns to the respective timetables?

The simplest thing would be to add one column to each timetable to indicate the timetable of origin, then concatenate all these ...

10달 전 | 0

답변 있음

Using cell fun to extract data from a cell containing objects

"I don't understant what a non-scalar structure implies at the moment but I'll look into it" A non-scalar structure is simply a...

Using cell fun to extract data from a cell containing objects

"I don't understant what a non-scalar structure implies at the moment but I'll look into it" A non-scalar structure is simply a...

10달 전 | 0

| 수락됨

답변 있음

How to compare elements with above and below element in a column?

Rather than coming up with your own code, I'd recommend using the filloutliers method. It doesn't have a detection method for 'm...

How to compare elements with above and below element in a column?

Rather than coming up with your own code, I'd recommend using the filloutliers method. It doesn't have a detection method for 'm...

10달 전 | 0

답변 있음

Troubles with data types: integers, doubles, scientific notation, and type casting

left = 100*round(left,2); In theory, this should indeed give you integers. Unfortunately, with floating points (double), this i...

Troubles with data types: integers, doubles, scientific notation, and type casting

left = 100*round(left,2); In theory, this should indeed give you integers. Unfortunately, with floating points (double), this i...

10달 전 | 1

| 수락됨

답변 있음

HSV Averages and SD for Image Processing Toolbox

mean like many functions in matlab operates along the first non-scalar dimension of a matrix. Your h is a 2D matrix, so the firs...

HSV Averages and SD for Image Processing Toolbox

mean like many functions in matlab operates along the first non-scalar dimension of a matrix. Your h is a 2D matrix, so the firs...

10달 전 | 1

| 수락됨

답변 있음

Help! Error using audioread (line 90) The filename specified was not found in the MATLAB path.

Since you don't specify the full path of the file, matlab looks for it in the current directory (whatever that may be) or any fo...

Help! Error using audioread (line 90) The filename specified was not found in the MATLAB path.

Since you don't specify the full path of the file, matlab looks for it in the current directory (whatever that may be) or any fo...

10달 전 | 1

| 수락됨

답변 있음

Is there any data type equivalent for queue?

The short answer is that no, unfortunately, there's no queue implemented in base matlab (there may be something hidden in one of...

Is there any data type equivalent for queue?

The short answer is that no, unfortunately, there's no queue implemented in base matlab (there may be something hidden in one of...

10달 전 | 1

답변 있음

how to apply horzcat to output arrayfun

I like the functional programming aspect of arrayfun (it clearly says: apply this function to all the elements of these sequence...

how to apply horzcat to output arrayfun

I like the functional programming aspect of arrayfun (it clearly says: apply this function to all the elements of these sequence...

10달 전 | 0

| 수락됨

답변 있음

how to combine these in an array

You're trying to vertically concatenate arrays with different number of columns (2, 1, 1, and 20), which indeed is not possible ...

how to combine these in an array

You're trying to vertically concatenate arrays with different number of columns (2, 1, 1, and 20), which indeed is not possible ...

10달 전 | 0

| 수락됨

답변 있음

How to conditionally delete columns in a cell array

If your cell array is indeed a cell array of single characters, then you'd be better off storing it as a char matrix: input = c...

How to conditionally delete columns in a cell array

If your cell array is indeed a cell array of single characters, then you'd be better off storing it as a char matrix: input = c...

10달 전 | 0

답변 있음

How to import Excel data in MATLAB in Mac

"I have read that xlsread does not work on Mac and I would like to know if someone could explain why and if there are work aroun...

How to import Excel data in MATLAB in Mac

"I have read that xlsread does not work on Mac and I would like to know if someone could explain why and if there are work aroun...

10달 전 | 1

| 수락됨

답변 있음

Why do I get "Out of memory." when reading only 16 chars?

"However what I could think of is that Matlab tries to guess the encoding" I've had discussions with Mathworks support about th...

Why do I get "Out of memory." when reading only 16 chars?

"However what I could think of is that Matlab tries to guess the encoding" I've had discussions with Mathworks support about th...

10달 전 | 1

| 수락됨

답변 있음

alternative rounding method when using histcounts

"histcounts makes a rounding decison when a value is exactly on a a bin edge." No, you misunderstand how histcounts works. As I...

alternative rounding method when using histcounts

"histcounts makes a rounding decison when a value is exactly on a a bin edge." No, you misunderstand how histcounts works. As I...

11달 전 | 0

| 수락됨

답변 있음

How can I import and then plot 16 files with .out extension using one for loop?

"Would you please tell me a general code to import any type of extension" There isn't. How you import a file completely depends...

How can I import and then plot 16 files with .out extension using one for loop?

"Would you please tell me a general code to import any type of extension" There isn't. How you import a file completely depends...

11달 전 | 1

답변 있음

access component with variable

See Generate field names from variables which also applies to class properties. for i = 1:numel(components) %prefer numel to l...

access component with variable

See Generate field names from variables which also applies to class properties. for i = 1:numel(components) %prefer numel to l...

11달 전 | 0

| 수락됨

답변 있음

Binary to decimal converter

"The problem is that when I enter digits greater than 16" You mean when you enter more than 16 digits? Indeed your code cannot...

Binary to decimal converter

"The problem is that when I enter digits greater than 16" You mean when you enter more than 16 digits? Indeed your code cannot...

11달 전 | 0

답변 있음

Mex file. error in passing data.

Your code behaves exactly as I would expect: fills elements l1 to l2 of CE with twice the first element of C. I suggest you find...

Mex file. error in passing data.

Your code behaves exactly as I would expect: fills elements l1 to l2 of CE with twice the first element of C. I suggest you find...

11달 전 | 1

| 수락됨