Answered

build image with pixeling effect

<https://www.mathworks.com/help/images/ref/blockproc.html> (also: you can find guidelines for posting homework on this forum ...

build image with pixeling effect

<https://www.mathworks.com/help/images/ref/blockproc.html> (also: you can find guidelines for posting homework on this forum ...

1 day ago | 0

Answered

function that outputs a matrix with matrix elements referenced explicitly

function [temp, elevation, sec] = func(arg) ... end You may also want to have a look at |varargin|, |varargout|, |nar...

function that outputs a matrix with matrix elements referenced explicitly

function [temp, elevation, sec] = func(arg) ... end You may also want to have a look at |varargin|, |varargout|, |nar...

1 day ago | 1

| accepted

Answered

How can I plot several graphs with slightly different name in a loop?

You were looking for |eval|. <https://www.mathworks.com/matlabcentral/profile/authors/3102170-stephen-cobeldick Stephen Cobeldic...

How can I plot several graphs with slightly different name in a loop?

You were looking for |eval|. <https://www.mathworks.com/matlabcentral/profile/authors/3102170-stephen-cobeldick Stephen Cobeldic...

1 day ago | 0

| accepted

Submitted

Wayback Machine API

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

4 days ago | 4 downloads |

Answered

It is possible to rebuild a 3D surface from its 2D slices?

Yes. This is how the result from a segmentation on a CT-scan or MRI are sometimes exported to other programs. If you need a m...

It is possible to rebuild a 3D surface from its 2D slices?

Yes. This is how the result from a segmentation on a CT-scan or MRI are sometimes exported to other programs. If you need a m...

6 days ago | 1

Answered

How do I select and mark points and calculate angle and distance between them

What have you tried so far? The function |getpts| should be of help here. You need to plot the numbers separately, but otherw...

How do I select and mark points and calculate angle and distance between them

What have you tried so far? The function |getpts| should be of help here. You need to plot the numbers separately, but otherw...

7 days ago | 0

Answered

Plot the same function several times in one go (Random walk)?

You should always include a link to the old question, so people can look there for context. Of course it is always best to use v...

Plot the same function several times in one go (Random walk)?

You should always include a link to the old question, so people can look there for context. Of course it is always best to use v...

7 days ago | 0

| accepted

Answered

Frequency histogram for selected values in a vector

You can use logical indexing to filter your data: LowWindData=data(WindSpeed<4); histogram(LowWindData) See |doc hist...

Frequency histogram for selected values in a vector

You can use logical indexing to filter your data: LowWindData=data(WindSpeed<4); histogram(LowWindData) See |doc hist...

7 days ago | 0

| accepted

Answered

Protecting the sub system

Why do you want to hide it? Personally I dislike it when people do that. But putting that to the side: googling on 'obfuscate...

Protecting the sub system

Why do you want to hide it? Personally I dislike it when people do that. But putting that to the side: googling on 'obfuscate...

8 days ago | 0

Answered

skip legend entries while plotting data

