Feeds
質問
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年 前 | 2 件の回答 | 0
2
回答回答済み
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....
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年以上 前 | 0
| 採用済み
質問
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年以上 前 | 1 件の回答 | 0
1
回答質問
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年以上 前 | 2 件の回答 | 0
2
回答質問
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年以上 前 | 1 件の回答 | 0
1
回答質問
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年以上 前 | 3 件の回答 | 0
3
回答回答済み
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.
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年以上 前 | 0
回答済み
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.
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年以上 前 | 0
質問
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年以上 前 | 3 件の回答 | 0