Someone can help me about this error

I just read the book " Wireless Power Transfer for Electric Vehicles: Foundation and Design Approach- Springer", and followed the instructions in it, then I downloaded and ran the main.m file, I got an error problem like in the picture above, can I help with this solution, so that the program can work?

回答 (1 件)

Cris LaPierre
Cris LaPierre 2024 年 4 月 15 日

0 投票

The error means that MATLAB cannot find the jpg file the code is trying to load.
The fix is to either place the file in the current folder, or include the full path to the file in the file name.

3 件のコメント

Cris LaPierre
Cris LaPierre 2024 年 4 月 15 日
編集済み: Steven Lord 2024 年 4 月 15 日
Eko
Eko 2024 年 4 月 19 日
Thanks a lot for the answer.
actually, I got this file from https://www.mathworks.com/matlabcentral/fileexchange/46846-main-m , after read it book. I want to use this program to run a simulation according to the instructions from the book. Can I be helped to get a more perfect program so that it can be simulated?
Cris LaPierre
Cris LaPierre 2024 年 4 月 19 日
I suspect the intent if for you to replace 'input_sat_image.jpg' with the name of your satellite image.
Any feedback about the code should be given to the submission author using the Discussion tab on the page you linked to.

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

タグ

質問済み:

Eko
2024 年 4 月 15 日

コメント済み:

2024 年 4 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by