Question

load global variable from startup.m

Is it possible to dfine a global variable using ...\Documents\MATLAB\startup.m? I would like to define frequently used variables...

12 months ago | 1 answer | 0

Question

Is it possible to load a variable that can not be cleared

I have a variable 'x' that is loaded using the startup file in ...\Documents\MATLAB\startup.m that executes the command load x...

1 year ago | 2 answers | 0

Question

LTSM multiple input multiple output example

Is there an example of an LTSM with multiple inputs and multiple outputs?

1 year ago | 0 answers | 0

Question

Design Time Series Time-Delay Neural Networks example errors

I want to utilize the Design Time Series Time-Delay Neural Networks FTDNN example to process doubles instead of cell arrays. Run...

1 year ago | 0 answers | 0

Question

How to include Java class in standalone executable?

I am trying to build a standalone executable using MATLAB compiler. The compiler builds the package. However, when I run the .ex...

1 year ago | 1 answer | 0

Question

resulting neural network function

How can the function and matrix of a neural network be retieved after training? After using the 'train' function, how can I expo...

2 years ago | 1 answer | 0

Question

Preallocate memory for a cell of structures

What is the correct syntax to preallocate memory for the cell x in the following? N = 10; for n = 1:N numRows = ceil(10...

2 years ago | 1 answer | 0

Question

Ignore or disable built in functions?

How can built in MATLAB functions be ignored? I have an imported Java class with a method named "status()". When I try to call i...

2 years ago | 1 answer | 0

Question

Set MarkerFaceColor to be filled by default

How can MarkerFaceColor be set to take on whichever color MarkerEdgeColor is by default?

2 years ago | 1 answer | 0

Question

What are the extra subdirectories returned by dir function?

When using the dir function, the first two elements returned have name field values of '.' and '..', which are determined to be ...

2 years ago | 2 answers | 0

Question

remove character from csv file header

How can a file be opened, then remove a character and save the file? The attached csv file , test.csv, contains the following...

2 years ago | 1 answer | 0

Solved

Fibonacci-Sum of Squares

Given the Fibonacci sequence defined by the following recursive relation, * F_n = F_(n-1) + F_(n-2) * where F_0 = 0 and F_1 ...

3 years ago

Solved

Golomb's self-describing sequence (based on Euler 341)

The Golomb's self-describing sequence {G(n)} is the only nondecreasing sequence of natural numbers such that n appears exactly G...

3 years ago

Question

How to write table to csv without date formatting

I have a cell *c* and an array *nums*, which are used to create a table *T*. The table is then written to a csv file *test.csv*....

3 years ago | 1 answer | 0

Solved

Project Euler: Problem 2, Sum of even Fibonacci

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

3 years ago

Solved

Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)

Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...

3 years ago

Solved

Alternating sum

Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

3 years ago

Solved

Project Euler: Problem 6, Natural numbers, squares and sums.

The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

3 years ago

Solved

Return the Fibonacci Sequence

Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

3 years 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.

3 years ago

Solved

radius of a spherical planet

You just measured its surface area, that is the input.

3 years ago

Solved

Swap the first and last columns

Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

3 years ago

Question

How to add blank space using text function?

Using text function, x = 1; y = 1; str1 = '1 2 3 4 5 6 7 8 9'; str2 = '4 5 6'; text(x, y, {str1; str2}) ...

3 years ago | 1 answer | 0

Answered

Matrices in a matrix

try % if A is 6x6 A = rand(6); A = repmat(A,3); % if R is 18x18, constructed from multiple 6x6 sub Rij matrices B...

Matrices in a matrix

try % if A is 6x6 A = rand(6); A = repmat(A,3); % if R is 18x18, constructed from multiple 6x6 sub Rij matrices B...

3 years ago | 0

Answered

how to set an intervall to a given angle?

pi/1000 is the step size between points in the vector starting at 0 and ending at 40*pi.

how to set an intervall to a given angle?

pi/1000 is the step size between points in the vector starting at 0 and ending at 40*pi.

4 years ago | 0

Solved

Roll the Dice!

*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

4 years 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...

4 years ago

Solved

Make one big string out of two smaller strings

If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

4 years ago

Solved

Sum of diagonal of a square matrix

If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

4 years ago