답변 있음
PlotYY X axis doubled
Moving one x axis to the top might make things clearer AX = plotyy(...); set(AX(2),'XAxisLocation','Top')

12년 초과 전 | 0

답변 있음
Colorbar label beneath colorbar
C = colorbar('location','SouthOutside'); set(get(C,'XLabel'),'String','Colour Bar Label Text')

12년 초과 전 | 1

| 수락됨

답변 있음
Output arguments in functions
In the CHECKHORIZONTAL function: if avg < lowlimit c = -1*x1; end if avg > highlimit c = 1*x1; end ...

12년 초과 전 | 0

답변 있음
Without using the roots command, write a function to calculate roots of the quadratic equation
I'd recommend <http://mathworld.wolfram.com/QuadraticFormula.html maths>.

12년 초과 전 | 0

답변 있음
Can REGEXP be utilized to ignore specific numerical values in a text file?
TEXTSCAN is useful for extracting numeric data from strings. Note that the format string I used effectively reads two lines at o...

12년 초과 전 | 0

| 수락됨

답변 있음
Parsing or regexp HTML output from urlread
str = 'version="1.0" ? eSearchResult PUBLIC "-//NLM//DTD eSearchResult, 11 May 2002//EN" "http://www.ncbi.nlm.nih.gov/entrez/q...

12년 초과 전 | 1

| 수락됨

답변 있음
Use of dialogue boxes: interactively choosing directory and file to read at the beginning, and "save as" at the end, during the execution of script.
see the UIGETFILE and UIPUTFILE functions. doc uigetfile doc uiputfile

12년 초과 전 | 0

| 수락됨

답변 있음
Error in matlab Improper assignment with rectangular assignment with rectangular matrix
The number of elements you'll find each time will be different, so you can't put them into a standard array. Try using a cell a...

12년 초과 전 | 0

답변 있음
Manipulate Excel from Matlab
The -1 field allows you to use Excel interactively. [num txt raw] = xlsread(fileName,-1);

12년 초과 전 | 0

| 수락됨

답변 있음
Help needed with finding corresponding index values for given table value
As Iain said, you've got more unknows than equations. I've come up with a possible solution, but I don't know how robust it is. ...

12년 초과 전 | 0

| 수락됨

답변 있음
1, 4, 7, 2, 5, 8, 3, 6, 9 serie
a = reshape(1:9,3,3)'; a = a(:)'

12년 초과 전 | 1

| 수락됨

답변 있음
How to find the nine biggest numbers?
A = rand(9); m = sort(A(:),'descend'); m(1:9)

12년 초과 전 | 0

| 수락됨

답변 있음
Help with fzero equation solver
There is a way to do this without a loop: You have one unknown (C) and one equation (fun), and you are looking for C + f...

12년 초과 전 | 0

답변 있음
Help with fzero equation solver
There are a couple of things here: fzero only works with scalars, so you can't use it on all A and B values. Secondly, you ne...

12년 초과 전 | 0

답변 있음
??? In an assignment A(I) = B, the number of elements in B and I must be the same
Try using a cell array to store the file names: file = cell(1,l); for i = 1:l file{i} = fullfile(d,files(i).name)...

12년 초과 전 | 0

| 수락됨

답변 있음
There is any way to know the dimensions of an excel file (rows, columns) without using xlsread?
You can, but you have to open an Actx server - I wouldn't bother unless you really think it's worth it... Excel = actxserve...

12년 초과 전 | 2

| 수락됨

답변 있음
Collapsing integer data into consecutive integers?
[~,~,I] = unique([ 0 1 4 4 1 5 8 1 4]); disp(I-1)

12년 초과 전 | 2

| 수락됨

답변 있음
estimate memory size in matlab
Use the MEMORY function.

12년 초과 전 | 0

문제를 풀었습니다


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

12년 초과 전

문제를 풀었습니다


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

12년 초과 전

문제를 풀었습니다


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

12년 초과 전

문제를 풀었습니다


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

12년 초과 전

문제를 풀었습니다


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

12년 초과 전

문제를 풀었습니다


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

12년 초과 전

문제를 풀었습니다


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

12년 초과 전

문제를 풀었습니다


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

12년 초과 전

문제를 풀었습니다


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

12년 초과 전

문제를 풀었습니다


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

12년 초과 전

답변 있음
bar3 Axis labels don't reflect real data
Try scaling the tick marks based on the limits you've defined: format shortg xAxis = sort(10*rand(20,1)); sprintf('XM...

12년 초과 전 | 1

답변 있음
How can i calculate the difference between two points at various positions on a plot?
You can use the UNIQUE function to find when the torque values change, (assuming they only stay the same or increase from one po...

12년 초과 전 | 0

더 보기