Answered

Live script under Ubuntu 18.04

It appears that you are running MATLAB R2018a on Ubuntu 18.04 which is not compatible according to <https://www.mathworks.com/co...

Live script under Ubuntu 18.04

It appears that you are running MATLAB R2018a on Ubuntu 18.04 which is not compatible according to <https://www.mathworks.com/co...

2 years ago | 0

Answered

movie2avi has been removed

As you mentioned, movie2avi has been deprecated and instead replaced with VideoWriter. Can you verify if getframe CDATA is c...

movie2avi has been removed

As you mentioned, movie2avi has been deprecated and instead replaced with VideoWriter. Can you verify if getframe CDATA is c...

2 years ago | 1

Answered

How can I import a lzf compressed HDF5 dataset in Matlab?

As of R2015a, MATLAB upgraded to HDF5 1.8.12 and thus now supports reading HDF5 datasets via the new dynamically loaded filter f...

How can I import a lzf compressed HDF5 dataset in Matlab?

As of R2015a, MATLAB upgraded to HDF5 1.8.12 and thus now supports reading HDF5 datasets via the new dynamically loaded filter f...

3 years ago | 1

| accepted

Answered

How do I pull the specific data I need from a text file?

You can probably write your own parser and go through each line until you stumble upon the 'x' and 'y' parameters. Collect the d...

How do I pull the specific data I need from a text file?

You can probably write your own parser and go through each line until you stumble upon the 'x' and 'y' parameters. Collect the d...

3 years ago | 0

Answered

How can I merge and align multiple picture in one picture?

Hi Sungwoo, I would suggest trying out the combination of the following: # Create a montage of the multiple pictures. You ...

How can I merge and align multiple picture in one picture?

Hi Sungwoo, I would suggest trying out the combination of the following: # Create a montage of the multiple pictures. You ...

3 years ago | 0

Answered

How can I make this matrix function?

This is an example of your use case on a 2-D matrix. The same is scalable for a 3-D matrix. X = rand(5) ...

How can I make this matrix function?

This is an example of your use case on a 2-D matrix. The same is scalable for a 3-D matrix. X = rand(5) ...

3 years ago | 0

Answered

Generate a square map by using world map.

The reason you get a conic shape is because of the 'worldmap' syntax below which sets the latitude and longitude limits. w...

Generate a square map by using world map.

The reason you get a conic shape is because of the 'worldmap' syntax below which sets the latitude and longitude limits. w...

3 years ago | 0

Answered

I can't understand what is 'Windows user name'.

* The fastest way to get your Login Name is from a Windows Command Prompt: * Locate the search field, on Windows 10 this is in ...

I can't understand what is 'Windows user name'.

* The fastest way to get your Login Name is from a Windows Command Prompt: * Locate the search field, on Windows 10 this is in ...

3 years ago | 1

Answered

Looking for empty spaces in input array from excel

You can use the *find* command: c = {[5 5 5],1,1,1,1,1,1} indx = find([c{:}] == 1) c = 1×7 cell array ...

Looking for empty spaces in input array from excel

You can use the *find* command: c = {[5 5 5],1,1,1,1,1,1} indx = find([c{:}] == 1) c = 1×7 cell array ...

3 years ago | 1

| accepted

Answered

How to fill only half of the rectangle with any color?

Something which I would try is to fill the entire rectangle A. Modify the rectangle A's position properties to be halved (de...

How to fill only half of the rectangle with any color?

Something which I would try is to fill the entire rectangle A. Modify the rectangle A's position properties to be halved (de...

3 years ago | 1

| accepted

Answered

How do I go about setting up and simulating a 5G network in MATLAB?

I would suggest starting with the documentation page provided by MathWorks on 5G technology. Link: <https://www.mathworks.co...

How do I go about setting up and simulating a 5G network in MATLAB?

I would suggest starting with the documentation page provided by MathWorks on 5G technology. Link: <https://www.mathworks.co...

3 years ago | 0

Answered

how to convert text values between char arrays

Create two vectors containing the correlation between the original word and the substitution word. Then use a element-wise f...

how to convert text values between char arrays

Create two vectors containing the correlation between the original word and the substitution word. Then use a element-wise f...

3 years ago | 0

Answered

How can I extract single value out of a matrix using vectors?

A trivial implementation involves something along the lines of: A = magic(4); v = [2;3]; A = 16 2 ...

How can I extract single value out of a matrix using vectors?

A trivial implementation involves something along the lines of: A = magic(4); v = [2;3]; A = 16 2 ...

