photo

Marco


University of Arizona

Con actividad desde 2013

Followers: 0   Following: 0

Mensaje

Estadística

  • Thankful Level 1

Ver insignias

Feeds

Ver por

Pregunta


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

alrededor de 9 años hace | 2 respuestas | 0

2

respuestas

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

más de 11 años hace | 0

| aceptada

Pregunta


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

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 11 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 11 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 11 años hace | 3 respuestas | 0

3

respuestas

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

casi 12 años hace | 0

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

casi 12 años hace | 0

Pregunta


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

casi 12 años hace | 3 respuestas | 0

3

respuestas