Community Profile

photo

Deeds


Last seen: Today
44 total contributions since 2020

Contact

Deeds's Badges

  • Knowledgeable Level 2
  • First Answer
  • Thankful Level 1
  • Promoter
  • Solver

View details...

Contributions in
View by

Answered
about 'load' imperative sentence
load command imports files and data in the MATLAB workspace. As far as .dat file is concerned, a .dat file may contain any kind ...

12 dagar ago | 0

| accepted

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

13 dagar ago

Solved


The last non-zero digit of a factorial
For given positive integer n, what is the last non-zero digit of n!? Example: factorial(11) = 39916800 Last non-zero d...

13 dagar ago

Answered
Kmeans clustering of multidimensional data
Let's assume that your data is in DATA matrix and you have imported all the row and columns in a local variable "data". Try this...

13 dagar ago | 1

Answered
How do i get a direction field plot?
Try this: [x,y]=meshgrid(a:k:b, c:j:d) meshgrid creates a set of points (x, y), where x lies between a and b, incremented by k...

13 dagar ago | 1

Answered
Code running in one tab, but not another
In the line no. 59: B = log(Data(2:23,1)./k2); You are accessing Data values in the rows 2:23, while Data is just an 8x1 doubl...

13 dagar ago | 0

| accepted

Answered
Why should I use the zeros function?
Zeros(m,n) will create a matrix of dimensions m x n with all the elements as 0. This matrix along with the ones(m,n) is often us...

ungefär en månad ago | 1

Answered
Help to speed up the code
Well, the code inside the loops can be edited and vectorized to obtain faster results. I would suggest you go through this docum...

ungefär en månad ago | 0

| accepted

Answered
how can i calculate a complex polygon with coordinates in matlab ?
You can use polyarea for accomplishing your task. The documentation is here: https://in.mathworks.com/help/matlab/ref/polyarea....

ungefär en månad ago | 0

Answered
How can I plot my data from my for loop?
I'm writing this answer on a mobile phone and thus, I havn't checked this code, but it should work: clc clear all v0=50:1:100...

ungefär en månad ago | 0

Answered
How do I make a logamarithic curved line of best fit?
You can manually code the problem to store more intermediate values through interpolation in order to make the curve more smooth...

ungefär en månad ago | 0

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

ungefär en månad ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

ungefär en månad ago

Answered
Add a legend in a plot with multiples lines
Don't use legend multiple times. You can use this command after plotting all the plots. legend('20Hz', '40Hz', '60Hz', '80Hz...

ungefär en månad ago | 1

Answered
how to visualization data ?
You can use plot or scatter for 2D comparison.If you want a 3D comparison, you can use surf for that. MATLAB has a lot of visual...

ungefär en månad ago | 0

| accepted

Answered
how to plot series of y-axis that only on single point of x-axis?
ax.XTick will only set the ticks values along the x-axis. What is the actual range of x? As far as I can assume the values of x...

ungefär en månad ago | 0

| accepted

Answered
Different result between Matlab and mobile calculator. (Plz helpTT)
Clearly, you have misplaced any bracket or operator while solving the problem in the calculator. Look for them. I t could even...

ungefär en månad ago | 0

| accepted

Answered
Converting Frequency domain to time domain
Hi Katari: Proceed in the following way: Import the data from csv file using 'Import Data' tool or load or importdata function...

ungefär en månad ago | 0

Solved


convert matrix to single column
given any matrix, convert it to single column

ungefär en månad ago

Solved


Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

ungefär en månad ago

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

ungefär en månad ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

ungefär en månad ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

ungefär en månad ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

ungefär en månad ago

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

ungefär en månad ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

ungefär en månad ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

ungefär en månad ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

ungefär en månad ago

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

ungefär en månad ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

ungefär en månad ago

Load more