Md Nazmus Sakib
BUET Mechanical Engineering
Followers: 0 Following: 0
Statistica
All
RANK
257.785
of 294.481
REPUTAZIONE
0
CONTRIBUTI
0 Domande
2 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.00%
VOTI RICEVUTI
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Risolto
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
oltre 4 anni fa
Risolto
Count digits
Count total number of digits from 1 to n. * n=13 * output=17 since from [1-9] total 9 digits.[10-13] total 4*2=8 digits.
oltre 4 anni fa
Risolto
Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...
oltre 4 anni fa
Risolto
Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...
oltre 4 anni fa
Risolto
Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...
oltre 4 anni fa
Risolto
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
oltre 4 anni fa
Risposto
Write a function called get_distance that accepts two character vector inputs representing the names of two cities. The function returns the distance between them as an output argument called distance. For example, the call get_distance('Seattle, WA'
function y = get_distance(city_1,city_2) global raw; [~,~,raw] = xlsread('Distances.xlsx'); %fetching cities in rows r_city ...
Write a function called get_distance that accepts two character vector inputs representing the names of two cities. The function returns the distance between them as an output argument called distance. For example, the call get_distance('Seattle, WA'
function y = get_distance(city_1,city_2) global raw; [~,~,raw] = xlsread('Distances.xlsx'); %fetching cities in rows r_city ...
oltre 4 anni fa | 0
Risposto
Write a function called sparse2matrix that takes a single input of a cell vector as defined above and returns the output argument called matrix, the matrix in its traditional form
function y = sparse2matrix(p) row = p{1,1}(1,1); col = p{1,1}(1,2); default_val = p{1,2}; matrix = []; %assigning default v...
Write a function called sparse2matrix that takes a single input of a cell vector as defined above and returns the output argument called matrix, the matrix in its traditional form
function y = sparse2matrix(p) row = p{1,1}(1,1); col = p{1,1}(1,2); default_val = p{1,2}; matrix = []; %assigning default v...
oltre 4 anni fa | 0