답변 있음

keep scientific notation in plot title

If you want a specific notation you can enforce that with the sprintf function. Otherwise Matlab will _automagically_ pick a for...

keep scientific notation in plot title

If you want a specific notation you can enforce that with the sprintf function. Otherwise Matlab will _automagically_ pick a for...

9일 전 | 0

답변 있음

Unable to perform assignment because the left and right sides have a different number of elements.

tNow is a vector, so you can't store it in a scalar, which is what you are trying to do. You probably want to replace every inst...

Unable to perform assignment because the left and right sides have a different number of elements.

tNow is a vector, so you can't store it in a scalar, which is what you are trying to do. You probably want to replace every inst...

10일 전 | 0

답변 있음

Separate values in a matrix greater than 0

So like this? isFlood=water_height>0;

Separate values in a matrix greater than 0

So like this? isFlood=water_height>0;

10일 전 | 0

| 수락됨

답변 있음

HELP for Error in gui_mainfcn(sui_State, varargin {:})

You have a problem if you don't have the fig file of a GUIDE GUI. You need both the m file and the fig file. This is one of the ...

HELP for Error in gui_mainfcn(sui_State, varargin {:})

You have a problem if you don't have the fig file of a GUIDE GUI. You need both the m file and the fig file. This is one of the ...

10일 전 | 0

답변 있음

Hold on in for loop doesn't work

You are calling figure inside the loop. You need to put that outside of the loop, or make sure another way that you have a singl...

Hold on in for loop doesn't work

You are calling figure inside the loop. You need to put that outside of the loop, or make sure another way that you have a singl...

10일 전 | 0

답변 있음

principle component analysis (PCA)

Read the documentation: coeff = pca(X) returns the principal component coefficients, also known as loadings, for the n-by-p dat...

principle component analysis (PCA)

Read the documentation: coeff = pca(X) returns the principal component coefficients, also known as loadings, for the n-by-p dat...

10일 전 | 0

답변 있음

Extracting "endpoints" from a skeleton image to enable a circle to be defined.

This can probably be improved, but this will find an approximate circle. It will slightly underestimate the radius, as it tries ...

Extracting "endpoints" from a skeleton image to enable a circle to be defined.

This can probably be improved, but this will find an approximate circle. It will slightly underestimate the radius, as it tries ...

10일 전 | 1

답변 있음

Fit two data sets with 3 fit parameters, one parameter is the same

As far as I'm aware, you can only fit a single function at once, so you can try something like this: f1 = @ (p,x1) p(1)./sqrt((...

Fit two data sets with 3 fit parameters, one parameter is the same

As far as I'm aware, you can only fit a single function at once, so you can try something like this: f1 = @ (p,x1) p(1)./sqrt((...

10일 전 | 1

| 수락됨

답변 있음

Matlab system command doesn't work properly on linux platform

