Question

How to install font into MATLAB?

I have added new fonts into windows control panel --> fonts But the new fonts don't show up in MATLAB preferences

5 months ago | 0 answers | 0

Question

Select grid which to plot in docked figure window

Hi everyone, I have couple questions about docked figure window: (1) I can manually set the figure window to have a 3x4 gr...

3 years ago | 0 answers | 0

Question

Can we do something like this similar to union()?

Currently union() returns non-repeated result. But I want repeat result like the following, >> myunion([2 3 3 5], [1 3 5]) ...

3 years ago | 2 answers | 0

Question

Programmatically change wallpaper in Windows 10?

I guess this can be done in Java. So has anyone figured out calling some java script in MATLAB to do that?

4 years ago | 1 answer | 0

Question

Is it possible to get info of PDF file in MATLAB?

Hi everyone, Just wondering if it is possible for MATLAB to read a PDF file and return some information (eg. number of pages,...

4 years ago | 2 answers | 0

Question

Call Google Tiny URL API in MATLAB

Hi everyone, I am trying to call Google URL Shortener API <https://developers.google.com/url-shortener/v1/getting_started#act...

5 years ago | 1 answer | 0

Answered

How do I get rid of the K>> prompt?

You can also end up in debug mode if your matlab script or function calls _keyboard_.

How do I get rid of the K>> prompt?

You can also end up in debug mode if your matlab script or function calls _keyboard_.

5 years ago | 0

Answered

How do I test if a matrix is unitary?

Maybe you have already thought about this but decided not to use this method. Another way to test if a matrix is unitary is t...

How do I test if a matrix is unitary?

Maybe you have already thought about this but decided not to use this method. Another way to test if a matrix is unitary is t...

5 years ago | 0

Answered

I have an array of date time values. How do I separate Date and time and enter it in separate columns in excel?

>> d = datetime({'19-Apr-2016 11:29:31'; '27-Apr-2016 00:05:59'; '31-Mar-2016 18:35:46'}) d = 19-Apr-2016 11:2...

I have an array of date time values. How do I separate Date and time and enter it in separate columns in excel?

>> d = datetime({'19-Apr-2016 11:29:31'; '27-Apr-2016 00:05:59'; '31-Mar-2016 18:35:46'}) d = 19-Apr-2016 11:2...

5 years ago | 3

| accepted

Answered

Hi everyone. I want to create a new matrix using a rand function and the values of other matrix.

Are you thinking about generating uniformly distributed random integers? If yes, then you need to replace *rand* with *randi* in...

Hi everyone. I want to create a new matrix using a rand function and the values of other matrix.

Are you thinking about generating uniformly distributed random integers? If yes, then you need to replace *rand* with *randi* in...

5 years ago | 0

Answered

Not able to get fprintf to print all columns

Seems like you have not defined the variable *formatSpec*.

Not able to get fprintf to print all columns

Seems like you have not defined the variable *formatSpec*.

5 years ago | 0

Answered

translating from python to matlab

I am not sure if this helps. But starting in R2016a (or maybe even in R2015b), you can call python function from MATLAB. So you ...

translating from python to matlab

I am not sure if this helps. But starting in R2016a (or maybe even in R2015b), you can call python function from MATLAB. So you ...

5 years ago | 0

Answered

Matrix problem with script

Actually this is why I would pay $2000 for MATLAB. Let see how easy it is in MATAB. function s = swissarmyknife(A,B) s...

Matrix problem with script

Actually this is why I would pay $2000 for MATLAB. Let see how easy it is in MATAB. function s = swissarmyknife(A,B) s...

5 years ago | 0

Answered

Problem with line numbers in editor in R2016a

That is a bit odd. I have R2106a installed on my Windows PC and I get line numbers in the Editor. Close MATLAB and start MATL...

Problem with line numbers in editor in R2016a

That is a bit odd. I have R2106a installed on my Windows PC and I get line numbers in the Editor. Close MATLAB and start MATL...

5 years ago | 2

| accepted

Answered

Guidance with DFT Transform

f = 10; % 10 Hz. t = (0:2047)/100; % 100 Hz sampling rate. x = sin(2*pi*f*t); X = fft(x);

Guidance with DFT Transform

f = 10; % 10 Hz. t = (0:2047)/100; % 100 Hz sampling rate. x = sin(2*pi*f*t); X = fft(x);

5 years ago | 0

Answered

Automatically define (global) variables

If you really need to use global variable, then I would suggest using structure. Create global structure that stores all your gl...

Automatically define (global) variables

If you really need to use global variable, then I would suggest using structure. Create global structure that stores all your gl...

5 years ago | 1

Answered

how many machine can i install MATLAB ?

Assuming you are talking about Individual License, the magic number is 4. So you can install MATLAB on 4 PCs. These 4 PCs can ru...

how many machine can i install MATLAB ?

Assuming you are talking about Individual License, the magic number is 4. So you can install MATLAB on 4 PCs. These 4 PCs can ru...

5 years ago | 0

Answered

MATLAB and ErleBrain 2.0

Have you looked at the Robotics System Toolbox? It supports the Robot Operating System (ROS).

MATLAB and ErleBrain 2.0

Have you looked at the Robotics System Toolbox? It supports the Robot Operating System (ROS).

5 years ago | 0

Answered

Extracting name of variables from cell array

It will be much easier if we can turn your 'A', 'B', 'C', 'D' into 1, 2, 3, 4. For example, >> coef = [1;2;3;4]; >> comb...

Extracting name of variables from cell array

It will be much easier if we can turn your 'A', 'B', 'C', 'D' into 1, 2, 3, 4. For example, >> coef = [1;2;3;4]; >> comb...

5 years ago | 0

| accepted

Question

Email Notification in MATLAB Answers

If I am interested in one question in MATLAB Answers and I would like to get an email notification whenever a comment or an answ...

5 years ago | 1 answer | 2

Answered

I need to create all a list of all possible states

I have written my own function to do what you are asking for. The trick is to use the MATLAB function *ndgrid*. >> A = allc...

I need to create all a list of all possible states

I have written my own function to do what you are asking for. The trick is to use the MATLAB function *ndgrid*. >> A = allc...

5 years ago | 1

| accepted

Question

Fixed-Point Version of TYPECAST?

I really like the MATLAB function *typecast*. It can easily convert between 32-bit integer and vector of bytes (and vice versa)....

5 years ago | 2 answers | 0

Answered

How to simulate multiple LTE user equipments (UE) in uplink with fading channel

Hi Leonardo, On the tx side of the uplink, I am assuming that you are able to create one resource grid for one UE for one sub...

How to simulate multiple LTE user equipments (UE) in uplink with fading channel

Hi Leonardo, On the tx side of the uplink, I am assuming that you are able to create one resource grid for one UE for one sub...

5 years ago | 0

Answered

Is there any way to change variable to string for the save function?

I think you may just have a simple typo in one line of your code. Try this, my_result = sprintf('result_%d_%d', data_start,da...

Is there any way to change variable to string for the save function?

I think you may just have a simple typo in one line of your code. Try this, my_result = sprintf('result_%d_%d', data_start,da...

5 years ago | 1

Solved

Which values occur exactly three times?

Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

7 years ago

Solved

Duplicates

Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

7 years ago

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

7 years ago

Solved

Return the 3n+1 sequence for n

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

7 years ago