Question


What mistake I am making?
I have write a for loop to get the average of positive multiples of 7 from [ 2 14 28 -7 5 ], with using sum function. functi...

2 years ago | 2 answers | 0

2

answers

Question


I not able to understand what type error I am making in the while loop
I want to use babyloniansqrt to work if Error value should be grater than threshold and this will update the x and E value, usin...

2 years ago | 1 answer | 0

1

answer

Question


What Mistake I am making in the code
I want to randomly pick two numbers from [39 25 91 71] swap it. and use while loop so that it swaps continuely until the vector ...

2 years ago | 2 answers | 0

2

answers

Question


Hello I need help in this question
function [out] = sqrt_bywhile(x, inc) sqrt = 0; if ~exist('inc','var') inc = 0.01; end inc1 = 0; while sqrt <= x sqrt =...

2 years ago | 1 answer | 0

1

answer

Question


I want Estimate log to the base 10 value using 'x' number such that 10^estimated value is equal to or just exceeding x.
function [out] = log10_bywhile(x, inc) esmt = 0; if ~exist('inc','var') inc = 0.01; end inc1 = 0; while esmt <=x esmt =...

2 years ago | 1 answer | 0

1

answer

Question


I want to print only logical answer as shown in the example
function [out] = issortedvector(v) x = sort(v); if x == v else end Example issortedvector( [ -5 -3 10 20 25 29 ] ...

2 years ago | 1 answer | 0

1

answer

Question


How can I display only the fprintf without the error shown and using "function"
function [category] = iqcategory (score) %by Manav Divekar, 2021-10-28 %if the given score is greater the 130 if score >= ...

2 years ago | 1 answer | 0

1

answer

Question


How can I plot following graph using the given data?
Uning the Kelvin-Voigt equation 𝐹= (𝑘∗𝑥) + (𝜂∗𝑥′) where x is displacement, x’ is velocity, k is spring constant, and η is da...

2 years ago | 1 answer | 0

1

answer

Question


How can I plot average loop graph as given in the image
clc clear all close all C = readtable('A_G1.txt', 'NumHeaderLines',8); %Convert to SI Units accG2test = C{:,1}.*9.81; fo...

2 years ago | 1 answer | 0

1

answer

Question


how can I change my time so that it takes frequency 1/250 hz
clc clear all close all C = readtable('G2_adolescent.txt', 'NumHeaderLines',8); %Convert to SI Units accG2test = C{:,1}.*...

2 years ago | 1 answer | 0

1

answer

Question


How can I extract only 10 compression cycles using following data
How can I take only 10 cycles and plot it againts time

2 years ago | 1 answer | 0

1

answer

Question


What changes are required in the code
clc clear all close all C = readtable('G2_adult.txt', 'NumHeaderLines',8); %Convert to SI Units accG2test = C{:,1}.*9.81;...

2 years ago | 0 answers | 0

0

answers

Question


how can I get the following graph from this data, changes are required in the code
clc clear all close all % Lab 2 Group G2 Data Analysis %[files,path] = uigetfile({'.txt'},'MultiSelect', 'on'); %if iscell...

2 years ago | 1 answer | 0

1

answer

Question


what changes can I make so that all files are selected automatically
[files,path] = uigetfile({'.txt'},'MultiSelect', 'on'); if iscell(files) for n = 1:length(files) data = importdata(full...

2 years ago | 1 answer | 0

1

answer

Question


How can I use following code to select .txt files instead of .m file
[files,path] = uigetfile('MultiSelect', 'on'); if iscell(files) for n = 1:length(files) data = importdata(fullfile(path...

2 years ago | 1 answer | 0

1

answer

Question


what changes are needed
accG2_A = C(:,1).*9.81; forceG2_A = C(:,2).*0.00981; dispG2_A = C(:,3)./1000; time = dispG2_A./accG2_A; s = smooth(force...

2 years ago | 2 answers | 0

2

answers

Question


how can I convert units to SI Units
Matlab Users, I have data given in Accelerometer (0.001 g) Force-sensor (grams) Depth (0.01 mm), i need to convert this to its...

2 years ago | 1 answer | 0

1

answer

Question


How can I only select table data from a text file.
Matlab users, I have a question regarding selecting certain data from a text file. I only need the second column from the tabl...

2 years ago | 1 answer | 0

1

answer