Search
 
SCRIPT & CODE EXAMPLE
 

MATLAB

print hello world n times in matlab

n = input('Enter a number:');
for sentence = 1:n  % have the indexing go from 1 to n, not reverse
    fprintf('%d. Hello world!
', sentence); % print the index, and a newline 

end
Comment

PREVIOUS NEXT
Code Example
Matlab :: matlab if bigger than 
Matlab :: matlab stop running function 
Matlab :: two return variables in matlab 
Matlab :: matlab exclamation mark 
Matlab :: cos in scilab 
Basic :: how to send basic auth using fetch 
Basic :: how to close form in vb.net 
Basic :: resttemplate authorization basic 
Basic :: add firefox 
Basic :: VBA Initialise/Initialize String/Number Array (not variant) 
Elixir :: elixir catch 
Elixir :: phoenix run server 
Elixir :: elixir sleep 
Elixir :: elixir nested if 
Scala :: new scala project 
Scala :: how to get absolute value in scala 
Actionscript :: iis appcmd stop site 
Excel :: remove space from excel cell 
Excel :: Time and date maths in Excel 
Perl :: perl make a new directory 
Pascal :: pascal pause until key is pressed 
Pascal :: pascal cheat sheett 
Gdscript :: godot find_node() 
Abap :: abap char variable 
Assembly :: vba hello world 
Assembly :: IPL_DEPTH_LABEL 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: jquery check if screen size 
Javascript :: Error: Node Sass version 5.0.0 is incompatible with ^4.0.0. 
Javascript :: json object length in javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =