photo

Marco


University of Arizona

Active since 2013

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


putting a subscript into a string, displaying the command window
I need to know how to properly put a character into subscript within a string and to display with the subscript. input: ? outp...

9 years ago | 2 answers | 0

2

answers

Answered
I have a function file, I want to input an array and evaluate each cell in that array. How do I alter my function file to do this?
I have found a long and painful answer to my own question that does not involve WR's suggestion. I remade x into x1, x2, and x3....

11 years ago | 0

| accepted

Question


I have a function file that I worked out myself, all I need to do is apply it to an array of values but it's not working, I'd appreciate any help.
Here is my function file so far function x=isoddm(a) if isnan(a)==1 x=-1; elseif mod(a,2)==0.5 ...

11 years ago | 1 answer | 0

1

answer

Question


I have a function file, I want to input an array and evaluate each cell in that array. How do I alter my function file to do this?
function x=isoddm(a) if isnan(a)==1 x=-1; elseif mod(a,2)==0.5 x=-1; elseif mod(a,2)==1.5 ...

11 years ago | 2 answers | 0

2

answers

Question


I'm trying to write a program that calculates the standard deviation of an array without using sum() or std() and I'm having problems
Here is my code thus far; aberration_waves=[0.213 0.531 0.605 0.448 0.972 0.054 0.889 0.247 0.128 0.711]; N=numel(aberration_w...

11 years ago | 1 answer | 0

1

answer

Question


I have a text file that I would like to split into an array. Each array cell should be a word, not a sentence or line in the file.
This is what I got so far. But it does not actually solve my problem. file= fopen('marktwain.txt','r'); string= fread(fi...

11 years ago | 3 answers | 0

3

answers

Answered
I'm trying to generate random numbers between zero and 1 using fix(clock) but I'm having difficulties, each time I run the program I get the same numbers. Can someone please help?
I made one correction. Because k is still small compared to seed, I changed it to mod(seed,50*k). The results are uniform.

11 years ago | 0

Answered
I'm trying to generate random numbers between zero and 1 using fix(clock) but I'm having difficulties, each time I run the program I get the same numbers. Can someone please help?
thank you for your response, it works better than before. The numbers still express a pattern but their not the same as before.

11 years ago | 0

Question


I'm trying to generate random numbers between zero and 1 using fix(clock) but I'm having difficulties, each time I run the program I get the same numbers. Can someone please help?
MinSec=fix(clock); seed=100*MinSec(5)+MinSec(6); D=seed; a=777; b=1444; c=6666; k=1:55; D(k)=(a*D+b)*mod(c,k); D_max=m...

11 years ago | 3 answers | 0

3

answers