답변 있음
Print Figure to Word Document with Current Figure Size
I print figures to Word in a different way. First print the figure to a temporary file using something like temp_fname = [...

거의 14년 전 | 0

| 수락됨

답변 있음
Could you help me with FUNCTION syntax
I'm not entirely sure what you want this function to do. How about something like this? From the Matlab command prompt: x...

거의 14년 전 | 1

답변 있음
Could you help me with FUNCTION syntax
First you need to give the function a name. Here I've called it my_function() and you should save it as my_function.m somewhere...

거의 14년 전 | 1

답변 있음
Why use x=load('myFile.mat')?
I think it has more to do with code readability. If you use the latter form you create variables in the workspace in a manner i...

거의 14년 전 | 0

문제를 풀었습니다


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

거의 14년 전

답변 있음
Outputting Data in Excel
I think maybe you're missing the commas in fprintf(fid,'%5.5f, %5.5f, %4.0f\n',soln); Excel is viewing a CSV file as a c...

거의 14년 전 | 0

답변 있음
image recognition
Look at the help for rgb2gray if you have the Image Processing Toolbox. You can use this function and then normalize as you see...

거의 14년 전 | 0

문제를 풀었습니다


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

거의 14년 전

문제를 풀었습니다


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

거의 14년 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

문제를 풀었습니다


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

거의 14년 전

답변 있음
Matlab 2011b 64bit. Running and instance in 32 bit mode.
You can install and use both 32- and 64-bit versions of Matlab R2011b on Windows 7 x64. You have to do a full installation of e...

대략 14년 전 | 0

답변 있음
All I want to do (initially) is read an Excel or csv file
Something like the following should work: %Prompt user for filename [fname, pname] = uigetfile('*.csv'); ...

대략 14년 전 | 1

| 수락됨

답변 있음
beyer matrix
I don't see anything wrong with your code, but I do wonder about your statement that you are "getting black images" with R, G, a...

14년 초과 전 | 0

답변 있음
Using handle graphics for more global variables
handles is a structure that you can modify, as Matt points out above. His variable G is the handles structure that you're likel...

14년 초과 전 | 0

답변 있음
How to pass in put values into objective functions using global search?
I believe one way is to use function handles. Try the following func = @(x)likelihood(x, param_fix, kalman_init, VarObs); a...

거의 15년 전 | 2

| 수락됨

답변 있음
Word COM - writing text into this open document
Let Word_COM be the COM object associated with MS Word. You can use Word_COM.Selection.TypeText('string'); Word_COM.Select...

거의 15년 전 | 2

| 수락됨