답변 있음
Help with Numerical Differentiation
The error is because you have increased the number of elements in the time array x too high for the number of elements in the re...

3년 초과 전 | 0

답변 있음
Huge plots number visualization/comparison
You can't compare 20-30 algorithms visually without it being incredibly dense and difficult to understand. You could try: 1) Ma...

3년 초과 전 | 0

| 수락됨

답변 있음
my for loop doesn't seem to be working. I want to add the correct letter to a string based on the equality of two arrays. How can I make this wok?
It seems the problem is that al is a string and therefore counts as one object for MATLAB. You can remedy this by switching to a...

3년 초과 전 | 0

| 수락됨

답변 있음
How to blank a grid value with a boundary file?
Use the inpolygon function to determine which points are inside the boundary you define, then replace those points which are out...

3년 초과 전 | 0

| 수락됨

답변 있음
Error using plot: vectors must be the same lengths
The problem is that x and y1 (and y2) are different sizes. Look at the linspace documentation - A = linspace(start,end); retu...

3년 초과 전 | 0

| 수락됨

답변 있음
How to estimate state space model and designate matrix C=1 or [1, 0]?
You are able to tell ssest which canonical form you expect the output to be in using the 'Form' option. Ex: ssest(data,order,'...

3년 초과 전 | 0

| 수락됨

답변 있음
Graph the solution of 3 different variables vs # iterations given 3 initial condition guesses on three separate graph obtained from an iterative solving while loop.
One possibility for why your charts only appear when you use point markers is what you are using for your plot data. You set i a...

3년 초과 전 | 1

답변 있음
Create a surface between two sets of 3d data points
When you send matrices to the plotting command, the way that it plots depends on the orientation of those matrices % x, y, z al...

3년 초과 전 | 0

| 수락됨

답변 있음
Reorder cell array based on unique string value
If you want to find which of the rows of your string array contain specific values, you can use this: % This can also be genera...

3년 초과 전 | 0

| 수락됨

답변 있음
Defining different bounds to each variable in fmincon
The documentation for fmincon has the answer: you are allowed to pass upper and lower bounds as vectors. For example, lower_bo...

3년 초과 전 | 1

| 수락됨

답변 있음
Can someone please help me stop "Index exceeds array bounds." in iteration? Any help is highly appreciated.
You're asking for elements in x1 that don't exist. If we look only at the last loop n == 8 and you are asking for x1(7), but x1 ...

3년 초과 전 | 0

| 수락됨

문제를 풀었습니다


ASCII Birthday Cake
Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string wit...

3년 초과 전

문제를 풀었습니다


Missing five
Convert decimal numbers to a base-9 notation missing the digit *5* <<http://www.alfnie.com/software/missing5.jpg>> Too man...

3년 초과 전

문제를 풀었습니다


Polarisation
You have n polarising filters stacked one on top of another, and you know each axis angle. How much light gets passed through th...

3년 초과 전

문제를 풀었습니다


Octoberfest festival
A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...

3년 초과 전

문제를 풀었습니다


Circle/Pentagon Overlap
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

3년 초과 전

문제를 풀었습니다


Inscribed Pentagon?
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

3년 초과 전

문제를 풀었습니다


Is this is a Tic Tac Toe X Win?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

3년 초과 전

문제를 풀었습니다


Pentagonal Numbers
Your function will receive a lower and upper bound. It should return all pentagonal numbers within that inclusive range in ascen...

3년 초과 전

문제를 풀었습니다


I Plead the Fifth
Write a function to provide a yes or no answer to the input string. However, it must plead the 5th amendment (return an empty st...

3년 초과 전

문제를 풀었습니다


The Top 5 Primes
This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

3년 초과 전

문제를 풀었습니다


Breaking Out of the Matrix
Do you want to take the Red Pill, or the Blue Pill? If you take the Blue Pill, you will simply pass along to the next problem...

3년 초과 전

문제를 풀었습니다


Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

3년 초과 전

문제를 풀었습니다


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

3년 초과 전

답변 있음
Non-numeric x-axis labelling?
Use xticklabels to add labels to the x-axis of a plot. plot(<plot data>) x_label_locations = [0 1 2] x_labels = {'HT','HT+1',...

3년 초과 전 | 0

| 수락됨

답변 있음
Apply a function to a specific column of multiple matrices?
When you use element-wise multiplication with a matrix and a vector, MATLAB makes some assumptions to make the code simpler. For...

3년 초과 전 | 0

| 수락됨

답변 있음
how to plot double against datetime
In the attached CSV, the time data is the same for every 100 columns or so. Because of this, MATLAB is plotting all of the event...

3년 초과 전 | 0

| 수락됨

답변 있음
Calculating a matrix with a variable inside
The first issue you are having is because you are telling MATLAB to expect a 1x1 answer with A(i) and then providing a 2x2 matri...

3년 초과 전 | 0

답변 있음
wrong matrix - provides 3x3 instead of 3x1
When you're multiplying matrices, you several times use element-wise multiplication instead of matrix multiplication. A = [1 2 ...

3년 초과 전 | 0

문제를 풀었습니다


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

3년 초과 전

더 보기