문제를 풀었습니다


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

대략 6년 전

문제를 풀었습니다


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

대략 6년 전

답변 있음
How can I find correlation between two variables X & Y which I have obtained experimentally?
Three points will give you a line, but I'd be hesitant to call it a trend. In general, linear regression of X and Y gives you a ...

대략 6년 전 | 1

답변 있음
Evaluating function handle with array input arguments
Are you specifically looking at a binomial expansion? If so, there's a trick for composing that. For a generalized "raise this ...

대략 6년 전 | 1

답변 있음
Combine graphs from different script (directory)
Like you thought, the cleanest process is to write a 5th script which will do as you've written above. If the code is easily con...

대략 6년 전 | 0

답변 있음
Running/testing scripts on multiple Matlab/Simulink versions?
MATLAB can run in a headless mode from the command line, where it can take a script to execute. It's been a while since I've don...

대략 6년 전 | 0

| 수락됨

답변 있음
How to read and arrange certain data in multiple text file?
This seems like a good opportunity to leverage MATLAB's table datatype: https://www.mathworks.com/help/matlab/ref/table.html U...

대략 6년 전 | 0

답변 있음
Where can I find syntax related with 'Simulink.Parameter', 'Simulink.Signal' and 'Simulink.CoderInfo'
Check the documentation page: https://www.mathworks.com/help/simulink/slref/parameter.html Simulink Parameters function a litt...

대략 6년 전 | 1

| 수락됨

답변 있음
Passing variables in GUI vs. assignin then evalin
Nested Functions are your favorite friend when working with GUIs. Place the callbacks within the main UI, and they'll be able to...

대략 6년 전 | 0

답변 있음
Trouble creating function out of variable in terms of x
Is there any particular reason it needs to be using symbolic math? MATLAB has a built-in polynomial evaluation function called ...

대략 6년 전 | 0

답변 있음
How to make Ellipse rotates around focus
Haoang, Are you looking to have the ellipse rotate in a plot? You might be interested in applying a rotation matrix. See: ht...

대략 6년 전 | 0

답변 있음
Matlab Plotting with out legend
Check out the textbox() or annotation() commands. Text objects are placed inside the plot, while annotations are placed on the f...

대략 6년 전 | 0

문제를 풀었습니다


Read a column of numbers and interpolate missing data
Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

7년 초과 전

답변 있음
How do I repeat a character n times?
Because your histogram counts will result in variable length strings of asterisks, you'll need to use cell arrays to store each ...

대략 9년 전 | 1

| 수락됨

답변 있음
Cropping greyscale image based on pixel
The quick-n-dirty way that comes to mind is to just use a bitmask: 0 to toss a pixel's value and 1 to keep it. It's a little mem...

대략 9년 전 | 0

| 수락됨

답변 있음
Plotting seperate figure in for loop
44 separate figures? Be aware that this many figures can make MATLAB unhappy to the point of Java crashing, particularly on lowe...

대략 9년 전 | 0

| 수락됨

답변 있음
Comparing arrays using loop?
You can actually do this in Matlab without needing a for loop. If I'm interpreting your question correctly, you're asking to fin...

대략 9년 전 | 0

| 수락됨

답변 있음
Parallel-izing, speeding up simulation
Taking a quick look. There's probably more you can do. 1. Eliminating the anonymous function call on the conditional inside t...

대략 9년 전 | 0

| 수락됨

답변 있음
ode45 taking long time to solve
Is ode45 a requirement? I'd guess that your equations are becoming stiff when you add in the heavisides. As a result, ode45 is t...

대략 9년 전 | 1

답변 있음
Display error message and execute catch
Does the text need to remain red and halt execution? A few ways to go about this. First the catch block will hold the error f...

대략 9년 전 | 18

| 수락됨

답변 있음
How to find number of values which are repeating in a column?
Take a look at the histcounts function: [N,edges] = histcounts(X,edges) sorts X into bins with the bin edges specified by the v...

대략 9년 전 | 0

답변 있음
Problem with 'Patch' graphics in 2014b - Splits in two along diagonal
Has this issue been addressed for 2017a? I see it has acquired a ticket as of last year: <https://www.mathworks.com/support/bugr...

대략 9년 전 | 0

문제를 풀었습니다


Connect Four Win Checker
<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

9년 초과 전

답변 있음
Making movie out of images
It would appear you're giving it a matrix of values to make frames, but MATLAB is looking for indices for each pixel to relate t...

거의 10년 전 | 0

| 수락됨

답변 있음
Can anyone tell me what is wrong with this loop? It fails on the second line. I believe the functions are correct bc they work in the command line.
As Ced says, some additional context would be helpful to answer the question completely. You say it works form the command li...

거의 10년 전 | 0

답변 있음
How to check source code for certain strings? [Base MATLAB] [Cody Courseware]
If you can check the source code on submission, you could use a regex to look for the existence of the nested for loop, identify...

거의 10년 전 | 0

답변 있음
Vectorization of a for loop
v = 1:length(P)-2; ix = find( ((P(v+1) - P(v)) > 0) & ((P(v+2) - P(v+1)) < 0) ) + 1; B2(ix) = 1;

10년 초과 전 | 0

답변 있음
Is there an easy way to upload my Matlab GUI interface onto a website?
Nothing that I'm aware of. The MATLAB mobile application (http://www.mathworks.com/mobile/features.html) does not support GUI ap...

10년 초과 전 | 0

답변 있음
MATLAB Legend title issue
You need to access the title string property of the legend: There is likely a cleaner method to access this with the new grap...

10년 초과 전 | 0

문제를 풀었습니다


Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

10년 초과 전

더 보기