Feeds
提问
Color of surf function
I wamt to plot 3 spheres with different colours. But i am unable to do it. I am sharing the code as well. Thank you for your hel...
2 years 前 | 2 个回答 | 0
2
个回答提问
intersection of 3d convex hull
https://in.mathworks.com/matlabcentral/fileexchange/30892-analyze-n-dimensional-convex-polyhedra?s_tid=srchtitle The intersec...
2 years 前 | 1 个回答 | 0
1
个回答提问
Convert convexhull to stl file
I have a set of 3d coordiante points. How can i convert the convert the convex hull into stl file. p = [113.6466 111.8984 112...
3 years 前 | 1 个回答 | 0
1
个回答提问
does convex hull intersect?
Hello. The codes shown produces two convhull. I want to generate a parameter p such that if convhull intersect, p=false else, ...
3 years 前 | 2 个回答 | 0
2
个回答提问
does two polygons interest or not?
Let's say these are two non interscting ploygons (shown below). How can i get a logical relationship out of this. Something li...
3 years 前 | 2 个回答 | 0
2
个回答提问
if and else loop problem
if (loop==false && centre(ii,1)<95 ) centre(ii,:) = centre(ii,:)+ [0.1 0]; elseif (loop==false && centre(ii,2)<95)...
3 years 前 | 1 个回答 | 0
1
个回答提问
How to export a 3d surface to Ansys apdl?
I want to export a complex geomtery from matlab to ansys apdl for meshing. For example how can i import the sphere shown below t...
3 years 前 | 0 个回答 | 0
0
个回答提问
how to decrease the x-axis from left to right
plot option increses the axis from left to right. How can we reverse this (decrese the x-axis from left to right), something lik...
3 years 前 | 1 个回答 | 0
1
个回答提问
how to determine the trace of the graph.
Let's say i have plotted a cylinder in the matlab graph. Code is given below. r = 4; [X,Y,Z] = cylinder(r); h = 20; Z = Z*h...
3 years 前 | 1 个回答 | 0
1
个回答提问
assigning of multiple arrays
I have 5 different arrays of same size. How can i optimize this? Something like rhoo = thetaa = thetaa1 = thetaa2 = zeros(ss2,1...
3 years 前 | 1 个回答 | 0
1
个回答提问
Can we rotate the plot(x, y)
for w=0.5:0.1:1 l = w; thet = 0:1:60; theta = thet .*(pi/180); c = cos(theta); p = 4*(1-l^2).*(c.^2) + (2*l - 1)^2; q = 2*...
3 years 前 | 1 个回答 | 0
1
个回答提问
Error while plotting the polar plot
%I have an expression which is plotted using the polarplot. a = 1/(2.*cos(theta)) e = 0.5; thet = -60:1:60; theta = thet .*...
3 years 前 | 1 个回答 | 0
1
个回答已解决
Convert from Base 10 to base 5
Convert the input number from base 10 into base 5: for example: if a(in base 10)= 5 then a(in base 5)= 10
4 years 前
已解决
Pattern Sum
Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...
4 years 前
已解决
Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...
4 years 前
已解决
Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...
4 years 前
已解决
Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...
4 years 前
已解决
Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....
4 years 前
已解决
Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...
4 years 前
已解决
Proper Factors
Generate the proper factors of input integer _x_ and return them in ascending order. For more information on proper factors, ref...
4 years 前
已解决
Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...
4 years 前
提问
How to factorize 13916767508299776?
Hi, I want to factorize 13916767508299776 into its prime factors. How can ew do that? Thanks in advance.
4 years 前 | 2 个回答 | 0
2
个回答已解决
Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...
4 years 前
已解决
Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...
4 years 前
已解决
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.
4 years 前
已解决
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
4 years 前
已解决
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
4 years 前
已解决
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
4 years 前