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);

bijna 8 jaar 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...

bijna 8 jaar 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...

bijna 8 jaar 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).

bijna 8 jaar 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...

bijna 8 jaar 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...

bijna 8 jaar 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...

bijna 8 jaar 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)....

bijna 8 jaar 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...

bijna 8 jaar 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...

bijna 8 jaar 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...

meer dan 10 jaar 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...

meer dan 10 jaar 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...

meer dan 10 jaar 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...

meer dan 10 jaar ago

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 + ...

meer dan 10 jaar ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

meer dan 10 jaar ago

Solved

Create times-tables

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

meer dan 10 jaar ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

meer dan 10 jaar ago

Solved

Fibonacci sequence

Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

meer dan 10 jaar 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...

meer dan 10 jaar ago

Solved

Remove any row in which a NaN appears

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

meer dan 10 jaar ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

meer dan 10 jaar ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

meer dan 10 jaar ago

Question

US $100 prize for breaking my encryption ...

Hi everyone, I often heard people saying that private secret encryption is never secure (in other words, easy to crack). But ...

bijna 11 jaar ago | 1 answer | 0

Question

Newbie question about simulink "new" file format SLX

Hi everyone, I just found out that in R2012a, there is a new file format called SLX for saving simulink model. SLX is a bina...

ongeveer 11 jaar ago | 1 answer | 1

Question

Why is property renamed in fixed-point toolbox in R2012b?

Hi everyone, I am just curious why every now and then Mathworks would rename either function or (in this case) property name....

meer dan 11 jaar ago | 0 answers | 1

Answered

How to turn off cell mode in Matlab editor in 2012b?

I have actually issued a service request to Mathworks and the answer is no. So there is no way to turn off cell mode in Matla...

How to turn off cell mode in Matlab editor in 2012b?

I have actually issued a service request to Mathworks and the answer is no. So there is no way to turn off cell mode in Matla...

meer dan 11 jaar ago | 0

| accepted

Question

Newsgroup or "Ask Question"

Another stupid question to ask. I have not been to the matlab newsgroup for a while. So what do people normally do now if the...

meer dan 11 jaar ago | 1 answer | 0