문제를 풀었습니다


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

9년 초과 전

문제를 풀었습니다


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

9년 초과 전

문제를 풀었습니다


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

9년 초과 전

문제를 풀었습니다


Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

9년 초과 전

문제를 풀었습니다


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

9년 초과 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

9년 초과 전

문제를 풀었습니다


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

9년 초과 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

9년 초과 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

9년 초과 전

질문


Accessing data from a file without storing it
Hello guys, I have this function that reads and stores data from a file: function [data] = read() [file,path] = u...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Storing data from 2 lines of text
Hello there, I have this text 2.10 NAVIGATION DATA RINEX VERSION / TYPE SPIDER V4,3,0,...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Storing data from FOR loops
Good evening, I have encountered a problem regarding data storing from FOR loops. I'm using the following code: [~...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Iteratively loop for computing (WHILE)
I have this function and I have to make it compute my data iteratively. The new values obtained at final (Xa, Ya, Za...

9년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Using sscanf and NaN
Greetings, So if i have the following: a = '21414839.260 112535757.19909 2294.184 21414838.320 87690207.101...

거의 10년 전 | 답변 수: 2 | 0

2

답변

질문


Using while ~feof(fid) - Subscripted assignment dimension mismatch.
I need to read and extract the data from my file (I have attached it). In order to do this I made this function: function [...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Data storage using structures/cells
Good evening, My assignment is to read and arrange data from a RINEX observation file , for every observed satellite. I was t...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Reading blocks of data
13 03 12 00 00 0.0000000 0 7 G05 G16 G21 G25 G29 G30 G31* 23178802.640 121805444.22508 -722.816 23178801.180 ...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Plotting errors with respect to the ''ground truth"
Hello, I want to make a plot for a presentation that will show the errors and I don't know how to do this in a "professional"...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Error in reading a file ''index out of bounds because numel(p)=1"
Hello. The code for extracting data from SP3(Standard Product) type of file will do it for igs11484.sp3 but it won't for igs1731...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


How to build a ''growing" matrix
In my example I have: variable "i" (size 1x1) and R (size 3x3) R = 1 0 0 0 cos(i) sin(i) 0 -c...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Function to extract certain elements from a matrix
I have difficulties in making a function to extract columns after first number in the row from a the matrix. For example I have ...

거의 10년 전 | 답변 수: 1 | 0

1

답변

질문


Getting "Subscripted assignment dimension mismatch" error message
I made a function that extracts from a text file some numeric data. I want my function to return my data in a matrix with 36 row...

거의 10년 전 | 답변 수: 3 | 0

3

답변

질문


Linear regression using least square method & VARARGIN
Hello, As I specified, I have to solve a linear regression using least square method. I did it in the "classical" way using n...

10년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Finding the intersection of a function with its derivative
I have this code: x=sym('x'); f=2*sin(log(x)).^2; g=diff(f); h1=ezplot(f); set(h1,'Color','red') hold on ezplot(g) gri...

10년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How I can find in a big matrix the elements that are simultaneously min on rows and max on columns?
For example I have A=rand(50,50); And I want to find the position and the values that are simultaneously min on rows and m...

10년 초과 전 | 답변 수: 2 | 0

2

답변

질문


How to automate a process?
* Note: English is not my first language and I may be not very explicit. I have the input data:- _matrix A(3,2)_=[683265.032 ...

거의 11년 전 | 답변 수: 1 | 0

1

답변

질문


How to make an endless calculated matrix?
For example I have matrix A(3,2) = [2 3; 4 5; 6 7] an...

거의 11년 전 | 답변 수: 1 | 0

1

답변

더 보기