photo

Shuoze Xu


Last seen: mehr als 3 Jahre vor Aktiv seit 2019

Followers: 0   Following: 0

Statistik

MATLAB Answers

27 Fragen
0 Antworten

RANG
21.121
of 300.765

REPUTATION
2

BEITRÄGE
27 Fragen
0 Antworten

ANTWORTZUSTIMMUNG
81.48%

ERHALTENE STIMMEN
2

RANG
 of 21.084

REPUTATION
N/A

DURCHSCHNITTLICHE BEWERTUNG
0.00

BEITRÄGE
0 Dateien

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANG

of 170.941

BEITRÄGE
0 Probleme
0 Lösungen

PUNKTESTAND
0

ANZAHL DER ABZEICHEN
0

BEITRÄGE
0 Beiträge

BEITRÄGE
0 Öffentlich Kanäle

DURCHSCHNITTLICHE BEWERTUNG

BEITRÄGE
0 Discussions

DURCHSCHNITTLICHE ANZAHL DER LIKES

  • Thankful Level 4

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


How to print the sum of the middle array's columns ?
Here is an past exam question a) read the dimensions of the matrix from the user and prompt the user for the data needed to fil...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Enter a string and print it backwards
Hi. I'm having a problem with how do I print the string backwards. Here is my code. string = input("Please enter a phase: ",'...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


The program cannot work
Hi. There is a review question without answer. Here is the question A function is defined as function [dice] = roll(sides) ...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to implement the output matrix without if conditions
Hi. This is a review problem that requires the use of nested loops to output the following matrix. 1 2 3 3 4 5 4 5 6 7 5 6...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how to use conditional statement realizing prime function
Hi. I want to use code to check if a number isprime. I know isprime () but I don't want to use it because I want to know how to...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Compares characters within strings
Hi. I want user to input two words, and then compare The two words. If The words differ in characters: n; If they are the same...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


using nested for loop to print all of factorial
Hi. I want to print the factorial of each number from 1 to 100 using a nested loop. Here is my program. factorials = 1; % se...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How can decimals not be rounded
Hi. That is my code. float_number = input('Please enter a float point number: '); fprintf("The number is %.2f\n",float_number...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to call the second function inside the first function under the same file
% That is my code % the expected result is : Please enter the first user name: abby Please enter the first user name: bob T...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


get two sum of two random number are not the same
Hi. I want to get diifferent nums of sum of two random numbers. Which method should i use? That is my code % function file...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Find the error may happened
You are testing the exp function above. Which of the following test cases would detect errors which exist in the function (hint...

mehr als 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


get the minimum and maximum element from two vectors.
Hi. That is question. Write a MATLAB function called minMaxVectors that takes two vectors v1 and v2 (you can assume these vect...

mehr als 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


The meaning of code on this program
Hi. i met a question on this program, this is professor's code. While, i confused for the M(r,c) = input(': '); What is pur...

mehr als 3 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


reads in n numbers from the user storing the numbers in a vector. Print the numbers from the ends inwards (last, first, second last, second, third)
How many numbers will you enter?: 5 Enter a number: 3 Enter a number: 5 Enter a number: 6 Enter a number: 4 Enter a nu...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


calculate the number of odd fence values instead of printing them
Sample Output: Given A = [ 5, 4, 6, 7, 3 ; 1, 2, 3, 4, 5 ; 5, 6, 4, 2, 4 ; 4, 5, 3, 2, 1] % output demo There are 9 odd val...

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


read the values of a 3 x 3 matrix from the user, then output
Read the values of a 3 x 3 matrix from the user, then output the outlier rows and columns % output demo Sample Output: En...

fast 4 Jahre vor | 1 Antwort | 1

1

Antwort

Frage


The purpose of code on programming
Hi. I met a few questions when i watch this code i seen the comment, but i have no idea why the picture produced like that. ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


The meaning of code on this program
Hi. That is a code which produce a difference picture on Matlab. That is my professor code, but i cannot fully understand. Th...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


The meaning and function of codes on programming
Hi. i learned a method which can ask user for a word and output a random permutation. But professor showed a kind of method i ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Left-rotating a vector
we define a vector A and create a new vector B containing the elements of A shifted one index to the left. % As an example A ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to use nested loop to produce the row and columns like that
Given a 2D array, called A, of size 5 x 5, Sample Output: Given A = [2,4,8,7,3;2,2,3,4,3;5,5,4,2,7;8,2,7,3,9;1,2,3,4,5]; ou...

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


reads in n numbers from the user,storing the numbers in a vector, then print the numbers from the ends inwards(last,first,second last,second)
% question demo % How many numbers will you enter? : 5 % Enter a number: 3 % Enter a number: 5 % Enter a number: 6 % Enter ...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


What is the meaning of symbol “.”in this code
I was watching a tutorial today on graphics, and one line of code went like this. x = linspace(0,3); y = x.^2.*sin(x); plot(x,y...

fast 4 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Why program shows Unrecognized function or variable 'g'.
% legend() function x = 0:0.5:4*pi; y = sin(x); h = cos(x); w = 1./(1+exp(-x)); plot(x,y,'bd-',x,h,'g:',x,w,'ro-',x,g,'c^-'...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to get the multiplication of elements in a row vector by using for loop
% create a vector A = [-2,4,9,-5,1]; Mult = 0; % create a for loop for i = 1:length(A) Mult = Mult * A(i) ; end % d...

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


function(return driver)
Write a MATLAB function called triple that takes a number as its parameter and returns a value that is three times its parameter...

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


Write a script that given a vector, called A, of n numbers, outputs the index of the first number divisible by 3. Sample Output: Given A = [5, 4, 6, 7, 3] divisible by 3 is:3
The index first number divisible by 3 is: 3 but I do not know how to get the position from the vector.

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort