Statistics
15 Questions
0 Answers
RANK
174,133
of 300,763
REPUTATION
0
CONTRIBUTIONS
15 Questions
0 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
0
RANK
of 21,082
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 170,900
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Question
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 2 answers | 0
2
answersQuestion
How can I fix my function?
function numReplaced=replaceMultiples(fname,num) clc num=0 fname='example.txt'; ifn=fname;...
7 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 1 answer | 0
1
answerQuestion
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 years ago | 2 answers | 0
2
answersQuestion
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 years ago | 2 answers | 0
2
answersQuestion
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 years ago | 1 answer | 0