3 years ago | 0

Answered

I can't connect the mini drone parrot to my Mac

I believe that similar issues have been faced. A solution that has worked in the past is to reinstall the Parrot Minidrone Har...

I can't connect the mini drone parrot to my Mac

I believe that similar issues have been faced. A solution that has worked in the past is to reinstall the Parrot Minidrone Har...

3 years ago | 0

Answered

convert matlab notebook to m files

I do not believe you can convert a MATLAB notebook file to a .m file in an automatic manner like a MUPAD notebook. You can do th...

convert matlab notebook to m files

I do not believe you can convert a MATLAB notebook file to a .m file in an automatic manner like a MUPAD notebook. You can do th...

3 years ago | 0

Answered

New instance of matlab opening every time I double click a matlab file

Hi Luca. Did you try the second part of the solution provided in the <https://www.mathworks.com/matlabcentral/answers/93468-why-...

New instance of matlab opening every time I double click a matlab file

Hi Luca. Did you try the second part of the solution provided in the <https://www.mathworks.com/matlabcentral/answers/93468-why-...

3 years ago | 1

| accepted

Answered

How to save output in different column for each loop

I am not sure what _x(y_data)_ is. However, I will try to give you a trivial example which you can probably use to scale for...

How to save output in different column for each loop

I am not sure what _x(y_data)_ is. However, I will try to give you a trivial example which you can probably use to scale for...

3 years ago | 0

Answered

how to plot two different data in one figure

As Jan Simon pointed out, I kindly suggest you to provide more information regarding the input to the plot, your use case and su...

how to plot two different data in one figure

As Jan Simon pointed out, I kindly suggest you to provide more information regarding the input to the plot, your use case and su...

3 years ago | 0

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

3 years ago

Answered

VideoReader don't read .m4v

Both Windows Media player and videoReader support the m4v format. Since VLC is able to play but Windows Media Player is not, it ...

VideoReader don't read .m4v

Both Windows Media player and videoReader support the m4v format. Since VLC is able to play but Windows Media Player is not, it ...

3 years ago | 1

Answered

How can I save the video file from matlab videoPlayer

In the piece of code you attached above, you are using a VideoReader in order to get the individual frames and implement the car...

How can I save the video file from matlab videoPlayer

In the piece of code you attached above, you are using a VideoReader in order to get the individual frames and implement the car...

3 years ago | 0

Answered

Running command prompt via MATLAB Linux

As Jan suggested, I would suggest you to use the <https://www.mathworks.com/help/matlab/ref/system.html system> command which ex...

Running command prompt via MATLAB Linux

As Jan suggested, I would suggest you to use the <https://www.mathworks.com/help/matlab/ref/system.html system> command which ex...

3 years ago | 0

Answered

For Loop not outputting what i want

1. Let us just take the case of x1 vector. Once the *'for'* loop is done, the resultant x1 vector is a 1x15 double which means t...

For Loop not outputting what i want

1. Let us just take the case of x1 vector. Once the *'for'* loop is done, the resultant x1 vector is a 1x15 double which means t...

3 years ago | 0

Answered

How do I check if the specific line in a text file is empty or not?

A trivial implementation would be to open the file, check if the numbers exist till the 6th line and display which file is being...

How do I check if the specific line in a text file is empty or not?

A trivial implementation would be to open the file, check if the numbers exist till the 6th line and display which file is being...

3 years ago | 0

| accepted

Answered

Matlab R2017b Simulink is not opening

This is due to network configuration issue. Make sure that any Anti-Virus or Firewalls installed on the system are not blocki...

Matlab R2017b Simulink is not opening

This is due to network configuration issue. Make sure that any Anti-Virus or Firewalls installed on the system are not blocki...

3 years ago | 1

| accepted

Solved

Cell joiner

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

3 years ago

Answered

How to use so file in Matlab?

Hello Sungmin, If I understand correctly, you have a .so file along with C++ code which needs to be run in MATLAB. If that is...

How to use so file in Matlab?

Hello Sungmin, If I understand correctly, you have a .so file along with C++ code which needs to be run in MATLAB. If that is...

3 years ago | 0

Answered

One scaling colomap for various figures

Hello Michael. 1. With respect to setting limits on the colormap scale, you should check out the documentation on <https://w...

One scaling colomap for various figures

Hello Michael. 1. With respect to setting limits on the colormap scale, you should check out the documentation on <https://w...

3 years ago | 0

Solved

Summing digits

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

3 years ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

3 years ago