Community Profile # Mark Smith

Last seen: 2 days ago Active since 2019

#### Statistics

All
• • • #### Content Feed

View by

Question

Parsing of financial data file that is very irregular in format
Thanks in advance for any responses. I am a retired engineer with some programming experience and am working to use Matlab for ...

12 months ago | 0 answers | 0

### 0

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

1 year ago

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

1 year ago

Solved

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

1 year 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. Examp...

1 year 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...

1 year ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

1 year ago

Solved

Given a and b, return the sum a+b in c.

1 year ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

1 year ago

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

1 year ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

1 year ago

Solved

ASCii Code
Using Matlab get the ASCii for '?'

1 year ago

Solved

Guess Cipher
Guess the formula to transform strings as follows: 'Hello World!' --> 'Ifmmp Xpsme!' 'Can I help you?' --> 'Dbo J ifmq zpv...

1 year ago

Solved

Calculate the area of a circle
Given a circle of diameter x calculate its area

1 year ago

Solved

How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

1 year ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

1 year ago

Solved

Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

1 year ago

Question

SAVE command: How to specify the variable to be saved if it is a variable inside an array. assignin has been used to create the variable from a string in an array.
Thank you again for your help. I am downloading several FED bond data series. The data is returned in a 21 x 11 structure. Th...

2 years ago | 1 answer | 0

### 1

Are there any suggestions for writing files in a timewise sequential manner when the files are created by a parfor loop?
Edric Ellis provided a great answer in the first comment. I am using this "answer" so that I can accept the answer and close th...

2 years ago | 0

| accepted

Question

Are there any suggestions for writing files in a timewise sequential manner when the files are created by a parfor loop?
Thank you for any comments and help you may have for my question. Please feel free to comment on coding inefficiencies, etc., t...

2 years ago | 1 answer | 0

### 1

Why are all the examples for matlab functions hindered by useless simplistic examples that do not show how all features of the functions work? One cannot determine how to use any function of any complexity with the examples given.
Many thanks for the inputs. I am not new to coding but new to mallab. I am currently building an app to perform financial anal...

2 years ago | 0

Why are all the examples for matlab functions hindered by useless simplistic examples that do not show how all features of the functions work? One cannot determine how to use any function of any complexity with the examples given.
I took a rant and dpq was kind enough to respond maturely. I agree entirely with dpq and will continue to wade through the mora...

2 years ago | 0

Question

Changing data type within a table from type table to any other data type
I have a table of stock market values of the following types: 4 columns of char data, 7 columns of "numeric" data , and 7 column...

2 years ago | 1 answer | 0