I use multiple calls to |plot|, so I can get a list of handles, which you can then use in the call to |legend| h=[]; h(1...

skip legend entries while plotting data

I use multiple calls to |plot|, so I can get a list of handles, which you can then use in the call to |legend| h=[]; h(1...

8 days ago | 0

Answered

How do you add a 0 in front of single digit numbers in a numerical array?

|num2str|, |fprintf| and |sprintf| all have options to specify a format when converting a numeric value to a string. a=num2...

How do you add a 0 in front of single digit numbers in a numerical array?

|num2str|, |fprintf| and |sprintf| all have options to specify a format when converting a numeric value to a string. a=num2...

8 days ago | 0

Answered

Simple question regarding bar plot with categorical data

The problem is not in |bar|, but in |categorical|. I can't find in the doc how to preserve order (with |unique| I know there is ...

Simple question regarding bar plot with categorical data

The problem is not in |bar|, but in |categorical|. I can't find in the doc how to preserve order (with |unique| I know there is ...

12 days ago | 0

Answered

syntax question-- how to reference a file based on same starting file name?

Matlab helps you a lot with data type conversion, but it doesn't go all the way. You tried to concatenate a numeric value with a...

syntax question-- how to reference a file based on same starting file name?

Matlab helps you a lot with data type conversion, but it doesn't go all the way. You tried to concatenate a numeric value with a...

13 days ago | 0

Answered

Append cell column to a matrix

You can't. A possible workaround is converting the whole matrix to a cell matrix (for which you can use the |num2cell| function)...

Append cell column to a matrix

You can't. A possible workaround is converting the whole matrix to a cell matrix (for which you can use the |num2cell| function)...

14 days ago | 0

Answered

how to put an if statement within for loop

Time for a pure guess: you want to ignore values in the 250-255 range and calculate the mean over the remaining data? month...

how to put an if statement within for loop

Time for a pure guess: you want to ignore values in the 250-255 range and calculate the mean over the remaining data? month...

14 days ago | 1

| accepted

Answered

How to put the y axis from 10^-5 to 10^0

<https://www.mathworks.com/help/matlab/ref/semilogy.html |semilogy|> or <https://www.mathworks.com/matlabcentral/answers/279106-...

How to put the y axis from 10^-5 to 10^0

<https://www.mathworks.com/help/matlab/ref/semilogy.html |semilogy|> or <https://www.mathworks.com/matlabcentral/answers/279106-...

14 days ago | 0

Answered

Can I install a single license on a PC and a Mac if I don't use them simultaneously?

Based on <https://www.mathworks.com/matlabcentral/answers/158611-matlab-home-license-on-multiple-computers this thread>, I think...

Can I install a single license on a PC and a Mac if I don't use them simultaneously?

Based on <https://www.mathworks.com/matlabcentral/answers/158611-matlab-home-license-on-multiple-computers this thread>, I think...

15 days ago | 0

Answered

How to write a function to test for positive or negative numbers

You can find guidelines for posting homework on this forum <https://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-he...

How to write a function to test for positive or negative numbers

You can find guidelines for posting homework on this forum <https://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-he...

15 days ago | 0

Answered

How to add text or string in App Designer

It sounds like <https://www.mathworks.com/help/matlab/ref/uicontrol.html |uicontrol('Style','text')|> will do the trick.

How to add text or string in App Designer

It sounds like <https://www.mathworks.com/help/matlab/ref/uicontrol.html |uicontrol('Style','text')|> will do the trick.

15 days ago | 0

Answered

Hi every one! I just tried my Matlab to fill the Jacobi method in basic by following every letters in manual Matlab book, but that still has an error. Can anyone tell me about some technician methods that I might be missing.

You can see the orange underlining. This means there is likely some error or inefficiency in your code. This is called an m-lint...

Hi every one! I just tried my Matlab to fill the Jacobi method in basic by following every letters in manual Matlab book, but that still has an error. Can anyone tell me about some technician methods that I might be missing.

You can see the orange underlining. This means there is likely some error or inefficiency in your code. This is called an m-lint...

15 days ago | 0

Answered

How do i change indexing values

Just a pure guess: attendenceValues(1:3)=attendenceValues(2:4); This will remove the first entry and replicate the last ...

How do i change indexing values

Just a pure guess: attendenceValues(1:3)=attendenceValues(2:4); This will remove the first entry and replicate the last ...

16 days ago | 0

Answered

install Matlab on two differents computer

This depends on the specific license type. You should be able to find this out via the <https://www.mathworks.com/licensecenter/...

install Matlab on two differents computer

This depends on the specific license type. You should be able to find this out via the <https://www.mathworks.com/licensecenter/...

19 days ago | 0

| accepted

Answered

Get data from plot at specific points not available in the original data.

What you want is impossible without fitting a function to your data. This can be achieved in many ways, for example by fitting a...

Get data from plot at specific points not available in the original data.

What you want is impossible without fitting a function to your data. This can be achieved in many ways, for example by fitting a...

19 days ago | 0

Answered

how to combine several graph becoming one (different length)

I would advise two things: # Rethink your data structure. When there is a number in a variable name, that usually means a |ce...

how to combine several graph becoming one (different length)

I would advise two things: # Rethink your data structure. When there is a number in a variable name, that usually means a |ce...

19 days ago | 0

Answered

How to split the name in to two cells

Easy to solve with looping through the list from the end: for n=length(c):-1:1 idx=strfind(c{n},' '); if ~ise...

How to split the name in to two cells

Easy to solve with looping through the list from the end: for n=length(c):-1:1 idx=strfind(c{n},' '); if ~ise...

20 days ago | 1

Answered

How to use for loop inside switch case?

If you really insist on a |for|-loop, you can use curly brackets. Most times there will be a better solution for this, which wil...

How to use for loop inside switch case?

If you really insist on a |for|-loop, you can use curly brackets. Most times there will be a better solution for this, which wil...

21 days ago | 0

Answered

Creating a 50x50 3D matrix composed of 2x1 vectors

Have a read <https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answe...

Creating a 50x50 3D matrix composed of 2x1 vectors

Have a read <https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answe...

24 days ago | 0

Answered

Callback Function for update plot with multiple functions

If that |k| should contain the value of the slider, make sure the slider exist before the first plot and the use |k=get(b,'Value...

Callback Function for update plot with multiple functions

If that |k| should contain the value of the slider, make sure the slider exist before the first plot and the use |k=get(b,'Value...

24 days ago | 0

Answered

file selection gui element

Have you looked at |uigetfile|? Sounds like that does exactly what you need. Just write a callback around it.

file selection gui element

Have you looked at |uigetfile|? Sounds like that does exactly what you need. Just write a callback around it.

24 days ago | 0