Frage


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

etwa 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort