統計
MATLAB Answers
0 質問
33 回答
ランク
of 148,733
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
回答済み
Infinite Loop, Values not Updating
I don't have real values for n0 etc so I put some random numbers in and the resultant t(k) was generally small, much less than t...
Infinite Loop, Values not Updating
I don't have real values for n0 etc so I put some random numbers in and the resultant t(k) was generally small, much less than t...
3年以上 前 | 0
回答済み
simple error but i dont know
You have set Vgs with linspace but then refer to vgs in the code. This is possibly creating both errors as the current is calcul...
simple error but i dont know
You have set Vgs with linspace but then refer to vgs in the code. This is possibly creating both errors as the current is calcul...
4年弱 前 | 0
回答済み
How to replace every non-0 number with the number in that place added to another number - no loops
A(A~=0) = A(A~=0) + B
How to replace every non-0 number with the number in that place added to another number - no loops
A(A~=0) = A(A~=0) + B
4年弱 前 | 0
回答済み
hey!! i am stuck here. i am new. help please.
You do not say why this is wrong, the code runs. Is there an issue with the number of nodes and the linspace. The question says ...
hey!! i am stuck here. i am new. help please.
You do not say why this is wrong, the code runs. Is there an issue with the number of nodes and the linspace. The question says ...
4年弱 前 | 0
| 採用済み
回答済み
plot bar with two colors
figure(); hold on for i=1:length(A) if (Tr(i)<0) h=bar(Tr(i),EPR(i),'r'); else h=bar(Tr(i),EPR(i)...
plot bar with two colors
figure(); hold on for i=1:length(A) if (Tr(i)<0) h=bar(Tr(i),EPR(i),'r'); else h=bar(Tr(i),EPR(i)...
4年弱 前 | 0
| 採用済み
回答済み
Problem on bisection method in MATLAB
Valid starting points for a and b are the turning points of the function sin(x)-(x/10)=0. Determine the turning points then use ...
Problem on bisection method in MATLAB
Valid starting points for a and b are the turning points of the function sin(x)-(x/10)=0. Determine the turning points then use ...
4年弱 前 | 0
回答済み
How to change only one input if needed?
I do not know how complex you have to get with the answer but, rather than using input(....) a better way would be to use app de...
How to change only one input if needed?
I do not know how complex you have to get with the answer but, rather than using input(....) a better way would be to use app de...
4年弱 前 | 0
回答済み
Plotting multiple vertical lines with a for loop
SampleDepth is a matrix so cannot be used to generate the for loop. I think you meant to use the length of SampleDepth for i ...
Plotting multiple vertical lines with a for loop
SampleDepth is a matrix so cannot be used to generate the for loop. I think you meant to use the length of SampleDepth for i ...
4年弱 前 | 0
回答済み
'While' function
If this is your complete code it could be that i and j are not set or changed anywhere.
'While' function
If this is your complete code it could be that i and j are not set or changed anywhere.
4年弱 前 | 0
回答済み
How can I convert latitudes in degree-minute format to decimal degrees?
latitudeDeg=floor(latitudes/100)+(rem(latitudes,100)*10/6)/100
How can I convert latitudes in degree-minute format to decimal degrees?
latitudeDeg=floor(latitudes/100)+(rem(latitudes,100)*10/6)/100
4年弱 前 | 0
| 採用済み
回答済み
Equating and plotting the ratio of two sets of data having unequal length.
In the simplest form, create variables for the two curves: data1 = [100 200 200.5 300 400;50 70 60 20 90]; data2 = [100.1 100....
Equating and plotting the ratio of two sets of data having unequal length.
In the simplest form, create variables for the two curves: data1 = [100 200 200.5 300 400;50 70 60 20 90]; data2 = [100.1 100....
4年弱 前 | 0
回答済み
store for loop outcomes in matrix
y=1; for x=33:0.5:35 %Then I write codes for fitting a mathematical model to a graph using x values of 0 to x to obtain pa...
store for loop outcomes in matrix
y=1; for x=33:0.5:35 %Then I write codes for fitting a mathematical model to a graph using x values of 0 to x to obtain pa...
4年弱 前 | 0
回答済み
How to scale a graph
Use this immediately after the plot command to specify how you want the axis to plot. ylim([-19 0])
How to scale a graph
Use this immediately after the plot command to specify how you want the axis to plot. ylim([-19 0])
4年以上 前 | 1
回答済み
Error: Too many output arguments
Assuming that the information you want to return is dR_tow, change the first line of the function to function [dR_tow] = crn(to...
Error: Too many output arguments
Assuming that the information you want to return is dR_tow, change the first line of the function to function [dR_tow] = crn(to...
4年以上 前 | 1
回答済み
creating 2 by 2 matrices having 3 entries same in all but 4th one different
Rather than using numbers as part of the variable name use a cell structure m{1} = [1 0; 0 f(x(1))] You can then easily use a ...
creating 2 by 2 matrices having 3 entries same in all but 4th one different
Rather than using numbers as part of the variable name use a cell structure m{1} = [1 0; 0 f(x(1))] You can then easily use a ...
4年以上 前 | 0
回答済み
How to pass data from a MatLab GUI to an .m file?
If you want an m file to ask for an input why not use inputdlg ? If you want the GUI to be the one that the user works with, ru...
How to pass data from a MatLab GUI to an .m file?
If you want an m file to ask for an input why not use inputdlg ? If you want the GUI to be the one that the user works with, ru...
4年以上 前 | 0
| 採用済み
回答済み
Index in position 2 is invalid. Array indices must be positive integers or logical values.
If the 3 lines of code are all you are running, where is i set when you attempt to reference it in line 3?
Index in position 2 is invalid. Array indices must be positive integers or logical values.
If the 3 lines of code are all you are running, where is i set when you attempt to reference it in line 3?
約5年 前 | 0
回答済み
change the iteration in for loop
I don't think the For loop is what you need. i =1; while i<11 % calculate c if isnan(c(i))==0 & c(i)<=0.009 ...
change the iteration in for loop
I don't think the For loop is what you need. i =1; while i<11 % calculate c if isnan(c(i))==0 & c(i)<=0.009 ...
約5年 前 | 0
回答済み
How to import randomly named files from a folder into different matrices
If I understand correctly, try filename=strcat('c:\Users\Oleg\Desktop\Nuevo cartella\',names(1,:)); matrix=fopen(filename); O...
How to import randomly named files from a folder into different matrices
If I understand correctly, try filename=strcat('c:\Users\Oleg\Desktop\Nuevo cartella\',names(1,:)); matrix=fopen(filename); O...
約5年 前 | 0
回答済み
add values to my matrix each time i click on the button gui
Each time the code runs you are setting the matrix A to its start value, a 2 x 3 matrix, then adding row three. The answer will ...
add values to my matrix each time i click on the button gui
Each time the code runs you are setting the matrix A to its start value, a 2 x 3 matrix, then adding row three. The answer will ...
約6年 前 | 0
回答済み
finding the duration of a sequence of data
positive = (data>0); % Identifies when the head is to the right. pos_count = sum(positive); % gives you the number of...
finding the duration of a sequence of data
positive = (data>0); % Identifies when the head is to the right. pos_count = sum(positive); % gives you the number of...
約7年 前 | 0
回答済み
How to save each iteration of a loop into the same sheet of an Excel spreadsheet?
xlFilename = 'c:\data\filename.xls'; xlRange = strcat('A',int2str(i)); xlswrite(xlFilename,yourdata,'YourXLSheetName',xl...
How to save each iteration of a loop into the same sheet of an Excel spreadsheet?
xlFilename = 'c:\data\filename.xls'; xlRange = strcat('A',int2str(i)); xlswrite(xlFilename,yourdata,'YourXLSheetName',xl...
9年弱 前 | 2
| 採用済み
回答済み
Read txt file into a matrix
Try this, auto-generated by using the Import Data tool and the Generate Script option in the drop down menu of "Import Selection...
Read txt file into a matrix
Try this, auto-generated by using the Import Data tool and the Generate Script option in the drop down menu of "Import Selection...
9年以上 前 | 1
回答済み
Alert sound for warning me the program run overtime?
Set up a timer at the start of the code i.e. alert=timer('TimerFcn','beep','StartDelay',200,'Name','Timer-1') At the s...
Alert sound for warning me the program run overtime?
Set up a timer at the start of the code i.e. alert=timer('TimerFcn','beep','StartDelay',200,'Name','Timer-1') At the s...
9年以上 前 | 0
回答済み
Editing of Excel file with Matlab
look in the help for xlsread and xlswrite I have used these several times without problems.
Editing of Excel file with Matlab
look in the help for xlsread and xlswrite I have used these several times without problems.
9年以上 前 | 0
回答済み
Importing csv file in matlab
dlmread is for numeric only files. In your file you have text in the first row. Have you tried readtable ?
Importing csv file in matlab
dlmread is for numeric only files. In your file you have text in the first row. Have you tried readtable ?
9年以上 前 | 0
回答済み
Hi every one is there any way how to subtradt two matrices of different dimension let say A=<424x544x3uint8> and B=<462x545x3 uint8> How can we perform subtraction like S=A-B. Thanks
How about expanding the two inputs to generate matrices with matching dimensions, assuming A(1,1) lines up with B(1,1) As...
Hi every one is there any way how to subtradt two matrices of different dimension let say A=<424x544x3uint8> and B=<462x545x3 uint8> How can we perform subtraction like S=A-B. Thanks
How about expanding the two inputs to generate matrices with matching dimensions, assuming A(1,1) lines up with B(1,1) As...
10年弱 前 | 0
回答済み
index out of bounds
I assume you have two variables which you are indexing to loop through the image i.e. for x = 1:50 for y = 1:50 ...
index out of bounds
I assume you have two variables which you are indexing to loop through the image i.e. for x = 1:50 for y = 1:50 ...
10年以上 前 | 0
回答済み
index of out of bounds from txt
Hi Nicola, head=fscanf(fid,'%d',11) you are constantly changing the value of head, not incrementing it. Try: - fid=fo...
index of out of bounds from txt
Hi Nicola, head=fscanf(fid,'%d',11) you are constantly changing the value of head, not incrementing it. Try: - fid=fo...
10年以上 前 | 0