If you want to capture the output to a Matlab variable, you should use the second output: [status,response]=system('hostname -s...

Matlab system command doesn't work properly on linux platform

If you want to capture the output to a Matlab variable, you should use the second output: [status,response]=system('hostname -s...

10일 전 | 0

답변 있음

I had write the function for find the difference of maximum and minimum from each martix row and express it as matrix .

If you want a column instead of a row, why not transpose? And if you want both outputs, you will have to use a syntax with two o...

I had write the function for find the difference of maximum and minimum from each martix row and express it as matrix .

If you want a column instead of a row, why not transpose? And if you want both outputs, you will have to use a syntax with two o...

10일 전 | 0

답변 있음

how to run a code putting conditions on names cell

Convert the array to a 3D array: (patient,session,param_index). You can fill missing slots with NaN. That way it is just a matte...

how to run a code putting conditions on names cell

Convert the array to a 3D array: (patient,session,param_index). You can fill missing slots with NaN. That way it is just a matte...

10일 전 | 0

| 수락됨

답변 있음

How to suppress warnings when running Simulink simulation programmatically?

Unless Simulink is not playing nice, this should work: ... w=warning('off','all'); sim('rocket_sim'); warning(w); fprintf('...

How to suppress warnings when running Simulink simulation programmatically?

Unless Simulink is not playing nice, this should work: ... w=warning('off','all'); sim('rocket_sim'); warning(w); fprintf('...

10일 전 | 0

| 수락됨

답변 있음

find groups in datetime vector by date

Datetimevector=datetime([2020 2020 2020],[02 02 10],[3 3 4],[10 11 12],[0 0 0],[0 0 0]); rounded_to_day=datetime(year(Datetim...

find groups in datetime vector by date

Datetimevector=datetime([2020 2020 2020],[02 02 10],[3 3 4],[10 11 12],[0 0 0],[0 0 0]); rounded_to_day=datetime(year(Datetim...

10일 전 | 0

| 수락됨

답변 있음

Does course completion certificate will be provided for free courses?

Assuming you are talking about Matlab Academy: yes, you will be able to download a pdf with a certificate.

Does course completion certificate will be provided for free courses?

Assuming you are talking about Matlab Academy: yes, you will be able to download a pdf with a certificate.

11일 전 | 0

답변 있음

intro to programing MATLAB, Matrix

You can use the colon to index all values in a dimension: IMG(2,2,:)=[100 255 255];%assign RGB values to a pixel You can also ...

intro to programing MATLAB, Matrix

You can use the colon to index all values in a dimension: IMG(2,2,:)=[100 255 255];%assign RGB values to a pixel You can also ...

11일 전 | 0

| 수락됨

답변 있음

change the colormap of a figure using another GUI

Whenever you are working with a GUI: use explicit handles. Many functions accept handles to the affected object as an input, col...

change the colormap of a figure using another GUI

Whenever you are working with a GUI: use explicit handles. Many functions accept handles to the affected object as an input, col...

12일 전 | 0

답변 있음

about strings properties issstrprop

You forgot the 's' switch with your call to input: s= input('s: ','s'); isstrprop(s, 'alpha')

about strings properties issstrprop

You forgot the 's' switch with your call to input: s= input('s: ','s'); isstrprop(s, 'alpha')

12일 전 | 0

| 수락됨

제출됨

Wayback Machine API

This functions acts as an API for the Wayback Machine (web.archive.org).

12일 전 | 다운로드 수: 2 |

답변 있음

If else statement problem

ca is already smaller than 50 at the start of the loop, so the content of the while loop doesn't run. You could find this out...

If else statement problem

ca is already smaller than 50 at the start of the loop, so the content of the while loop doesn't run. You could find this out...

12일 전 | 0

답변 있음

The min and max function return incorrect result!

You didn't notice the exponent: max(Features) ans = 1.0e+09 * If you want to control how your data shows up in ...

The min and max function return incorrect result!

You didn't notice the exponent: max(Features) ans = 1.0e+09 * If you want to control how your data shows up in ...

12일 전 | 1

답변 있음

combining text files from separate folders to one text file using for loop

for n_file=1:3%or use dir() to find which files you have fname_max=sprintf('tmax_%d',n_file); data_max=___%read data t...

combining text files from separate folders to one text file using for loop

for n_file=1:3%or use dir() to find which files you have fname_max=sprintf('tmax_%d',n_file); data_max=___%read data t...

13일 전 | 1

| 수락됨

답변 있음

How can I replace an inline function with a anonymous function?

a=input('Insert a number: '); Example=@(x) x.^a; disp(Example(10)) Alternatively, you can use str2func to create a function h...

How can I replace an inline function with a anonymous function?

a=input('Insert a number: '); Example=@(x) x.^a; disp(Example(10)) Alternatively, you can use str2func to create a function h...

13일 전 | 0

답변 있음

Explanation of cellfun()

cellfun will apply your function to the contents of you cell array. There are 3 ways to specify the function: as a char array (...

Explanation of cellfun()

cellfun will apply your function to the contents of you cell array. There are 3 ways to specify the function: as a char array (...

13일 전 | 0

답변 있음

n nearest non NaN values

You can use fillmissing: B=fillmissing(A,'nearest');%replace NaN with nearest non-NaN value

n nearest non NaN values

You can use fillmissing: B=fillmissing(A,'nearest');%replace NaN with nearest non-NaN value

13일 전 | 0

답변 있음

Comand window answer is wrong while the values in variable are ok. the x values in comand window is repeated and not in sequence

You are printing the full arrays in your fprintf statement. You also forgot to pre-allocate your arrays, and you forgot to write...

Comand window answer is wrong while the values in variable are ok. the x values in comand window is repeated and not in sequence

You are printing the full arrays in your fprintf statement. You also forgot to pre-allocate your arrays, and you forgot to write...

13일 전 | 0

답변 있음

How to delete all repeat rows?

There is probably a more efficient way, but you can use unique() to get all first occurrences. Then you can use the second outpu...

How to delete all repeat rows?

There is probably a more efficient way, but you can use unique() to get all first occurrences. Then you can use the second outpu...

14일 전 | 0

| 수락됨