Community Profile

photo

jason lee


Last seen: 18 days ago
6 total contributions since 2020

jason lee's Badges

  • Thankful Level 2

View details...

Contributions in
View by

Question


how to print figure in jpg without white margin
x = 0:pi/5:2*pi; y = sin(x).*exp(-x); figure('Visible', 'off', 'PaperUnits','centimeters', 'PaperPosition', [0 0 32 8]) plot(...

1 month ago | 1 answer | 0

1

answer

Question


Fault Tree Analysis in MATLAB
this shows a demo fault tree. the goal is to calculate the top-event '1' 's probability of failure given '3','4','5','6','8',...

2 months ago | 1 answer | 0

1

answer

Question


fopen syntax, a new usage???
i found a usage of fopen which is not found in MATLAB documentations here is my code s = 'name'; fileID = fopen([s,'.txt'],'w...

3 months ago | 1 answer | 0

1

answer

Question


create txt files with specific names
i want to create a series of txt files with predefined char names. here is my code s = {'RSN1','RSN2','RSN3'}; for i = 3:1:1 ...

3 months ago | 1 answer | 0

1

answer

Question


preallocate memory for a struct in a for loop
here is my code: for i = 1:size(filename,1) spectra(i).name = filename(i,1:end-4); spectra(i).value = readmatrix(file...

4 months ago | 1 answer | 0

1

answer

Question


issue about ismember wrong output
a=0.02:0.02:2; b=0:0.01:5; ismember(a(6),b) ans = logical 0 But it is clear that all elements in a belong to b, s...

7 months ago | 1 answer | 0

1

answer