Skip to content

Instantly share code, notes, and snippets.

View paolorotolo's full-sized avatar
🖖

Paolo Rotolo paolorotolo

🖖
View GitHub Profile
faiScegliere();
function f = faiScegliere()
scelta = input('Metti input [1 media - 2 massimo e minimo - 3 potenza]: ');
if scelta == 1
disp(strcat('La media è:', int2str(media())))
elseif scelta == 2
disp('Massimo e minimo')
@paolorotolo
paolorotolo / voti.m
Last active December 6, 2016 12:54
voti.m
numeroVotanti = input('Quanti sono i votanti: ');
votoSi = 0;
votoNo = 0;
votoNonSo = 0;
nonVoto = 0;
for i=1:numeroVotanti
k = input('[1 - SÌ, 2 - NO, 3 - NON SO, 4 - NON RISPONDO]');
n = input('Quanti operai vuoi inserire?');
% Non abbiamo trovato un modo in matlab per definire variabili globali
% nella documentazione c'è la keyword 'global' ma non funziona :/
pezzi = caricaInputPezzi(n);
ore = caricaInputOre(n);
paga = caricaInputPaga(n);
% Allora.
% f ci serve per capire la scelta dell'utente
% #traccia simulazione
%acquisisco il #numero di operai
n_op= input('Inserire il numero di operai');
%Acquisisco per ogni #operaio: paga oraria, ore settimanali e pezzi prodotti
%in un giorno
for i=1:n_op
paga_oraria(i)=input('Inserire la paga oraria');
ore_settimanali(i)=input('Inserire le ore settimanali dell''operaio');
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
// Copyright 2017, 2 Coffees 1 tea(m).
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an 'AS IS' BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Skip to content
This repository
Pull requests
Issues
Marketplace
Explore
@paolorotolo
%compensazione con rete ritardatrice
clc
clear
MFR=60; %specifica margine di fase
K=2000; %amplificatore
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
import 'unit.dart';
const _padding = EdgeInsets.all(16.0);
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
import 'unit.dart';
const _padding = EdgeInsets.all(16.0);