Question

Asking a question with specific format

I need to ask a question that is formatted like this: *As a dialog box: Enter the resistance between node __ and node ___ ...

11 months ago | 1 answer | 0

Question

Asking multiple questions to user

Hi, Can someone tell me how to ask the user multiple questions while also have one question that changes variables? I want the q...

11 months ago | 1 answer | 0

Question

Adding Symbolic equations using while loops

I am attempting to create a matlab version of the KCL equation. I can't figure out a way to loop through all the possible equati...

12 months ago | 0 answers | 0

Question

Populating a matrix with user input

answer=inputdlg({'nodes'}); nodes=str2double(answer(1,1)); nodematrix=Inf(nodes); A=1; B=0; answer=[]; while A < nodes ...

12 months ago | 1 answer | 0

Question

Asking User a Question with Variables

Why does this not work? How do I ask the user questions involving changing variables?

12 months ago | 2 answers | 0

Question

Array for Symbolic Expressions

Can I create an array to store symbolic expressions?? I want to do something like: Equation1 = vpa(Equation); disp(...

1 year ago | 0 answers | 0

Question

Specific if statement question

I want to write an if statment that will determine if n2 is the first symbolic variable in this statement.. Is that possible?? ...

1 year ago | 1 answer | 0

Question

Program that Analyses a circuit

So, I have a complicated question... I am attempting to write a program that analizes a circuit based off of user imput. Right...

1 year ago | 0 answers | 0

Question

Equations with Variables & User input

Hi! I am attempting to write a program that analyzes a circuit that is decribed with user input.. My attempt is to get the use...

1 year ago | 1 answer | 0

Question

Storing User Input in a Matrix

I am attempting to write code that takes user input in with the dialog boxes. But i need the user input to then be stored in a m...

1 year ago | 1 answer | 0

Answered

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. Write a function called smallest_multiple that returns a uint64, the smallest positive number that is evenly divisible by all of the numbers fr

So, yes it needs to work with larger numbers.. But heres the thing: when I manually run the code with 45 in it (the number i...

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. Write a function called smallest_multiple that returns a uint64, the smallest positive number that is evenly divisible by all of the numbers fr

So, yes it needs to work with larger numbers.. But heres the thing: when I manually run the code with 45 in it (the number i...

2 years ago | 0

Question

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. Write a function called smallest_multiple that returns a uint64, the smallest positive number that is evenly divisible by all of the numbers fr

I keep getting an error everytime I run my code that says: [out] = smallest_multiple(6) Error using gcd (line 23) Inputs ...

2 years ago | 3 answers | 0

Question

Write a function called digit_counter that takes the name of a text file as input and returns the number of digits (i.e., any of the characters, 0-to-9) that the file contains. If there is a problem opening the file, the function returns -1. WARNING:

Hi, I was wondering why this does not work? Do i need to do nested for loops with i and j to traverse through the file ? funct...

2 years ago | 1 answer | 0

Question

Write a function called halfsum that takes as input an at most two-dimensional array A and computes the sum of the elements of A that are in the lower right triangular part of A, that is, elements in the counter-diagonal (going from the bottom left c

function [sume] = halfsum(A) [row,col] = size(A); for c = 1 : 3 for i = row : -1 :1 for j = col : -1 : 1 ...

2 years ago | 3 answers | 0

Question

2. Write a function called year2016 that returns a row-vector of struct-s whose elements correspond to the days of a month in 2016 as specified by the input argument. If the input is not an integer between 1 and 12, the function returns the empty arr

Please explain to me why this code will not work. function[d] = year2016(m) if m<1 || m>12 || ~isscalar(m)|| m~=fix(m) ...

2 years ago | 1 answer | 0

Question

Each number on telephone keypads, except 0 and 1, corresponds to a set of uppercase letters as shown in this list: 2 ABC, 3 DEF, 4 GHI, 5 JKL, 6 MNO, 7 PQRS, 8 TUV, 9 WXYZ Hence, a phone-number specification can include uppercase letters and digits.

I can not quite figure out why my code does not perform. I keep getting syntax errors that dont make sense to me. Such as "parse...

2 years ago | 3 answers | 0