Community Profile

photo

David Hughes


Wayne State University

Attivo dal 2015

Followers: 0   Following: 0

Contatto

Statistiche

  • Thankful Level 3

Visualizza badge

Feeds

Visto da

Domanda


Script that performs the same as MATLAB function.
I am looking to create scripts for some internal functions: repmat, fliplr, flipud, and rot90. I am familiar with how each works...

oltre 8 anni fa | 0 risposte | 0

0

risposte

Domanda


How do I bypass Error (index must be a positive integer or logical)?
I created a script that will give the average of the negative numbers entered by the user. I was attempting to store the entered...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


How do I convert this to a while loop?
I have a script that works but I would like to convert it to a while loop and I am stuck. Any help is appreciated. Script is bel...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


Can xlswrite be used to prompt the user for the file name?
I have a script that writes the results to an excel file. Currently the file name has to be entered into the script. I want the ...

oltre 8 anni fa | 3 risposte | 0

3

risposte

Domanda


Error in Matrix multiplication function.
The message below is the error I get when I run this function file. I am not sure why. The function is supposed give an error if...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


Code will not display getting error
I am getting an error on line 14 it will not display B. Any suggestions? This is the code: A=[1 2 3;4 5 6;7 8 9] [m,n]=...

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


Can this code be more efficient?
I wrote this code with some help of a classmate and I think the code can run more efficiently. It coverts whole numbers & number...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


Using a while loop to perform like cumsum function.
I have to create a code utilizing nested while loops to perform the same operation as cumsum. If I enter A=[1 2 3;4 5 6;7 8 9], ...

quasi 9 anni fa | 0 risposte | 0

0

risposte

Risposto
Geometric Mean and average.
I think I found the answer. i=1; n=1; while n >= 0 ix = input('Enter your numbers: '); if ix < 0 % break ...

quasi 9 anni fa | 0

Domanda


Geometric Mean and average.
I am trying to create a code that will accept inputs until a negative integer is entered then take all the positive integers as ...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


Help with dec2bin conversion
I have to create a code using a while loop that will output the binary form of a number(that is less than 1). The code I have wo...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


How to find matrix column & row max & min output as vector?
I need to create a script that gives the maximum & minimum value of each column and each row of a vector. This is what I have so...

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


How to convert from a for loop to a while loop
function [y] = HW5_P2(n) %This function file determines the value of n^2 over the range 1 to n for i = 3:3:n x = [1:i];...

quasi 9 anni fa | 1 risposta | 0

1

risposta

Domanda


Using a while loop, what am I missing?
The code works but does not print the first number. The range is 1 to 11 odd numbers only but I need number 1 to show in the lis...

quasi 9 anni fa | 1 risposta | 0

1

risposta