답변 있음
Using assignin command in guide
1. You cannot index into variables while using assignin. Therefore trying to assign the value 'red' to C(a,:) will not work. ...

대략 14년 전 | 0

답변 있음
How to work with Simulink project and libraries?
You can handle the common libraries within SVN using the 'externals' definition for both projects, this way you could ensure the...

대략 14년 전 | 0

문제를 풀었습니다


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

대략 14년 전

문제를 풀었습니다


Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

대략 14년 전

문제를 풀었습니다


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

대략 14년 전

답변 있음
Compute cumulative sum of a column vector without for loop
A=(1:10)'; % column vector spacing = 4; % scalar solution = arrayfun(@(n) sum(A(n):A(n+spacing)), 1:length(A)-spaci...

14년 초과 전 | 1

답변 있음
Sorting
line(1,:)= [1 2 3 4 5 6 7 8 9 10]; line(2,:)= [1.3 -2.3 4.245 12.3 -4.5 9.43 8.34 -5.3 3.54 6.4]; [line(2,:), line(1...

14년 초과 전 | 0

답변 있음
Why can't I read the videos with MATLAB on linux?
The file formats you mentioned are purely container formats. It is the codec used to encode the underlying video streams which w...

14년 초과 전 | 0

답변 있음
Appending two or more .mat files
You can also load data into a structure, and manipulate it from there. For example: FILE_A = load('ECU_1.mat'); FILE_B ...

14년 초과 전 | 0

답변 있음
How to access displayed axis limits when scaling is logarithmic and data partly negative?
After you set 'axis tight' call the following commmand: set(gca, 'YLimMode', 'auto') Then 'ylim' should return: [10...

14년 초과 전 | 0

답변 있음
how to assign names to each bar of a bar chart
You can simply add the names as the y-tick labels. somedata=randn(1,3); somenames={'mike'; 'steve'; 'alex' }; barh(...

14년 초과 전 | 8

| 수락됨

답변 있음
combine date & time
Be careful when working with arrays in this manner. The terms day(n) and time(n) probably don't contain what you are expecting t...

14년 초과 전 | 0

답변 있음
how to create plot of inverse data?
Is it the y-axis you want to reverse? If so: axis ij

14년 초과 전 | 0

답변 있음
Write a function, using arrays-vectors,' input'& 'fprintf','if' statement', 'end', 'fgetl' etc with good programming practices...like putting comments %
*HINT:* Don't post your assignments/homework word for word online, as if even someone does provide the answers a simple online s...

14년 초과 전 | 0

답변 있음
converting double to string
To convert string to double: x = 'AVECAESAR'; y = double(x); To convert double to string: x = [65 86 69 67 65 69...

14년 초과 전 | 0

답변 있음
UTC time
Grab the following file from the File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/7244 Then call: x...

14년 초과 전 | 0

| 수락됨

문제를 풀었습니다


Back to basics 20 - singleton dimensions
Covering some basic topics I haven't seen elsewhere on Cody. Remove the singleton dimensions from the input variable (e.g. if...

14년 초과 전

문제를 풀었습니다


Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

14년 초과 전

문제를 풀었습니다


Hackathon: the beginnings
I am thinking of a number between 1 and 10000... can you guess what this number is? *Description* The test suite has rando...

14년 초과 전

답변 있음
Help!! (Function definitions are not permitted in this context.)
What you are doing is mixing a script and a function within a single m-file. Remove the first four lines: numer_poly = [600...

14년 초과 전 | 0

문제를 풀었습니다


Nearest
*Description* Find the value and index of the element in vector _x_ that is nearest to value _y_. _y_ should be able to be a ...

14년 초과 전

문제를 풀었습니다


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

14년 초과 전

문제를 풀었습니다


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

14년 초과 전

문제를 풀었습니다


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provide...

14년 초과 전

문제를 풀었습니다


Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

14년 초과 전

문제를 풀었습니다


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

14년 초과 전

문제를 풀었습니다


Given an unsigned integer x, find the largest y by rearranging the bits in x
Given an unsigned integer x, find the largest y by rearranging the bits in x. Example: Input x = 10 Output y is 12 ...

14년 초과 전

문제를 풀었습니다


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

14년 초과 전

문제를 풀었습니다


Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

14년 초과 전

문제를 풀었습니다


Lose control
Remove all characters that are below space in ASCII value.

14년 초과 전

더 보기