Community Profile

# BM

Last seen: 6 days ago Active since 2017

#### Content Feed

View by

Question

Numerical Multiplication in MATLAB
Using MATLAB as a simple calculator, we get the results 2 * 0.155 * 100 = 31, 2 * 0.165 * 100 = 33, 2 * 0.135...

3 years ago | 1 answer | 0

### 1

Question

Help Writing One's Own Functions
Writing a function in MATLAB was clear enough, but I ran into a little issue I want to correct. When I wrote functions in the p...

4 years ago | 1 answer | 0

### 1

Question

How to Save Multiple MATLAB plots as Fig files?
With MATLAB 2018b, one can now hover over a gridpoint with the cursor to obtain a location. This ability is only present when t...

4 years ago | 0 answers | 0

### 0

Question

How to save multiple MATLAB figures automatically in program?
In my script, I may save the figures as jpg files via the code (which works): % print(1,'-painters,'-djpeg',strcat(fil...

4 years ago | 1 answer | 2

### 1

Question

If Else Statements With Conditions
I am looking to write an 'ifelse' statement with the conditions such as the following: a+7+b <= index <= c where _a_, _b...

5 years ago | 1 answer | 0

### 1

Question

What Are The Common Causes of Wild Fluctuations In An Array of Data?
While I cannot post the code, I hopefully should be able to describe the issue in enough detail. I have a program that work...

5 years ago | 0 answers | 0

### 0

Question

How to Properly Use VPA in MATLAB?
I have a couple of questions regarding _vpa_ in MATLAB. MATLAB states that " *You must wrap all inner inputs with _vpa_, such a...

5 years ago | 1 answer | 1

### 1

Question

Exponentiation Turns Values Into Zeros.
After I solved an equation, I have good non-zero, numerical data. After exponentiation, some of these values go to zero, so lit...

5 years ago | 1 answer | 0

### 1

Simple Method for Finding if ANY NaN values occur in a matrix.
Too bad! I was hoping I could get away with working in the command prompt rather than write a routine directly in the program, ...

5 years ago | 0

Question

Simple Method for Finding if ANY NaN values occur in a matrix.
Is there a quick method of finding out whether or not a matrix or a vector in matlab has *any* NaN values? A large matrix filled...

5 years ago | 4 answers | 0

### 4

How to plot a vector (array) as a vertical line?
Ok, I think I found a solution, but I would definitely appreciate some feedback to make sure my solution is in line with what I ...

5 years ago | 0

Question

How to plot a vector (array) as a vertical line?
Say I have, from my data, a vector x, where x is a 1 x n row vector. How do I plot this as a vertical column vector on an alrea...

5 years ago | 1 answer | 0

### 1

Question

How many cores does MATLAB use in a given program?
This might be an odd question, but my code has to be run on a more powerful machine. What would be helpful is to know how many ...

5 years ago | 1 answer | 0

### 1

Question

Vectorizing Code Yields Different Answer to For-Loop
I ended up quickly writing a piece of code that theoretically should plot one value for each plot, giving 10 of them in total. ...

5 years ago | 0 answers | 0

### 0

How to Get MATLAB to Save Non-Corrputed PDF Files?
Please discard the first part of this question. Everything now seems to work, and I am a little perplexed, as I literally chang...

5 years ago | 0

Question

How to Get MATLAB to Save Non-Corrputed PDF Files?
Ok, I have an issue that seems quite strange to me, and I don't exactly understand why I am getting mixed results when I run the...

5 years ago | 1 answer | 0

### 1

Question

Rem function yields wrong output.
I am assuming that there is a little error (perhaps floating point), in my test loop. This particular loop I wrote is supposed ...

5 years ago | 1 answer | 0

### 1

Question

How to plot row vectors in a matrix in which every marker is a different color and repeated amongst the other rows?
I am trying to essentially plot three things on a single 2-D graph. That is, say we have a matrix p(m,n) = [1 2 4; 3 5 7; ...

5 years ago | 2 answers | 0

### 2

Question

How to obtain a no-loop iteration in MATLAB using anonymous functions?
I tried to adapt this base program to my needs, but I am running into an issue. In my particular program I have my function F de...

6 years ago | 1 answer | 0

### 1

Question

Iteration Without the Implementation of Loops
I am interested in being able to run this particular code using i as the iterating vector. While this can easily be accomplishe...

6 years ago | 1 answer | 0

### 1

Question

How to graph two different functions on different axes
Hopefully I am asking this correctly. Is there a way to plot two different functions on two different axes in MATLAB? Say alon...

6 years ago | 1 answer | 0