フィルターのクリア

Run script Matlab Online

22 ビュー (過去 30 日間)
Tobias Johansson
Tobias Johansson 2016 年 11 月 9 日
コメント済み: Walter Roberson 2022 年 4 月 11 日
Hi, I have a behavioral experiment programmed as a Matlab script. I can run it on Matlab Online by logging in. Is it possible to make this public so anyone can run it via the web and Matlab Online? I just want them to be able to run the script. Or is it necessary for them to have a Matlab license of their own in order to run it?
  2 件のコメント
Tuan Pham
Tuan Pham 2021 年 8 月 1 日
x=1
Rik
Rik 2021 年 8 月 1 日
@Tuan Pham what do you mean by "x=1"? Do you have a question?

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2016 年 11 月 9 日
You would have to compile it and make the executable available, or you would have build the executable into a web site and make it available that way.
  1 件のコメント
Tobias Johansson
Tobias Johansson 2016 年 11 月 9 日
Ok. Thanks.

サインインしてコメントする。

その他の回答 (4 件)

Iftikhar Satti
Iftikhar Satti 2021 年 4 月 19 日
#% The ; denotes we are going back to a new row.
A = [1, 2, 3; 4, 5, 6; 7, 8, 9; 10, 11, 12]
#% Initialize a vector
v = [1;2;3]
#% Get the dimension of the matrix A where m = rows and n = columns
[m,n] = size(A)
#% You could also store it this way
dim_A = size(A)
#% Get the dimension of the vector v
dim_v = size(v)
#% Now let's index into the 2nd row 3rd column of matrix A
A_23 = A(2,3)
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 4 月 19 日
This does not appear to be an answer to the question that was asked?
The comment style is not correct for MATLAB; MATLAB does not use # for comments.

サインインしてコメントする。


Tashfiq  Mohsin
Tashfiq Mohsin 2022 年 2 月 26 日
編集済み: Walter Roberson 2022 年 2 月 26 日
%a
HF =18;
HEG=105;
C=4;
fs= 20*HEG+100;
t = 0:1/fs:1-1/fs;
signal = HF * sin(2*pi*HEG*t + pi/C);
plot(t,signal);
axis([0 0.02 20 20]);
Error using matlab.graphics.axis.Axes/set
Value must be a 1x2 vector of numeric type in which the second element is greater than the first element or is Inf.

Error in axis>LocSetLimits (line 292)
set(ax,...

Error in axis (line 113)
LocSetLimits(ax(j),cur_arg,names);
  3 件のコメント
Tashfiq  Mohsin
Tashfiq Mohsin 2022 年 2 月 26 日
I need to put my ID: 18-37434-1
Consider this id: AB-CDEFG-H, need to put above id no, in this. Could you sahre me the m. file.
Walter Roberson
Walter Roberson 2022 年 2 月 26 日
Your ID with - in it would be a character vector. Index into it to get digit characters. Arrange appropriate vectors of the characters for things like HEG, and str2double to get a number
HEG = str2double(ID([10,6,8]))

サインインしてコメントする。


nivedha manoj
nivedha manoj 2022 年 3 月 3 日
% Read an Image in MATLAB Environment
img=imread('Phone storage/Download/.jpg');
% Convert image to grayscale image
  1. if read image is an RGB image img=rgb2gray(img);
% Show histogram of image
  1. using imhist() functionimhist(img);
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 3 月 3 日
Unfortunately I seem to be missing the concept in your Answer that would assist someone in deploying MATLAB code as a web page?

サインインしてコメントする。


Devisha Tiwari
Devisha Tiwari 2022 年 4 月 11 日
編集済み: Walter Roberson 2022 年 4 月 11 日
x = 0 : 0.1 : 1;
y = x. 2;
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
avg_y = y(1 : length(x) 1) + dif f (y)/2;
K = sum(dif f (x). avg_y)
  3 件のコメント
Walter Roberson
Walter Roberson 2022 年 4 月 11 日
In your line
h = (b a)/n;
you accidentally used the Unicode U+2212 "Minus sign" instead of the dash character U+002D
Walter Roberson
Walter Roberson 2022 年 4 月 11 日
In your line
y = x. 2;
you have accidentally used the Unicode U+2227 "Logical And" character instead of the Unicode U+005E "Circumflex accent" character

サインインしてコメントする。

コミュニティ

カテゴリ

Help Center および File ExchangePlatform and License についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by