内容提要
Solved
Sum the numbers on the main diagonal
将N-N矩阵的主对角线上的数字汇总。输入:a = [1 2 4 3 6 2 2 4 7] ...
7years ago
Solved
Distance walked 3D
假设您从X-Y-Z坐标[3,4,2]转到[0,0,2]到[0,1,2]到[1,1,2],然后[1,1,20],然后您走了25距离单位...
7years ago
回答
Replacing elements in matrix columns
You can do the replacement using logical indexing. The replacement for 34 --> 1 would be as follows: for i=2:3 idx = (...
Replacing elements in matrix columns
You can do the replacement using logical indexing. The replacement for 34 --> 1 would be as follows: for i=2:3 idx = (...
7years ago | 0
回答
can i change the x axis without changing the plot? So i have a array with 10000 numbers in it, i want to plot thoes 10000 numbers in time, like 0-10sec insted of 0-10000.
You just need to supply a vector of x values. Something like x = linspace(0, 10, length(buf)); Then, just plot as ...
can i change the x axis without changing the plot? So i have a array with 10000 numbers in it, i want to plot thoes 10000 numbers in time, like 0-10sec insted of 0-10000.
You just need to supply a vector of x values. Something like x = linspace(0, 10, length(buf)); Then, just plot as ...
7years ago | 0
|accepted
回答
Can anyone explain from the third line till the end of below code..??
末尾的第三行仅包含“ else”一词。这是IF控制结构的典型语法。在示例中,...
Can anyone explain from the third line till the end of below code..??
末尾的第三行仅包含“ else”一词。这是IF控制结构的典型语法。在示例中,...
7years ago | 0
回答
创建多个窗口图
You can use the command figure() to open a new window to plot in.
创建多个窗口图
You can use the command figure() to open a new window to plot in.
7years ago | 0
|accepted
回答
将txt文件保存在循环中
您可以使用dlmwrite函数进行类似的操作:对于i = 1:1:50 dlmwrite(sprintf('%d.txt',i),魔术(i)); ...
将txt文件保存在循环中
您可以使用dlmwrite函数进行类似的操作:对于i = 1:1:50 dlmwrite(sprintf('%d.txt',i),魔术(i)); ...
7years ago | 0
回答
How do I change the resolution of an image produced by imagesc?
要使用Imresize,您首先读取以下图像:a = imread('image.jpg');然后,您将其应用如下(例如...
How do I change the resolution of an image produced by imagesc?
要使用Imresize,您首先读取以下图像:a = imread('image.jpg');然后,您将其应用如下(例如...
7years ago | 0
回答
如何在我的XYZ点上画光滑的球(球)和棍子(气缸)。
This should do what you're looking for regarding the spheres (but see my above comment for cylinders). % Parameters SPHE...
如何在我的XYZ点上画光滑的球(球)和棍子(气缸)。
This should do what you're looking for regarding the spheres (but see my above comment for cylinders). % Parameters SPHE...
7years ago | 1
回答
在某些特定点找到曲线的斜率
You might want to start by looking at MATLAB's gradient function. You could also use simple finite difference formulas, like: ...
在某些特定点找到曲线的斜率
You might want to start by looking at MATLAB's gradient function. You could also use simple finite difference formulas, like: ...
7years ago | 1
回答
How significantly does the platform Matlab is run on affect numerical precision?
这种差异可能是由于实现略有不同的结果。
How significantly does the platform Matlab is run on affect numerical precision?
这种差异可能是由于
7years ago | 0
Solved
独角兽上的角数!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!
7years ago
Solved
清洁名称列表
Given a list of names in a cell array, remove any duplications that result from different capitalizations of the same string. So...
7years ago
回答
Displaying the order of objects on an axis
You're having this problem because the rectangle command draws the object in the xy plane, with z=0. Therefore, since I'm guessi...
Displaying the order of objects on an axis
You're having this problem because the rectangle command draws the object in the xy plane, with z=0. Therefore, since I'm guessi...
7years ago | 0
|accepted
Solved
返回基础9-索引参考
涵盖了我在科迪其他地方没有看到的一些基本主题。Given an input matrix and row and column, output the index of th...
7years ago