Feeds
질문
My script is not giving me the title, xlabel, and ylabel that I am asking so how can I fix it?
function [xy]= plotData(filename,markers) %data=xlsread('data.xlsx'); [num,txt]=xlsread(filename); x=num(:,1); y=num(:,2); ...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
How could I fix my script from the comments that were given?
Write a function plotData(filename,markers) Takes an input the filename of an Excel file which contains two columns of numbers ...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
How could I fix my last function(less=isLessWord(wordA,wordB)) in my code to get the result I want without using any built-in functions?
function [m, pos]=findSmallest(array) m = array{1}; pos=1; for i=2:length(array) if isLessWord(a...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
How to fix my recursive function?
Write a recursive function mostFactors(a,b,fact) that does the following: 1. Takes as an input 3 positive integers. 2. Of ...
대략 7년 전 | 답변 수: 2 | 0
2
답변질문
How can I fix my function?
function numReplaced=replaceMultiples(fname,num) clc num=0 fname='example.txt'; ifn=fname;...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
How could I get my function to produce this?
function student=update(student,field,value) student.name=student; %full name of student student.gpa=value; %GPA o...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
How could I fix my script?
If I am using the function rotatedText=rot(text,n). First things for say, I have to make sure that my script should apply a Caes...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
How to fix my function script?
this is edited my script: function[s,m]=collatz() %This function will show the steps and maxvalue of even and odd natura...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
How would my script to show this in the command window?
My function is [s,m]=collatz(X). If I want s to equal the number of steps it takes for the number to equal one then how would I ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Help on my function script?
My function is [s,m]=collatz(the input number) which I used x=input('Enter a natural number:'). If I want an even input to be di...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
How would I do this with a while loop script?
I allow the user to input their own vector. Then my script shows the vector as a decimal number but with the integers as zeros. ...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
How can I get the first and last element to switch for a vector?
If I am trying to use a code to use for any vector I put in my script, how could I get the first and last element to swap places...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
How can I only swap the first and last element of a vector?
The vector I have is [-5 4 -4 6 8 -3], so how could I use a code/piece of script to get [-3 4 -4 6 8 -5]?
7년 초과 전 | 답변 수: 2 | 0
2
답변질문
How could I add a zero before the last element in any size vector?
For example, if I was given vec[-5 4 -4 6 8 -3], how could it become vec[-5 4 -4 6 8 0 -3]? In addition, the code could work for...
7년 초과 전 | 답변 수: 2 | 0
2
답변질문
How can I only get the product of only the positive entries of a vector?
say the vector is [-5 4 -4 6 8 -3], how can I get the product of only the positive elements? I know the answer I am looking to g...
7년 초과 전 | 답변 수: 1 | 0
