Michael Joslin
Lockheed Martin
2011년부터 활동
Followers: 0 Following: 0
Software Engineer Radar Systems
Feeds
질문
Run matlab commands from a bash script
I'm wirting a shell script to automate a few tasks. From my shell script I start Matlab with the following line: matlab -nosp...
4년 초과 전 | 답변 수: 1 | 0
1
답변질문
Current folder window not appearing
When I start matlab the current folder window is not appearing and I am getting the following warning: Unable to create com.m...
10년 초과 전 | 답변 수: 0 | 0
0
답변문제를 풀었습니다
Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...
거의 11년 전
문제를 풀었습니다
Put Two 1D matrices into one 1D matrix
Example: If input a = [1 2 3 4 5]; input b = [10 9 8 7 6]; then output will be, y_correct = [1 10 2 9 3 8 4 7 5...
거의 11년 전
문제를 풀었습니다
What percentage?
Calculate the output c as the percentage of a on b for given a and b.
거의 11년 전
문제를 풀었습니다
Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...
거의 11년 전
문제를 풀었습니다
Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...
거의 11년 전
문제를 풀었습니다
Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.
거의 11년 전
문제를 풀었습니다
Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...
대략 11년 전
문제를 풀었습니다
Decoding : Find the value
'u' in the function below is of type char or string and 'v' is of type int or double. function y = your_fcn_name( u, v) ...
대략 11년 전
문제를 풀었습니다
Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...
대략 11년 전
문제를 풀었습니다
Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative
대략 11년 전
답변 있음
How can I create a simple matrix of 4 by 4 using a "for" loop. to make a diagnol of 1's starting from top right to bottom left?
Heres a way to do it without a for loop if your interested: a = ones(4); a = diag(diag(a)); rot90(a) This might not be t...
How can I create a simple matrix of 4 by 4 using a "for" loop. to make a diagnol of 1's starting from top right to bottom left?
Heres a way to do it without a for loop if your interested: a = ones(4); a = diag(diag(a)); rot90(a) This might not be t...
대략 11년 전 | 0
질문
userdata in Stateflow blocks
I am creating a signal managment system for certain parameters in a stateflow block. The user inputs information in a GUI and it...
대략 11년 전 | 답변 수: 0 | 0
0
답변문제를 풀었습니다
Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.
11년 초과 전
문제를 풀었습니다
Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...
11년 초과 전
문제를 풀었습니다
Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...
11년 초과 전
문제를 풀었습니다
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
11년 초과 전
문제를 풀었습니다
Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....
11년 초과 전
문제를 풀었습니다
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
11년 초과 전
문제를 풀었습니다
Hangman (easy)
What is the best letter to start a <http://en.wikipedia.org/wiki/Hangman_(game) hangman> game with? You are given a cell arra...
11년 초과 전
문제를 풀었습니다
The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...
11년 초과 전
질문
Running excel macros with matlab activex
I have a program that takes all of the info stored in the UserData of blocks and writes it to an excel spreadsheet. The spreadsh...
11년 초과 전 | 답변 수: 1 | 1
1
답변문제를 풀었습니다
Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...
11년 초과 전
문제를 풀었습니다
sum of non-primes
The sum of the non-primes below 10 is 1+4+6+8+9+10=38 Find the sum of all the non-primes below the input, N.
11년 초과 전
문제를 풀었습니다
What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...
11년 초과 전
문제를 풀었습니다
Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.
11년 초과 전