Feeds
提问
How do I launch MatLab on Windows using X11?
I'm trying to open matlab on the HPC using Putty and X11 forwarding (with Xming), but getting this error: <</matlabcentral/...
9 years 前 | 0 个回答 | 0
0
个回答提问
Double summation and surface plot?
Could someone please show me the right way to do what I'm trying to do? Below is the description. I have a function f that ta...
9 years 前 | 1 个回答 | 0
1
个回答提问
How can I calculate a double sum?
something like this function test syms u(x,t,r) u(x,t,r) = x + t + r ; tl = 0:2:4; rl = 1:2:5; ur = sum(...
9 years 前 | 0 个回答 | 0
0
个回答提问
How to make a dictionary of arrays?
I can't seem to figure out how containers.Map works... It's doing ok with characters and numbers, but flips out when I try to fe...
9 years 前 | 1 个回答 | 0
1
个回答提问
For loop and adding elements to an array. How to?
I have some function y(x). I would like to generate a list of y values for x between -10^-3 and 10^-3 in 10^-4 intervals and plo...
9 years 前 | 1 个回答 | 0
1
个回答提问
How to make function assign variables that will stick around after the function is done running?
For example: function test(x) car.color = x; end if i first input global car I want car.color ...
9 years 前 | 1 个回答 | 0
1
个回答提问
How to use memoization in MatLab?
if I have some function substantially more complicated than function out = y(x) out = 2*x; end but let's just go w...
9 years 前 | 2 个回答 | 0
2
个回答提问
Integrating a multivariate function
I have a horrendous function that I need to integrate. I think I typed it into MatLab right, but here's the Mathematica version ...
9 years 前 | 1 个回答 | 0
1
个回答提问
Unassigned variables and accessing them from outside the function
I have this code: function [zr,w,R,q,mat] = test(z) lambda = 1; w0 = 1; zr = (pi*w0^2)/lambda; w = w0*sq...
9 years 前 | 2 个回答 | 0
2
个回答提问
How can I make MatLab output unassigned variables?
I'm used to Mathematica, so I'm not sure how and if the same works with MatLab. Is there a way to input something like: x = 3...
9 years 前 | 2 个回答 | 0
2
个回答已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
9 years 前
已解决
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 ...
9 years 前
已解决
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...
9 years 前
已解决
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:...
9 years 前