Looky
Followers: 0 Following: 0
統計
All
Feeds
解決済み
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:...
約4年 前
回答済み
code to find the first whole number divisible by 1 to n
the mod function accepts a vector for the second argument, you can use this to check for a sequence of factors, e.g.: if(any(mo...
code to find the first whole number divisible by 1 to n
the mod function accepts a vector for the second argument, you can use this to check for a sequence of factors, e.g.: if(any(mo...
約4年 前 | 0
| 採用済み
回答済み
Rotate a 3D data cloud to align with one axis
I'm not sure if any built in functions exist for this purpose. However, one mathematical way would be the following: Determin...
Rotate a 3D data cloud to align with one axis
I'm not sure if any built in functions exist for this purpose. However, one mathematical way would be the following: Determin...
5年弱 前 | 2
| 採用済み
回答済み
Generate a sector mask within a big matrix
Solution could look like this: % Generate example coordinates x=linspace(-1,1,100); y=fliplr(linspace(-1,1,100)); [X,Y]=me...
Generate a sector mask within a big matrix
Solution could look like this: % Generate example coordinates x=linspace(-1,1,100); y=fliplr(linspace(-1,1,100)); [X,Y]=me...
5年弱 前 | 0
| 採用済み
解決済み
How many trades represent all the profit?
Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...
約5年 前
解決済み
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
約5年 前
解決済み
Find the peak 3n+1 sequence value
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...
約5年 前
解決済み
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...
約5年 前
解決済み
Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...
約5年 前
回答済み
How to change this for loop into parfor loop?
There are two issues in your code that prevent the parfor loop from working. # The matrix data is indexed in a way that matla...
How to change this for loop into parfor loop?
There are two issues in your code that prevent the parfor loop from working. # The matrix data is indexed in a way that matla...
7年弱 前 | 1
| 採用済み
回答済み
How to extract numeric data from the text comments using importdata?
There are many ways to accomplish that. You can use string manipulation methods to deal with the possible formats you would ex...
How to extract numeric data from the text comments using importdata?
There are many ways to accomplish that. You can use string manipulation methods to deal with the possible formats you would ex...
約7年 前 | 0
回答済み
why after I use the imwrite function, the pixels in the image are changed diferrent? before I convert from double matrix to uint8 matrix ?
This is likely a result from the compression/decompression process involved when saving to a jpg file. Choose a better suited fi...
why after I use the imwrite function, the pixels in the image are changed diferrent? before I convert from double matrix to uint8 matrix ?
This is likely a result from the compression/decompression process involved when saving to a jpg file. Choose a better suited fi...
約7年 前 | 0
回答済み
Displaying an axis scale in mm rather than pixels
It's a bit tricky without any example data, but this should do the trick. conversion=0.1; % in mm/pixel addMM=@(x) s...
Displaying an axis scale in mm rather than pixels
It's a bit tricky without any example data, but this should do the trick. conversion=0.1; % in mm/pixel addMM=@(x) s...
約7年 前 | 2
| 採用済み
解決済み
Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...
約7年 前
解決済み
Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...
約7年 前
解決済み
How to subtract?
*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...
約7年 前
解決済み
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 ...
約7年 前
解決済み
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. Examp...
約7年 前
解決済み
"Cody" * 5 == "CodyCodyCodyCodyCody"
*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...
約7年 前
解決済み
The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...
約7年 前