Feeds
질문
Remove error bar ends for R2014b?
Hi all Is there any way to remove the error bar ends in matlab R2014b? I used a function called removeErrorBarEnds for thi...
거의 10년 전 | 답변 수: 1 | 2
1
답변질문
Horizontal errorbar in R2014B
Hi guys Is there any way to have both horizontal and vertical errorbars in R2014b? Thanks in advance!
거의 10년 전 | 답변 수: 1 | 0
1
답변답변 있음
error using Matrix Dimensions
If you format your code it's easier to read for people here. The error message means that some of the matrices that you multi...
error using Matrix Dimensions
If you format your code it's easier to read for people here. The error message means that some of the matrices that you multi...
거의 10년 전 | 0
| 수락됨
답변 있음
Contour/3d plots for large data sets
Try plot3 or scatter3 For a contour plot you need a nxn matrix
Contour/3d plots for large data sets
Try plot3 or scatter3 For a contour plot you need a nxn matrix
거의 10년 전 | 0
답변 있음
Importing 30 .dat files in order
for k=1:30 data=load(['composite' num2str(k) '.dat]); data_matrix(:,k)=data; end
Importing 30 .dat files in order
for k=1:30 data=load(['composite' num2str(k) '.dat]); data_matrix(:,k)=data; end
거의 10년 전 | 0
| 수락됨
답변 있음
Change print format of all output figures using one command
So you have this command 50 places in the script? A quick fix would be to do a search and replace for print('-djpeg' --> prin...
Change print format of all output figures using one command
So you have this command 50 places in the script? A quick fix would be to do a search and replace for print('-djpeg' --> prin...
거의 10년 전 | 0
답변 있음
Can anyone explain me what this line do strcmp(D(i).name,'..')?
strcmp(D(i).name,'.' this compares the string in D(i).name to '.'. If the string is indeed '.', it returns TRUE (in MATLAB,...
Can anyone explain me what this line do strcmp(D(i).name,'..')?
strcmp(D(i).name,'.' this compares the string in D(i).name to '.'. If the string is indeed '.', it returns TRUE (in MATLAB,...
거의 10년 전 | 0
답변 있음
Generating a for loop and writing data
This could be a start. I don't know exactly what output stepwisefit gives, and which parts of it you want to save, but I've give...
Generating a for loop and writing data
This could be a start. I don't know exactly what output stepwisefit gives, and which parts of it you want to save, but I've give...
거의 10년 전 | 1
답변 있음
Polynomial with user defined coefficient?
I will suggest breaking the problem into smaller pieces that can be done individually, and then stitching them back together. ...
Polynomial with user defined coefficient?
I will suggest breaking the problem into smaller pieces that can be done individually, and then stitching them back together. ...
거의 10년 전 | 0
| 수락됨
답변 있음
How can I plot a picture instead of "linespec" requirements?
If you want to plot a picture, then maybe surf or imagesc is the right command. EDIT: What is it exactly you want? Do you ...
How can I plot a picture instead of "linespec" requirements?
If you want to plot a picture, then maybe surf or imagesc is the right command. EDIT: What is it exactly you want? Do you ...
거의 10년 전 | 0
답변 있음
find n-st element that meet a logical expression
I can't think of a way to do your question 1 in one line of code, but is it really that important to remove one line of code? ...
find n-st element that meet a logical expression
I can't think of a way to do your question 1 in one line of code, but is it really that important to remove one line of code? ...
거의 10년 전 | 1
| 수락됨
답변 있음
Change input name when running a script
I'm not sure what you're asking, but does this help? names={'test1', 'test2'}; for k=1:length(names) autoname=names{k...
Change input name when running a script
I'm not sure what you're asking, but does this help? names={'test1', 'test2'}; for k=1:length(names) autoname=names{k...
거의 10년 전 | 0
| 수락됨
답변 있음
All possible combinations for fixed columns?
I don't know how fast this will be for large n, but this seems to do what you want. You can probably vectorize at least one of t...
All possible combinations for fixed columns?
I don't know how fast this will be for large n, but this seems to do what you want. You can probably vectorize at least one of t...
거의 10년 전 | 0
답변 있음
making counter for partial discharge due to high voltage in solids
I see several things that could be the issue. Try doing clear all Before you run your script. Then you'll notice tha...
making counter for partial discharge due to high voltage in solids
I see several things that could be the issue. Try doing clear all Before you run your script. Then you'll notice tha...
거의 10년 전 | 0
| 수락됨
답변 있음
How to count occurrences of a letter?
A quick and dirty solution could be F_count=0; switch x(i) case {'a','A'} grade = 'F'; ...
How to count occurrences of a letter?
A quick and dirty solution could be F_count=0; switch x(i) case {'a','A'} grade = 'F'; ...
거의 10년 전 | 1
질문
Importing data from text file
I need help reading a number of data files. An example of how the files look is the following: # some header text and numbe...
거의 10년 전 | 답변 수: 1 | 0
1
답변답변 있음
generate sinusoid from complex-amplitude representation
The commands real and imag are probably what you are searching for.
generate sinusoid from complex-amplitude representation
The commands real and imag are probably what you are searching for.
거의 10년 전 | 0
답변 있음
fprintf from a switch/case?
This is not the most sophisticated solution, but it works.. switch major case 1 text_to_print='130'; cas...
fprintf from a switch/case?
This is not the most sophisticated solution, but it works.. switch major case 1 text_to_print='130'; cas...
거의 10년 전 | 0
답변 있음
How to tell Solve function to only display real roots?
I don't know if this is what you want, but you could do something like real_soln=soln(imag(soln)==0); or if there are fl...
How to tell Solve function to only display real roots?
I don't know if this is what you want, but you could do something like real_soln=soln(imag(soln)==0); or if there are fl...
거의 10년 전 | 1
| 수락됨
답변 있음
wheres the problem of this fiter code
Without any explanations of your code it's hard to tell, but my guess would be that ZZ = filter(HH,1,imp) should be ...
wheres the problem of this fiter code
Without any explanations of your code it's hard to tell, but my guess would be that ZZ = filter(HH,1,imp) should be ...
거의 10년 전 | 0
답변 있음
Annoying behavior saving eps figures in MATLAB 2014
I don't know if this will solve the issue with the file size, but for me at least it solved the problem with white space outside...
Annoying behavior saving eps figures in MATLAB 2014
I don't know if this will solve the issue with the file size, but for me at least it solved the problem with white space outside...
거의 10년 전 | 0
답변 있음
How to impliment this without loop?
You example is a bit confusing to me, there seems to be several unnecessary complications, e.g. using fields. Anyway, here's...
How to impliment this without loop?
You example is a bit confusing to me, there seems to be several unnecessary complications, e.g. using fields. Anyway, here's...
거의 10년 전 | 0
질문
How do I make surf accurately reflect my data?
Consider this example: A=zeros(5); A(3,3)=1; surf(A) view(2) When viewing this, one would be tempted to think that th...
대략 10년 전 | 답변 수: 1 | 0
1
답변답변 있음
help me to reduce my function time runing
This should work: if true F=zeros(100,100); %always preallocate c = 1:100; V = 2 * (c-1); for r = 1:100 U = 1 ...
help me to reduce my function time runing
This should work: if true F=zeros(100,100); %always preallocate c = 1:100; V = 2 * (c-1); for r = 1:100 U = 1 ...
대략 10년 전 | 1
답변 있음
How can I accomplish the following?
A1=' '; for i=1:1:10 if i<10 A2=[num2str(i),',']; else A2=num2str(i); end A1=[A1,A2]; end disp(A1) You can pr...
How can I accomplish the following?
A1=' '; for i=1:1:10 if i<10 A2=[num2str(i),',']; else A2=num2str(i); end A1=[A1,A2]; end disp(A1) You can pr...
대략 10년 전 | 0
| 수락됨
답변 있음
How can you avoid for loops by using vectorization?
I'm a bit tired, so here are just a few suggestions. You could calculate C once and for all outside the loops, this will save...
How can you avoid for loops by using vectorization?
I'm a bit tired, so here are just a few suggestions. You could calculate C once and for all outside the loops, this will save...
대략 10년 전 | 0
답변 있음
How to hide 'ans= ' in sprintf output?
Terminate the line with a semicolon: sprintf('The array is %dx%d.',2,3);
How to hide 'ans= ' in sprintf output?
Terminate the line with a semicolon: sprintf('The array is %dx%d.',2,3);
대략 10년 전 | 0
질문
Can you do this calculation any faster?
Hi there I am trying to optimize some code, an example is given below. In my code, v_ustar etc are calculated elsewhere, and ...
대략 10년 전 | 답변 수: 1 | 1
1
답변질문
Find zero of function with least amount of iterations
Hi there I have a function that takes a very long time to calculate (can be several hours), and I need to find when it become...
대략 10년 전 | 답변 수: 1 | 0
1
답변답변 있음
GPIB access to Keithley instruments
I managed to find a solution: the problem was that 64-bit MATLAB did not recognize the drivers. I installed 32-bit MATLAB and no...
GPIB access to Keithley instruments
I managed to find a solution: the problem was that 64-bit MATLAB did not recognize the drivers. I installed 32-bit MATLAB and no...
대략 10년 전 | 0
| 수락됨