提问


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...

3 years 前 | 2 个回答 | 0

2

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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 ...

3 years 前 | 2 个回答 | 0

2

个回答

提问


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 =...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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 =...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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 ] ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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 >= ...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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}.*...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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

3 years 前 | 1 个回答 | 0

1

个回答

提问


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;...

3 years 前 | 0 个回答 | 0

0

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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...

3 years 前 | 2 个回答 | 0

2

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答