답변 있음
Matrix manipulation and replacements
I think you can use the 'sub2ind' command as shown in the code below: A = rand(3,3) A = 0.8059 0.8...

거의 8년 전 | 0

답변 있음
How do I add lines in a text file in a specific location using MATLAB ?
You can check out the link given below: <https://www.mathworks.com/matlabcentral/answers/167200-how-to-add-a-new-line-in-the-...

거의 8년 전 | 1

답변 있음
How can I automatically load multiple data files and insert it into one matrix?
Yes it is possible. You just have to print the index indicating from which file you are currently loading the data. You can see ...

거의 8년 전 | 0

| 수락됨

답변 있음
How to extract specific arrays out of a CSV file
Assuming all the columns with headers have valid data, you can find the number of columns by just extracting the first line and ...

거의 8년 전 | 0

답변 있음
Activate "View Layout Grid" and "Snap to Layout Grid" programmatically
You can use the following command to enable the snap to grid option snaptogrid(figureHandle,'toggleview') For more optio...

거의 8년 전 | 0

| 수락됨

답변 있음
MATLAB Stuck on Initializing... No Online Solution Working
Have you tried out all the steps mentioned in the link given below: <http://www.mathworks.com/matlabcentral/answers/92566-why...

거의 8년 전 | 0

답변 있음
How can I automatically scale each of the elements of a Vector V to the respective size of the cell of the struct S?
You can use for loop to do this as shown in the code below: clear; clc; structSize = 20; observ...

거의 8년 전 | 0

| 수락됨

답변 있음
How do I run Examples like QPSK Receiver Using Analog Devices AD9361/AD9364?
You can find more information about the Zync Soc/Zboard by checking the link given below: <https://www.mathworks.com/hardware...

거의 8년 전 | 0

답변 있음
Summation with increasing index
You can do variables in the form of u1, u2, etc as shown below: for i = 1:10 var{i} = ['u', num2str(i)]; end If...

거의 8년 전 | 0

답변 있음
Why don't run Control System Toobox in my Matlab
Hey, may be you might have purchased the MATLAB Student version which doesn't comprise of the other add-on toolboxes as shown in...

거의 8년 전 | 0

답변 있음
Reading file in binary format (double 64 pecision)
I tried writing a binary file with both negative and positive values. Then I tried reading the binary file using fread just as y...

거의 8년 전 | 0

답변 있음
setting transparancy of legend?
You can refer to the link given below on how to set the different properties of legend <https://www.mathworks.com/help/matlab...

거의 8년 전 | 0

답변 있음
How to create a matlab function?
The format in your script is correct for ABP as input and Y as output. Also, when creating your own MATLAB function you need t...

거의 8년 전 | 0

답변 있음
how to get the average frequency for the hysteresis band control?
As you want a pulse counter, you can model it using a triggered subsystem. The subsystem can be configured to enable on the risi...

8년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


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

8년 초과 전

문제를 풀었습니다


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

8년 초과 전