Stijn Haenen
内容提要
问题
使用powershell.exe的错误:未识别“ select-object”
I want to get information about serial ports via the powershell. I got the results i want, when I write some line of code in co...
1年前|0答案|0
0
答案
回答
串行端口不起作用
Oh i solved my own problem, i should use int8 commands: fwrite(s, [hex2dec('64')], 'int8');
串行端口不起作用
Oh i solved my own problem, i should use int8 commands: fwrite(s, [hex2dec('64')], 'int8');
2年前|0
|accepted
问题
串行端口不起作用
Hello, I am working with the USB-RLY82 from robot-electronics.co.uk I have connected this device to the computer and it is av...
2年前|1答案|0
1
回答
回答
Append a row to a workspace table
If you have two tables for example: a=table(); a.Var1(1,1) = 1; a.Var2(1,1) = 1; a.Var1(2,1) = 3; a.Var2(2,1) = 3; b=tab...
Append a row to a workspace table
If you have two tables for example: a=table(); a.Var1(1,1) = 1; a.Var2(1,1) = 1; a.Var1(2,1) = 3; a.Var2(2,1) = 3; b=tab...
2年前|0
回答
如何在矩阵中以任何方向找到从A点到B的所有可能路径?
With this script you got all possible paths, but it is very slow so you have to optimize it (shouldnt be that hard but dont have...
如何在矩阵中以任何方向找到从A点到B的所有可能路径?
With this script you got all possible paths, but it is very slow so you have to optimize it (shouldnt be that hard but dont have...
2年前|1
回答
一个类的对象成另一个类
If you define for example your class like this, you can multiply two object values: classdef BasicClass properties V...
一个类的对象成另一个类
If you define for example your class like this, you can multiply two object values: classdef BasicClass properties V...
2年前|1
回答
How to delete/copy (store) rows of a struct?
You can delete the last 13 rows with: struc.data=[1:45]'; struc.data(end-12:end)=[];
How to delete/copy (store) rows of a struct?
You can delete the last 13 rows with: struc.data=[1:45]'; struc.data(end-12:end)=[];
2年前|0
回答
how to solve a 5th degree equation and write a loop function with it
使用函数SEMS并求解:SYMS X SOLVE(X == A*B*(1-X)^5)
how to solve a 5th degree equation and write a loop function with it
使用函数SEMS并求解:SYMS X SOLVE(X == A*B*(1-X)^5)
2年前|0
回答
创建结果与循环. txt文件
您可以使用:fp = fopen(sprintf('test%g.txt',1),'wt')创建TXT文件。fprintf(fp,num2str(data));fclose(fp);
创建结果与循环. txt文件
您可以使用:fp = fopen(sprintf('test%g.txt',1),'wt')创建TXT文件。fprintf(fp,num2str(data));fclose(fp);
2年前|0
|accepted
回答
How can I make a scatter plot with different markers ?
也许是这样的东西:符号_list = ['*';'+';'o'';'<'];对于i = 1:4散点(x(:,i),y(:,i),symend_list(i))持有en ...
How can I make a scatter plot with different markers ?
也许是这样的东西:符号_list = ['*';'+';'o'';'<'];对于i = 1:4散点(x(:,i),y(:,i),symend_list(i))持有en ...
2年前|0
回答
Create row with text from loop for a table
you can create table headers with: a=table(); for i=1:10; a.(sprintf('bar %g',i))=i; end
Create row with text from loop for a table
you can create table headers with: a=table(); for i=1:10; a.(sprintf('bar %g',i))=i; end
2年前|0
|accepted
回答
来自多个WAV文件的连续频谱图。
这样的东西:data_tot = [];>>对于i = 1:numel(files)data = audioread(files(i));data_tot = [data_tot;数据];结尾...
来自多个WAV文件的连续频谱图。
这样的东西:data_tot = [];>>对于i = 1:numel(files)data = audioread(files(i));data_tot = [data_tot;数据];结尾...
2年前|0
|accepted
回答
如何识别leap年
There is a leap year every four years, so you can use this: if mod(year,4)==0 'leap year' else 'not a leap year' en...
如何识别leap年
There is a leap year every four years, so you can use this: if mod(year,4)==0 'leap year' else 'not a leap year' en...
2年前|0
回答
Creating a data matrix that self generates.
somthing like this: count=0; m=zeros(100,1); rand_int=datasample(1:100,1); m(rand_int)=1; old_matrix=reshape(m,[10 10]); f...
Creating a data matrix that self generates.
somthing like this: count=0; m=zeros(100,1); rand_int=datasample(1:100,1); m(rand_int)=1; old_matrix=reshape(m,[10 10]); f...
2年前|1
回答
如何解决此错误?
您应该使用此:x = 1:0.1:6;对于i = 1:numel(x)h(i,:)= z2+(x(i)-ls)*z4;结束甚至没有':'x = 1:0.1:6;对于i = 1:numel ...
如何解决此错误?
您应该使用此:x = 1:0.1:6;对于i = 1:numel(x)h(i,:)= z2+(x(i)-ls)*z4;结束甚至没有':'x = 1:0.1:6;对于i = 1:numel ...
2年前|0
|accepted
回答
print the element of a matrix
a = -inf;对于i = 1:numel(matrix(:1)),如果矩阵(i,1)> a;a =矩阵(i,1);端端disp(a)
print the element of a matrix
a = -inf;对于i = 1:numel(matrix(:1)),如果矩阵(i,1)> a;a =矩阵(i,1);端端disp(a)
2年前|1
回答
print the element of a matrix
You can use: a=max(matrix(1,:)); disp(a) to disp the max value from the first row, or b=max(matrix(:,1)); disp(b) to ge...
print the element of a matrix
You can use: a=max(matrix(1,:)); disp(a) to disp the max value from the first row, or b=max(matrix(:,1)); disp(b) to ge...
2年前|0
|accepted
回答
如何在用命令“ ginput”创建的“地图”上加入两个点?
You can use this code, which contains the function ginput_norm: https://nl.mathworks.com/matlabcentral/fileexchange/75469-ginput...
如何在用命令“ ginput”创建的“地图”上加入两个点?
You can use this code, which contains the function ginput_norm: https://nl.mathworks.com/matlabcentral/fileexchange/75469-ginput...
2年前|0
回答
链接MATLAB和EXCEL时,将更新的数据替换为MATLAB中的先前数据。
进行一段时间循环,其中MATLAB每分钟或每小时从Excel文件中读取数据。您可以生成一个...
链接MATLAB和EXCEL时,将更新的数据替换为MATLAB中的先前数据。
进行一段时间循环,其中MATLAB每分钟或每小时从Excel文件中读取数据。您可以生成一个...
2年前|0
|accepted
回答
如何从带有LAT/长列的CSV(或矩阵)创建点ShapeFile?
Im not sure what you want, but maybe this can help: for i=1:1780 T.(sprintf('var%g',i))=sprintf('var%g',i); end This cre...
如何从带有LAT/长列的CSV(或矩阵)创建点ShapeFile?
Im not sure what you want, but maybe this can help: for i=1:1780 T.(sprintf('var%g',i))=sprintf('var%g',i); end This cre...
2年前|0
回答
How can I perform region growing with two seed points?
您可以上传图像,并给出值的示例:i,x,y,x2,y2,reg_maxdist1,reg_maxdist2,然后我们可以运行代码并进行ch ...
How can I perform region growing with two seed points?
您可以上传图像,并给出值的示例:i,x,y,x2,y2,reg_maxdist1,reg_maxdist2,然后我们可以运行代码并进行ch ...
2年前|0
|accepted
回答
使用表格中的for循环创建运行日志/计数。
I think this is what you are looking for: switch_list=zeros(length(data),1); switch_list(2:end)=data(2:end,2)-data(1:end-1,2);...
使用表格中的for循环创建运行日志/计数。
I think this is what you are looking for: switch_list=zeros(length(data),1); switch_list(2:end)=data(2:end,2)-data(1:end-1,2);...
2年前|0