photo

Tor Fredrik Hove


Actif depuis 2011

Followers: 0   Following: 0

Message

real sciences studies

Statistiques

MATLAB Answers

32 Questions
1 Réponse

RANG
14 069
of 300 750

RÉPUTATION
3

CONTRIBUTIONS
32 Questions
1 Réponse

ACCEPTATION DE VOS RÉPONSES
96.88%

VOTES REÇUS
3

RANG
 of 21 073

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 170 837

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Thankful Level 4

Afficher les badges

Feeds

Afficher par

Question


comparing rows in matrices
function lottonumbers = draw_lottonumbers(draws, balls,rows) % A function that draws 'draws' random integers without re...

plus de 13 ans il y a | 1 réponse | 0

1

réponse

Question


load
in matlab I can save and load for example like this >> mymat=rand(2,3) mymat = 0.2785 0.9575 0.1576 0.54...

plus de 13 ans il y a | 2 réponses | 0

2

réponses

Question


use of matlab in physics
You have a force from many forces that is F=F+Fc-Fv-D where F=400 N Fc=488*exp(-(t/0.67)^2) N Fv=25.8v D=...

presque 14 ans il y a | 1 réponse | 0

1

réponse

Question


fwrite
I tried to use fwrite which is described as saving in binary form but it saved it in numbers. At least my attempt did: Created ...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


charcters saved as ASCII in matrix
I have a function that works fine function threeinarow=isWinner(A,s) count=0; threeinarow='false'; for i=1...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


output of function as a string
function answer=harflertall(a) if a==50 answer=disp('it''s a tie') elseif a<50 answer=disp('less than 50') ...

environ 14 ans il y a | 1 réponse | 1

1

réponse

Question


disp
if b>a & b>c disp(b) elseif c>a & c>b disp(c) else disp(a) disp(a) end I have defined: >> a a = ...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


fscanf
When i try to read a file, this one: 3.0000000e+000 4.0000000e+000 5.0000000e+000 4.0000000e+000 5.0000000e+000 6.0000000e+...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


differnce between fgetl and fgets
definition for fgets tline = fgets(fileID) reads the next line of the specified file, including the newline characters. de...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


problem with eval notation
I have a question about eval in this script function sort=sortstructure(strucvector, field) if isfield(strucvector,field) f...

environ 14 ans il y a | 3 réponses | 0

3

réponses

Question


appending characters to matrix
I tried to append characters to a matrix: >> matrix=[1:3;6:8] matrix = 1 2 3 6 7 8 >> fid...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


appending to a file
I first created a file: >> fid=fopen('mongiss.lib', 'w') fid = 9 >> matrix=[1:3; 4:6] matrix = 1 ...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


create a new file
>> fid=fopen('firstone.txt''w') fid = -1 >> fid=fopen('firstone.txt','w') fid = 3 >> for i=1:3 fprintf(fid,'...

environ 14 ans il y a | 2 réponses | 0

2

réponses

Question


creating cell array
I would like to create a cell array with 1 row and two columns and in each column it is a columnvector of 5 elements in the firs...

environ 14 ans il y a | 2 réponses | 0

2

réponses

Question


problem with code
I am trying a script that does not work. First I define a structure in matlab: >> package=struct('item_no',123,'cost',19.99,'pr...

environ 14 ans il y a | 2 réponses | 0

2

réponses

Question


use of eval
I am trying to use evalfunction but are having a hard time: >> plots=[3 4 6 1] plots = 3 4 6 1 >> w...

environ 14 ans il y a | 3 réponses | 0

3

réponses

Question


subfunction in script
can one not use subfunction in script? Here is my attempt: phrasemat=char('Hello','how are you', 'How is it going?', 'what is...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


editor in matlab
in my book they say: start qoute: >>mystr='how are you; ???mystr='how are you; Error: A MATLAB string constant is not ...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


what is wrong with fprintf
why does not this function give the full text in fprintf: function printem(a,b) fprintf('the first number is %.lf and the ...

environ 14 ans il y a | 3 réponses | 0

3

réponses

Question


using logical to make a logical matrix
I wanted to make a logical matrix which consists of some true and some false. This is my attempt to create a 2 rows 3 columns ma...

environ 14 ans il y a | 1 réponse | 1

1

réponse

Question


how ro rename matrix
I have made a matrix matrix1=[1:4;3:6] matrix1 = 1 2 3 4 3 4 5 6 how can I rena...

environ 14 ans il y a | 2 réponses | 0

2

réponses

Question


how to display newline
Can you use newline seperately or do you always have to use it in fprintf in order to make it work. Theese are my attempts with ...

environ 14 ans il y a | 5 réponses | 0

5

réponses

Question


isletter true false
How does isletter work here. Is it the value 1 that makes it executable and the value 0 that makes it not excecute and go to els...

environ 14 ans il y a | 3 réponses | 0

3

réponses

Question


why two = for elseif
Why do one need two = for elseif here: http://bildr.no/view/1001050 I tried with only one and it does not work Why does o...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


or-function with switch
Can you not use or in one of the cases for switch. I tried here but it did not call it at all: http://bildr.no/view/1000983 I ...

environ 14 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
switch function that does not work
I had an autofile version of the m-file when I deleteed it it wroked. http://mathforum.org/kb/message.jspa?messageID=3692628&...

environ 14 ans il y a | 0

Question


switch function that does not work
What is wrong here: http://bildr.no/view/1000983 This is my text: function grade=switchletgrade1(quiz) if quiz<0 |...

environ 14 ans il y a | 2 réponses | 0

2

réponses

Question


function that does not work
Why does not this function work: <http://bildr.no/view/1000957> this is what i wrote: function grade=onlyundefined(quiz) ...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


why does it not work on my matlab this example from the book
Here are an example with matlab elseif and my attempt to rewrite it without success: <http://bildr.no/view/1000883> <http://bi...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Question


unary operator
why is 3>5 unary when exposed to ~ (sign for not) you have two numbers 3>5 and binary is defined as: An operation, such as ad...

environ 14 ans il y a | 1 réponse | 0

1

réponse

Charger plus