just a command about fprint

17 ビュー (過去 30 日間)
Lion Sullivan
Lion Sullivan 2017 年 4 月 18 日
回答済み: jJnte 2017 年 4 月 19 日
how can I use fprint?
  6 件のコメント
Jan
Jan 2017 年 4 月 19 日
Stephen23
Stephen23 2017 年 4 月 19 日
編集済み: Stephen23 2017 年 4 月 19 日
"I have to solve this problem with fprintf,sprintf"
That's great! Go for it! If you have any specific questions, please ask us. You already listed some functions that you need to use, so you will have no problems locating their documentation using your favorite internet search engine, trying their examples, and attempting to solve this yourself. Good luck and have fun!

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

採用された回答

jJnte
jJnte 2017 年 4 月 19 日
編集済み: jJnte 2017 年 4 月 19 日
I suggest you try and practice instead of going to forums directly. Play around with this code a bit and get familiar with it and really try to understand how and why it works.
ang = pi*rand(1,20);
A = 1; B = 1; % Choose A and B
y = A.*cos(ang)./(B.*sin(ang));
z = [ang; y];
fid = fopen('yournamesurname.txt', 'wt');
fprintf(fid, '%f\t\t%f\n', z);
fclose(fid);
  1 件のコメント
Stephen23
Stephen23 2017 年 4 月 19 日
And remember these two things:
  1. this is a public forum, so your tutor/professor can read this as well.
  2. submitting someone else's work as your own is called plagiarism.

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

その他の回答 (1 件)

jJnte
jJnte 2017 年 4 月 19 日
You know, you shouldn't edit your whole thread for a new question...
My advice to you is to use the help command. Example:
>> help fprintf
And with this I bid you farewell

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by